hatchet-sdk 0.0.0 → 0.1.0.pre.alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -2
- data/CLAUDE.md +61 -4
- data/INTEGRATION_TESTING.md +176 -0
- data/LICENSE.txt +1 -1
- data/REST_API_GENERATION.md +257 -0
- data/Rakefile +9 -0
- data/Rakefile.rest +133 -0
- data/config/openapi_generator_config.json +31 -0
- data/lib/hatchet/clients/rest/.gitignore +39 -0
- data/lib/hatchet/clients/rest/.gitlab-ci.yml +26 -0
- data/lib/hatchet/clients/rest/.openapi-generator/FILES +420 -0
- data/lib/hatchet/clients/rest/.openapi-generator/VERSION +1 -0
- data/lib/hatchet/clients/rest/.openapi-generator-ignore +23 -0
- data/lib/hatchet/clients/rest/.rspec +2 -0
- data/lib/hatchet/clients/rest/.rubocop.yml +148 -0
- data/lib/hatchet/clients/rest/.travis.yml +11 -0
- data/lib/hatchet/clients/rest/Gemfile +9 -0
- data/lib/hatchet/clients/rest/README.md +420 -0
- data/lib/hatchet/clients/rest/Rakefile +10 -0
- data/lib/hatchet/clients/rest/docs/APIError.md +24 -0
- data/lib/hatchet/clients/rest/docs/APIErrors.md +18 -0
- data/lib/hatchet/clients/rest/docs/APIMeta.md +30 -0
- data/lib/hatchet/clients/rest/docs/APIMetaAuth.md +18 -0
- data/lib/hatchet/clients/rest/docs/APIMetaIntegration.md +20 -0
- data/lib/hatchet/clients/rest/docs/APIMetaPosthog.md +20 -0
- data/lib/hatchet/clients/rest/docs/APIResourceMeta.md +22 -0
- data/lib/hatchet/clients/rest/docs/APIToken.md +22 -0
- data/lib/hatchet/clients/rest/docs/APITokenApi.md +235 -0
- data/lib/hatchet/clients/rest/docs/AcceptInviteRequest.md +18 -0
- data/lib/hatchet/clients/rest/docs/BulkCreateEventRequest.md +18 -0
- data/lib/hatchet/clients/rest/docs/CancelEventRequest.md +18 -0
- data/lib/hatchet/clients/rest/docs/ConcurrencyLimitStrategy.md +15 -0
- data/lib/hatchet/clients/rest/docs/CreateAPITokenRequest.md +20 -0
- data/lib/hatchet/clients/rest/docs/CreateAPITokenResponse.md +18 -0
- data/lib/hatchet/clients/rest/docs/CreateCronWorkflowTriggerRequest.md +26 -0
- data/lib/hatchet/clients/rest/docs/CreateEventRequest.md +26 -0
- data/lib/hatchet/clients/rest/docs/CreatePullRequestFromStepRun.md +18 -0
- data/lib/hatchet/clients/rest/docs/CreateSNSIntegrationRequest.md +18 -0
- data/lib/hatchet/clients/rest/docs/CreateTenantAlertEmailGroupRequest.md +18 -0
- data/lib/hatchet/clients/rest/docs/CreateTenantInviteRequest.md +20 -0
- data/lib/hatchet/clients/rest/docs/CreateTenantRequest.md +24 -0
- data/lib/hatchet/clients/rest/docs/CronWorkflows.md +40 -0
- data/lib/hatchet/clients/rest/docs/CronWorkflowsList.md +20 -0
- data/lib/hatchet/clients/rest/docs/CronWorkflowsMethod.md +15 -0
- data/lib/hatchet/clients/rest/docs/CronWorkflowsOrderByField.md +15 -0
- data/lib/hatchet/clients/rest/docs/DefaultApi.md +602 -0
- data/lib/hatchet/clients/rest/docs/Event.md +28 -0
- data/lib/hatchet/clients/rest/docs/EventApi.md +809 -0
- data/lib/hatchet/clients/rest/docs/EventData.md +18 -0
- data/lib/hatchet/clients/rest/docs/EventKeyList.md +20 -0
- data/lib/hatchet/clients/rest/docs/EventList.md +20 -0
- data/lib/hatchet/clients/rest/docs/EventOrderByDirection.md +15 -0
- data/lib/hatchet/clients/rest/docs/EventOrderByField.md +15 -0
- data/lib/hatchet/clients/rest/docs/EventUpdateCancel200Response.md +18 -0
- data/lib/hatchet/clients/rest/docs/EventWorkflowRunSummary.md +28 -0
- data/lib/hatchet/clients/rest/docs/Events.md +20 -0
- data/lib/hatchet/clients/rest/docs/FilterApi.md +402 -0
- data/lib/hatchet/clients/rest/docs/GetStepRunDiffResponse.md +18 -0
- data/lib/hatchet/clients/rest/docs/GithubApi.md +73 -0
- data/lib/hatchet/clients/rest/docs/HealthcheckApi.md +129 -0
- data/lib/hatchet/clients/rest/docs/InfoGetVersion200Response.md +18 -0
- data/lib/hatchet/clients/rest/docs/Job.md +30 -0
- data/lib/hatchet/clients/rest/docs/JobRun.md +48 -0
- data/lib/hatchet/clients/rest/docs/JobRunStatus.md +15 -0
- data/lib/hatchet/clients/rest/docs/ListAPITokensResponse.md +20 -0
- data/lib/hatchet/clients/rest/docs/ListPullRequestsResponse.md +18 -0
- data/lib/hatchet/clients/rest/docs/ListSNSIntegrations.md +20 -0
- data/lib/hatchet/clients/rest/docs/ListSlackWebhooks.md +20 -0
- data/lib/hatchet/clients/rest/docs/LogApi.md +171 -0
- data/lib/hatchet/clients/rest/docs/LogLine.md +22 -0
- data/lib/hatchet/clients/rest/docs/LogLineLevel.md +15 -0
- data/lib/hatchet/clients/rest/docs/LogLineList.md +20 -0
- data/lib/hatchet/clients/rest/docs/LogLineOrderByDirection.md +15 -0
- data/lib/hatchet/clients/rest/docs/LogLineOrderByField.md +15 -0
- data/lib/hatchet/clients/rest/docs/MetadataApi.md +203 -0
- data/lib/hatchet/clients/rest/docs/PaginationResponse.md +22 -0
- data/lib/hatchet/clients/rest/docs/PullRequest.md +32 -0
- data/lib/hatchet/clients/rest/docs/PullRequestState.md +15 -0
- data/lib/hatchet/clients/rest/docs/QueueMetrics.md +22 -0
- data/lib/hatchet/clients/rest/docs/RateLimit.md +28 -0
- data/lib/hatchet/clients/rest/docs/RateLimitList.md +20 -0
- data/lib/hatchet/clients/rest/docs/RateLimitOrderByDirection.md +15 -0
- data/lib/hatchet/clients/rest/docs/RateLimitOrderByField.md +15 -0
- data/lib/hatchet/clients/rest/docs/RateLimitsApi.md +94 -0
- data/lib/hatchet/clients/rest/docs/RecentStepRuns.md +30 -0
- data/lib/hatchet/clients/rest/docs/RejectInviteRequest.md +18 -0
- data/lib/hatchet/clients/rest/docs/ReplayEventRequest.md +18 -0
- data/lib/hatchet/clients/rest/docs/ReplayWorkflowRunsRequest.md +18 -0
- data/lib/hatchet/clients/rest/docs/ReplayWorkflowRunsResponse.md +18 -0
- data/lib/hatchet/clients/rest/docs/RerunStepRunRequest.md +18 -0
- data/lib/hatchet/clients/rest/docs/SNSApi.md +235 -0
- data/lib/hatchet/clients/rest/docs/SNSIntegration.md +24 -0
- data/lib/hatchet/clients/rest/docs/ScheduleWorkflowRunRequest.md +24 -0
- data/lib/hatchet/clients/rest/docs/ScheduledRunStatus.md +15 -0
- data/lib/hatchet/clients/rest/docs/ScheduledWorkflows.md +44 -0
- data/lib/hatchet/clients/rest/docs/ScheduledWorkflowsList.md +20 -0
- data/lib/hatchet/clients/rest/docs/ScheduledWorkflowsMethod.md +15 -0
- data/lib/hatchet/clients/rest/docs/ScheduledWorkflowsOrderByField.md +15 -0
- data/lib/hatchet/clients/rest/docs/SemaphoreSlots.md +28 -0
- data/lib/hatchet/clients/rest/docs/SlackApi.md +156 -0
- data/lib/hatchet/clients/rest/docs/SlackWebhook.md +28 -0
- data/lib/hatchet/clients/rest/docs/Step.md +32 -0
- data/lib/hatchet/clients/rest/docs/StepRun.md +68 -0
- data/lib/hatchet/clients/rest/docs/StepRunApi.md +560 -0
- data/lib/hatchet/clients/rest/docs/StepRunArchive.md +50 -0
- data/lib/hatchet/clients/rest/docs/StepRunArchiveList.md +20 -0
- data/lib/hatchet/clients/rest/docs/StepRunDiff.md +22 -0
- data/lib/hatchet/clients/rest/docs/StepRunEvent.md +36 -0
- data/lib/hatchet/clients/rest/docs/StepRunEventList.md +20 -0
- data/lib/hatchet/clients/rest/docs/StepRunEventReason.md +15 -0
- data/lib/hatchet/clients/rest/docs/StepRunEventSeverity.md +15 -0
- data/lib/hatchet/clients/rest/docs/StepRunStatus.md +15 -0
- data/lib/hatchet/clients/rest/docs/TaskApi.md +566 -0
- data/lib/hatchet/clients/rest/docs/Tenant.md +30 -0
- data/lib/hatchet/clients/rest/docs/TenantAlertEmailGroup.md +20 -0
- data/lib/hatchet/clients/rest/docs/TenantAlertEmailGroupList.md +20 -0
- data/lib/hatchet/clients/rest/docs/TenantAlertingSettings.md +30 -0
- data/lib/hatchet/clients/rest/docs/TenantApi.md +1362 -0
- data/lib/hatchet/clients/rest/docs/TenantInvite.md +28 -0
- data/lib/hatchet/clients/rest/docs/TenantInviteList.md +20 -0
- data/lib/hatchet/clients/rest/docs/TenantList.md +20 -0
- data/lib/hatchet/clients/rest/docs/TenantMember.md +24 -0
- data/lib/hatchet/clients/rest/docs/TenantMemberList.md +20 -0
- data/lib/hatchet/clients/rest/docs/TenantMemberRole.md +15 -0
- data/lib/hatchet/clients/rest/docs/TenantQueueMetrics.md +22 -0
- data/lib/hatchet/clients/rest/docs/TenantResource.md +15 -0
- data/lib/hatchet/clients/rest/docs/TenantResourceLimit.md +30 -0
- data/lib/hatchet/clients/rest/docs/TenantResourcePolicy.md +18 -0
- data/lib/hatchet/clients/rest/docs/TenantStepRunQueueMetrics.md +18 -0
- data/lib/hatchet/clients/rest/docs/TenantUIVersion.md +15 -0
- data/lib/hatchet/clients/rest/docs/TenantVersion.md +15 -0
- data/lib/hatchet/clients/rest/docs/TriggerWorkflowRunRequest.md +20 -0
- data/lib/hatchet/clients/rest/docs/UpdateTenantAlertEmailGroupRequest.md +18 -0
- data/lib/hatchet/clients/rest/docs/UpdateTenantInviteRequest.md +18 -0
- data/lib/hatchet/clients/rest/docs/UpdateTenantRequest.md +34 -0
- data/lib/hatchet/clients/rest/docs/UpdateWorkerRequest.md +18 -0
- data/lib/hatchet/clients/rest/docs/User.md +28 -0
- data/lib/hatchet/clients/rest/docs/UserApi.md +805 -0
- data/lib/hatchet/clients/rest/docs/UserChangePasswordRequest.md +20 -0
- data/lib/hatchet/clients/rest/docs/UserLoginRequest.md +20 -0
- data/lib/hatchet/clients/rest/docs/UserRegisterRequest.md +22 -0
- data/lib/hatchet/clients/rest/docs/UserTenantMembershipsList.md +20 -0
- data/lib/hatchet/clients/rest/docs/UserTenantPublic.md +20 -0
- data/lib/hatchet/clients/rest/docs/V1CancelTaskRequest.md +20 -0
- data/lib/hatchet/clients/rest/docs/V1CancelledTasks.md +18 -0
- data/lib/hatchet/clients/rest/docs/V1CreateFilterRequest.md +24 -0
- data/lib/hatchet/clients/rest/docs/V1DagChildren.md +20 -0
- data/lib/hatchet/clients/rest/docs/V1Event.md +36 -0
- data/lib/hatchet/clients/rest/docs/V1EventList.md +20 -0
- data/lib/hatchet/clients/rest/docs/V1EventTriggeredRun.md +20 -0
- data/lib/hatchet/clients/rest/docs/V1EventWorkflowRunSummary.md +26 -0
- data/lib/hatchet/clients/rest/docs/V1Filter.md +28 -0
- data/lib/hatchet/clients/rest/docs/V1FilterList.md +20 -0
- data/lib/hatchet/clients/rest/docs/V1LogLine.md +28 -0
- data/lib/hatchet/clients/rest/docs/V1LogLineLevel.md +15 -0
- data/lib/hatchet/clients/rest/docs/V1LogLineList.md +20 -0
- data/lib/hatchet/clients/rest/docs/V1ReplayTaskRequest.md +20 -0
- data/lib/hatchet/clients/rest/docs/V1ReplayedTasks.md +18 -0
- data/lib/hatchet/clients/rest/docs/V1TaskEvent.md +38 -0
- data/lib/hatchet/clients/rest/docs/V1TaskEventList.md +20 -0
- data/lib/hatchet/clients/rest/docs/V1TaskEventType.md +15 -0
- data/lib/hatchet/clients/rest/docs/V1TaskFilter.md +26 -0
- data/lib/hatchet/clients/rest/docs/V1TaskPointMetric.md +22 -0
- data/lib/hatchet/clients/rest/docs/V1TaskPointMetrics.md +18 -0
- data/lib/hatchet/clients/rest/docs/V1TaskRunMetric.md +20 -0
- data/lib/hatchet/clients/rest/docs/V1TaskRunStatus.md +15 -0
- data/lib/hatchet/clients/rest/docs/V1TaskStatus.md +15 -0
- data/lib/hatchet/clients/rest/docs/V1TaskSummary.md +72 -0
- data/lib/hatchet/clients/rest/docs/V1TaskSummaryList.md +20 -0
- data/lib/hatchet/clients/rest/docs/V1TaskTiming.md +46 -0
- data/lib/hatchet/clients/rest/docs/V1TaskTimingList.md +20 -0
- data/lib/hatchet/clients/rest/docs/V1TriggerWorkflowRunRequest.md +24 -0
- data/lib/hatchet/clients/rest/docs/V1UpdateFilterRequest.md +22 -0
- data/lib/hatchet/clients/rest/docs/V1WorkflowRun.md +46 -0
- data/lib/hatchet/clients/rest/docs/V1WorkflowRunDetails.md +26 -0
- data/lib/hatchet/clients/rest/docs/V1WorkflowRunDisplayName.md +20 -0
- data/lib/hatchet/clients/rest/docs/V1WorkflowRunDisplayNameList.md +20 -0
- data/lib/hatchet/clients/rest/docs/V1WorkflowType.md +15 -0
- data/lib/hatchet/clients/rest/docs/WebhookWorker.md +22 -0
- data/lib/hatchet/clients/rest/docs/WebhookWorkerCreateRequest.md +22 -0
- data/lib/hatchet/clients/rest/docs/WebhookWorkerCreateResponse.md +18 -0
- data/lib/hatchet/clients/rest/docs/WebhookWorkerCreated.md +24 -0
- data/lib/hatchet/clients/rest/docs/WebhookWorkerListResponse.md +20 -0
- data/lib/hatchet/clients/rest/docs/WebhookWorkerRequest.md +22 -0
- data/lib/hatchet/clients/rest/docs/WebhookWorkerRequestListResponse.md +18 -0
- data/lib/hatchet/clients/rest/docs/WebhookWorkerRequestMethod.md +15 -0
- data/lib/hatchet/clients/rest/docs/Worker.md +48 -0
- data/lib/hatchet/clients/rest/docs/WorkerApi.md +234 -0
- data/lib/hatchet/clients/rest/docs/WorkerLabel.md +22 -0
- data/lib/hatchet/clients/rest/docs/WorkerList.md +20 -0
- data/lib/hatchet/clients/rest/docs/WorkerRuntimeInfo.md +26 -0
- data/lib/hatchet/clients/rest/docs/WorkerRuntimeSDKs.md +15 -0
- data/lib/hatchet/clients/rest/docs/WorkerType.md +15 -0
- data/lib/hatchet/clients/rest/docs/Workflow.md +32 -0
- data/lib/hatchet/clients/rest/docs/WorkflowApi.md +1480 -0
- data/lib/hatchet/clients/rest/docs/WorkflowConcurrency.md +22 -0
- data/lib/hatchet/clients/rest/docs/WorkflowKind.md +15 -0
- data/lib/hatchet/clients/rest/docs/WorkflowList.md +22 -0
- data/lib/hatchet/clients/rest/docs/WorkflowMetrics.md +20 -0
- data/lib/hatchet/clients/rest/docs/WorkflowRun.md +48 -0
- data/lib/hatchet/clients/rest/docs/WorkflowRunApi.md +477 -0
- data/lib/hatchet/clients/rest/docs/WorkflowRunList.md +20 -0
- data/lib/hatchet/clients/rest/docs/WorkflowRunOrderByDirection.md +15 -0
- data/lib/hatchet/clients/rest/docs/WorkflowRunOrderByField.md +15 -0
- data/lib/hatchet/clients/rest/docs/WorkflowRunShape.md +50 -0
- data/lib/hatchet/clients/rest/docs/WorkflowRunShapeItemForWorkflowRunDetails.md +24 -0
- data/lib/hatchet/clients/rest/docs/WorkflowRunStatus.md +15 -0
- data/lib/hatchet/clients/rest/docs/WorkflowRunTriggeredBy.md +26 -0
- data/lib/hatchet/clients/rest/docs/WorkflowRunsApi.md +572 -0
- data/lib/hatchet/clients/rest/docs/WorkflowRunsCancelRequest.md +18 -0
- data/lib/hatchet/clients/rest/docs/WorkflowRunsMetrics.md +18 -0
- data/lib/hatchet/clients/rest/docs/WorkflowRunsMetricsCounts.md +28 -0
- data/lib/hatchet/clients/rest/docs/WorkflowTag.md +20 -0
- data/lib/hatchet/clients/rest/docs/WorkflowTriggerCronRef.md +20 -0
- data/lib/hatchet/clients/rest/docs/WorkflowTriggerEventRef.md +20 -0
- data/lib/hatchet/clients/rest/docs/WorkflowTriggers.md +26 -0
- data/lib/hatchet/clients/rest/docs/WorkflowUpdateRequest.md +18 -0
- data/lib/hatchet/clients/rest/docs/WorkflowVersion.md +40 -0
- data/lib/hatchet/clients/rest/docs/WorkflowVersionDefinition.md +18 -0
- data/lib/hatchet/clients/rest/docs/WorkflowVersionMeta.md +26 -0
- data/lib/hatchet/clients/rest/docs/WorkflowWorkersCount.md +22 -0
- data/lib/hatchet/clients/rest/git_push.sh +57 -0
- data/lib/hatchet/clients/rest/hatchet-sdk-rest.gemspec +41 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api/api_token_api.rb +242 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api/default_api.rb +622 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api/event_api.rb +836 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api/filter_api.rb +449 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api/github_api.rb +107 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api/healthcheck_api.rb +132 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api/log_api.rb +182 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api/metadata_api.rb +193 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api/rate_limits_api.rb +108 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api/slack_api.rb +164 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api/sns_api.rb +242 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api/step_run_api.rb +615 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api/task_api.rb +599 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api/tenant_api.rb +1327 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api/user_api.rb +729 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api/worker_api.rb +246 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api/workflow_api.rb +1654 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api/workflow_run_api.rb +540 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api/workflow_runs_api.rb +614 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api_client.rb +437 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api_error.rb +58 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/configuration.rb +399 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/accept_invite_request.rb +255 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/api_error.rb +268 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/api_errors.rb +239 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/api_meta.rb +279 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/api_meta_auth.rb +223 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/api_meta_integration.rb +265 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/api_meta_posthog.rb +231 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/api_resource_meta.rb +310 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/api_token.rb +300 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/bulk_create_event_request.rb +239 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/cancel_event_request.rb +239 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/concurrency_limit_strategy.rb +42 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/create_api_token_request.rb +257 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/create_api_token_response.rb +238 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/create_cron_workflow_trigger_request.rb +352 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/create_event_request.rb +295 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/create_pull_request_from_step_run.rb +237 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/create_sns_integration_request.rb +238 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/create_tenant_alert_email_group_request.rb +240 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/create_tenant_invite_request.rb +287 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/create_tenant_request.rb +307 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/cron_workflows.rb +509 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/cron_workflows_list.rb +231 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/cron_workflows_method.rb +40 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/cron_workflows_order_by_field.rb +40 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/event.rb +321 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/event_data.rb +238 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/event_key_list.rb +231 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/event_list.rb +231 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/event_order_by_direction.rb +40 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/event_order_by_field.rb +39 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/event_update_cancel200_response.rb +222 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/event_workflow_run_summary.rb +271 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/events.rb +266 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/get_step_run_diff_response.rb +239 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/info_get_version200_response.rb +237 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/job.rb +363 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/job_run.rb +464 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/job_run_status.rb +44 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/list_api_tokens_response.rb +231 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/list_pull_requests_response.rb +239 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/list_slack_webhooks.rb +265 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/list_sns_integrations.rb +265 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/log_line.rb +292 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/log_line_level.rb +42 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/log_line_list.rb +231 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/log_line_order_by_direction.rb +40 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/log_line_order_by_field.rb +39 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/pagination_response.rb +241 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/pull_request.rb +441 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/pull_request_state.rb +40 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/queue_metrics.rb +292 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/rate_limit.rb +373 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/rate_limit_list.rb +231 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/rate_limit_order_by_direction.rb +40 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/rate_limit_order_by_field.rb +41 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/recent_step_runs.rb +365 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/reject_invite_request.rb +255 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/replay_event_request.rb +239 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/replay_workflow_runs_request.rb +239 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/replay_workflow_runs_response.rb +239 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/rerun_step_run_request.rb +237 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/schedule_workflow_run_request.rb +326 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/scheduled_run_status.rb +45 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/scheduled_workflows.rb +538 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/scheduled_workflows_list.rb +231 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/scheduled_workflows_method.rb +40 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/scheduled_workflows_order_by_field.rb +40 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/semaphore_slots.rb +343 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/slack_webhook.rb +372 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/sns_integration.rb +301 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/step.rb +374 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/step_run.rb +556 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/step_run_archive.rb +432 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/step_run_archive_list.rb +231 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/step_run_diff.rb +289 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/step_run_event.rb +442 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/step_run_event_list.rb +231 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/step_run_event_reason.rb +55 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/step_run_event_severity.rb +41 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/step_run_status.rb +47 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/tenant.rb +370 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/tenant_alert_email_group.rb +266 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/tenant_alert_email_group_list.rb +231 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/tenant_alerting_settings.rb +314 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/tenant_invite.rb +377 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/tenant_invite_list.rb +231 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/tenant_list.rb +231 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/tenant_member.rb +323 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/tenant_member_list.rb +231 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/tenant_member_role.rb +41 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/tenant_queue_metrics.rb +243 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/tenant_resource.rb +45 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/tenant_resource_limit.rb +370 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/tenant_resource_policy.rb +240 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/tenant_step_run_queue_metrics.rb +220 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/tenant_ui_version.rb +40 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/tenant_version.rb +40 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/trigger_workflow_run_request.rb +246 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/update_tenant_alert_email_group_request.rb +240 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/update_tenant_invite_request.rb +260 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/update_tenant_request.rb +323 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/update_worker_request.rb +221 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/user.rb +321 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/user_change_password_request.rb +265 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/user_login_request.rb +265 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/user_register_request.rb +292 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/user_tenant_memberships_list.rb +231 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/user_tenant_public.rb +248 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_cancel_task_request.rb +232 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_cancelled_tasks.rb +223 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_create_filter_request.rb +320 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_dag_children.rb +231 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_event.rb +380 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_event_list.rb +231 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_event_triggered_run.rb +266 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_event_workflow_run_summary.rb +346 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_filter.rb +390 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_filter_list.rb +231 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_log_line.rb +344 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_log_line_level.rb +42 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_log_line_list.rb +231 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_replay_task_request.rb +232 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_replayed_tasks.rb +223 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_task_event.rb +419 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_task_event_list.rb +231 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_task_event_type.rb +58 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_task_filter.rb +279 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_task_point_metric.rb +289 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_task_point_metrics.rb +222 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_task_run_metric.rb +285 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_task_run_status.rb +43 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_task_status.rb +43 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_task_summary.rb +812 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_task_summary_list.rb +266 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_task_timing.rb +581 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_task_timing_list.rb +266 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_trigger_workflow_run_request.rb +283 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_update_filter_request.rb +241 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_workflow_run.rb +544 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_workflow_run_details.rb +331 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_workflow_run_display_name.rb +263 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_workflow_run_display_name_list.rb +266 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_workflow_type.rb +40 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/webhook_worker.rb +291 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/webhook_worker_create_request.rb +294 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/webhook_worker_create_response.rb +220 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/webhook_worker_created.rb +318 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/webhook_worker_list_response.rb +231 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/webhook_worker_request.rb +314 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/webhook_worker_request_list_response.rb +223 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/webhook_worker_request_method.rb +41 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/worker.rb +489 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/worker_label.rb +274 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/worker_list.rb +231 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/worker_runtime_info.rb +278 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/worker_runtime_sdks.rb +41 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/worker_type.rb +41 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/workflow.rb +346 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/workflow_concurrency.rb +314 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/workflow_kind.rb +41 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/workflow_list.rb +240 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/workflow_metrics.rb +231 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/workflow_run.rb +524 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/workflow_run_list.rb +231 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/workflow_run_order_by_direction.rb +40 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/workflow_run_order_by_field.rb +42 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/workflow_run_shape.rb +533 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/workflow_run_shape_item_for_workflow_run_details.rb +353 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/workflow_run_status.rb +45 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/workflow_run_triggered_by.rb +273 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/workflow_runs_cancel_request.rb +239 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/workflow_runs_metrics.rb +220 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/workflow_runs_metrics_counts.rb +265 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/workflow_tag.rb +265 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/workflow_trigger_cron_ref.rb +229 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/workflow_trigger_event_ref.rb +229 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/workflow_triggers.rb +260 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/workflow_update_request.rb +221 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/workflow_version.rb +392 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/workflow_version_definition.rb +238 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/workflow_version_meta.rb +325 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/workflow_workers_count.rb +238 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/version.rb +15 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest.rb +241 -0
- data/lib/hatchet/clients/rest/spec/spec_helper.rb +111 -0
- data/lib/hatchet/clients/rest.rb +126 -0
- data/lib/hatchet/clients.rb +71 -0
- data/lib/hatchet/config.rb +482 -0
- data/lib/hatchet/features/events.rb +265 -0
- data/lib/hatchet/features/runs.rb +423 -0
- data/lib/hatchet/version.rb +1 -1
- data/lib/hatchet-sdk.rb +74 -3
- data/scripts/generate.sh +167 -0
- data/scripts/generate_api.rb +174 -0
- data/sig/hatchet-sdk.rbs +525 -1
- metadata +491 -1
|
@@ -0,0 +1,1327 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Hatchet API
|
|
3
|
+
|
|
4
|
+
#The Hatchet API
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.14.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'cgi'
|
|
14
|
+
|
|
15
|
+
module HatchetSdkRest
|
|
16
|
+
class TenantApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Create tenant alert email group
|
|
23
|
+
# Creates a new tenant alert email group
|
|
24
|
+
# @param tenant [String] The tenant id
|
|
25
|
+
# @param create_tenant_alert_email_group_request [CreateTenantAlertEmailGroupRequest] The tenant alert email group to create
|
|
26
|
+
# @param [Hash] opts the optional parameters
|
|
27
|
+
# @return [TenantAlertEmailGroup]
|
|
28
|
+
def alert_email_group_create(tenant, create_tenant_alert_email_group_request, opts = {})
|
|
29
|
+
data, _status_code, _headers = alert_email_group_create_with_http_info(tenant, create_tenant_alert_email_group_request, opts)
|
|
30
|
+
data
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# Create tenant alert email group
|
|
34
|
+
# Creates a new tenant alert email group
|
|
35
|
+
# @param tenant [String] The tenant id
|
|
36
|
+
# @param create_tenant_alert_email_group_request [CreateTenantAlertEmailGroupRequest] The tenant alert email group to create
|
|
37
|
+
# @param [Hash] opts the optional parameters
|
|
38
|
+
# @return [Array<(TenantAlertEmailGroup, Integer, Hash)>] TenantAlertEmailGroup data, response status code and response headers
|
|
39
|
+
def alert_email_group_create_with_http_info(tenant, create_tenant_alert_email_group_request, opts = {})
|
|
40
|
+
if @api_client.config.debugging
|
|
41
|
+
@api_client.config.logger.debug 'Calling API: TenantApi.alert_email_group_create ...'
|
|
42
|
+
end
|
|
43
|
+
# verify the required parameter 'tenant' is set
|
|
44
|
+
if @api_client.config.client_side_validation && tenant.nil?
|
|
45
|
+
fail ArgumentError, "Missing the required parameter 'tenant' when calling TenantApi.alert_email_group_create"
|
|
46
|
+
end
|
|
47
|
+
if @api_client.config.client_side_validation && tenant.to_s.length > 36
|
|
48
|
+
fail ArgumentError, 'invalid value for "tenant" when calling TenantApi.alert_email_group_create, the character length must be smaller than or equal to 36.'
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
if @api_client.config.client_side_validation && tenant.to_s.length < 36
|
|
52
|
+
fail ArgumentError, 'invalid value for "tenant" when calling TenantApi.alert_email_group_create, the character length must be greater than or equal to 36.'
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# verify the required parameter 'create_tenant_alert_email_group_request' is set
|
|
56
|
+
if @api_client.config.client_side_validation && create_tenant_alert_email_group_request.nil?
|
|
57
|
+
fail ArgumentError, "Missing the required parameter 'create_tenant_alert_email_group_request' when calling TenantApi.alert_email_group_create"
|
|
58
|
+
end
|
|
59
|
+
# resource path
|
|
60
|
+
local_var_path = '/api/v1/tenants/{tenant}/alerting-email-groups'.sub('{' + 'tenant' + '}', CGI.escape(tenant.to_s))
|
|
61
|
+
|
|
62
|
+
# query parameters
|
|
63
|
+
query_params = opts[:query_params] || {}
|
|
64
|
+
|
|
65
|
+
# header parameters
|
|
66
|
+
header_params = opts[:header_params] || {}
|
|
67
|
+
# HTTP header 'Accept' (if needed)
|
|
68
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
69
|
+
# HTTP header 'Content-Type'
|
|
70
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
71
|
+
if !content_type.nil?
|
|
72
|
+
header_params['Content-Type'] = content_type
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
# form parameters
|
|
76
|
+
form_params = opts[:form_params] || {}
|
|
77
|
+
|
|
78
|
+
# http body (model)
|
|
79
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_tenant_alert_email_group_request)
|
|
80
|
+
|
|
81
|
+
# return_type
|
|
82
|
+
return_type = opts[:debug_return_type] || 'TenantAlertEmailGroup'
|
|
83
|
+
|
|
84
|
+
# auth_names
|
|
85
|
+
auth_names = opts[:debug_auth_names] || ['cookieAuth', 'bearerAuth']
|
|
86
|
+
|
|
87
|
+
new_options = opts.merge(
|
|
88
|
+
:operation => :"TenantApi.alert_email_group_create",
|
|
89
|
+
:header_params => header_params,
|
|
90
|
+
:query_params => query_params,
|
|
91
|
+
:form_params => form_params,
|
|
92
|
+
:body => post_body,
|
|
93
|
+
:auth_names => auth_names,
|
|
94
|
+
:return_type => return_type
|
|
95
|
+
)
|
|
96
|
+
|
|
97
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
98
|
+
if @api_client.config.debugging
|
|
99
|
+
@api_client.config.logger.debug "API called: TenantApi#alert_email_group_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
100
|
+
end
|
|
101
|
+
return data, status_code, headers
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
# Delete tenant alert email group
|
|
105
|
+
# Deletes a tenant alert email group
|
|
106
|
+
# @param alert_email_group [String] The tenant alert email group id
|
|
107
|
+
# @param [Hash] opts the optional parameters
|
|
108
|
+
# @return [nil]
|
|
109
|
+
def alert_email_group_delete(alert_email_group, opts = {})
|
|
110
|
+
alert_email_group_delete_with_http_info(alert_email_group, opts)
|
|
111
|
+
nil
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
# Delete tenant alert email group
|
|
115
|
+
# Deletes a tenant alert email group
|
|
116
|
+
# @param alert_email_group [String] The tenant alert email group id
|
|
117
|
+
# @param [Hash] opts the optional parameters
|
|
118
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
119
|
+
def alert_email_group_delete_with_http_info(alert_email_group, opts = {})
|
|
120
|
+
if @api_client.config.debugging
|
|
121
|
+
@api_client.config.logger.debug 'Calling API: TenantApi.alert_email_group_delete ...'
|
|
122
|
+
end
|
|
123
|
+
# verify the required parameter 'alert_email_group' is set
|
|
124
|
+
if @api_client.config.client_side_validation && alert_email_group.nil?
|
|
125
|
+
fail ArgumentError, "Missing the required parameter 'alert_email_group' when calling TenantApi.alert_email_group_delete"
|
|
126
|
+
end
|
|
127
|
+
if @api_client.config.client_side_validation && alert_email_group.to_s.length > 36
|
|
128
|
+
fail ArgumentError, 'invalid value for "alert_email_group" when calling TenantApi.alert_email_group_delete, the character length must be smaller than or equal to 36.'
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
if @api_client.config.client_side_validation && alert_email_group.to_s.length < 36
|
|
132
|
+
fail ArgumentError, 'invalid value for "alert_email_group" when calling TenantApi.alert_email_group_delete, the character length must be greater than or equal to 36.'
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
# resource path
|
|
136
|
+
local_var_path = '/api/v1/alerting-email-groups/{alert-email-group}'.sub('{' + 'alert-email-group' + '}', CGI.escape(alert_email_group.to_s))
|
|
137
|
+
|
|
138
|
+
# query parameters
|
|
139
|
+
query_params = opts[:query_params] || {}
|
|
140
|
+
|
|
141
|
+
# header parameters
|
|
142
|
+
header_params = opts[:header_params] || {}
|
|
143
|
+
# HTTP header 'Accept' (if needed)
|
|
144
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
145
|
+
|
|
146
|
+
# form parameters
|
|
147
|
+
form_params = opts[:form_params] || {}
|
|
148
|
+
|
|
149
|
+
# http body (model)
|
|
150
|
+
post_body = opts[:debug_body]
|
|
151
|
+
|
|
152
|
+
# return_type
|
|
153
|
+
return_type = opts[:debug_return_type]
|
|
154
|
+
|
|
155
|
+
# auth_names
|
|
156
|
+
auth_names = opts[:debug_auth_names] || ['cookieAuth', 'bearerAuth']
|
|
157
|
+
|
|
158
|
+
new_options = opts.merge(
|
|
159
|
+
:operation => :"TenantApi.alert_email_group_delete",
|
|
160
|
+
:header_params => header_params,
|
|
161
|
+
:query_params => query_params,
|
|
162
|
+
:form_params => form_params,
|
|
163
|
+
:body => post_body,
|
|
164
|
+
:auth_names => auth_names,
|
|
165
|
+
:return_type => return_type
|
|
166
|
+
)
|
|
167
|
+
|
|
168
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
169
|
+
if @api_client.config.debugging
|
|
170
|
+
@api_client.config.logger.debug "API called: TenantApi#alert_email_group_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
171
|
+
end
|
|
172
|
+
return data, status_code, headers
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
# List tenant alert email groups
|
|
176
|
+
# Gets a list of tenant alert email groups
|
|
177
|
+
# @param tenant [String] The tenant id
|
|
178
|
+
# @param [Hash] opts the optional parameters
|
|
179
|
+
# @return [TenantAlertEmailGroupList]
|
|
180
|
+
def alert_email_group_list(tenant, opts = {})
|
|
181
|
+
data, _status_code, _headers = alert_email_group_list_with_http_info(tenant, opts)
|
|
182
|
+
data
|
|
183
|
+
end
|
|
184
|
+
|
|
185
|
+
# List tenant alert email groups
|
|
186
|
+
# Gets a list of tenant alert email groups
|
|
187
|
+
# @param tenant [String] The tenant id
|
|
188
|
+
# @param [Hash] opts the optional parameters
|
|
189
|
+
# @return [Array<(TenantAlertEmailGroupList, Integer, Hash)>] TenantAlertEmailGroupList data, response status code and response headers
|
|
190
|
+
def alert_email_group_list_with_http_info(tenant, opts = {})
|
|
191
|
+
if @api_client.config.debugging
|
|
192
|
+
@api_client.config.logger.debug 'Calling API: TenantApi.alert_email_group_list ...'
|
|
193
|
+
end
|
|
194
|
+
# verify the required parameter 'tenant' is set
|
|
195
|
+
if @api_client.config.client_side_validation && tenant.nil?
|
|
196
|
+
fail ArgumentError, "Missing the required parameter 'tenant' when calling TenantApi.alert_email_group_list"
|
|
197
|
+
end
|
|
198
|
+
if @api_client.config.client_side_validation && tenant.to_s.length > 36
|
|
199
|
+
fail ArgumentError, 'invalid value for "tenant" when calling TenantApi.alert_email_group_list, the character length must be smaller than or equal to 36.'
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
if @api_client.config.client_side_validation && tenant.to_s.length < 36
|
|
203
|
+
fail ArgumentError, 'invalid value for "tenant" when calling TenantApi.alert_email_group_list, the character length must be greater than or equal to 36.'
|
|
204
|
+
end
|
|
205
|
+
|
|
206
|
+
# resource path
|
|
207
|
+
local_var_path = '/api/v1/tenants/{tenant}/alerting-email-groups'.sub('{' + 'tenant' + '}', CGI.escape(tenant.to_s))
|
|
208
|
+
|
|
209
|
+
# query parameters
|
|
210
|
+
query_params = opts[:query_params] || {}
|
|
211
|
+
|
|
212
|
+
# header parameters
|
|
213
|
+
header_params = opts[:header_params] || {}
|
|
214
|
+
# HTTP header 'Accept' (if needed)
|
|
215
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
216
|
+
|
|
217
|
+
# form parameters
|
|
218
|
+
form_params = opts[:form_params] || {}
|
|
219
|
+
|
|
220
|
+
# http body (model)
|
|
221
|
+
post_body = opts[:debug_body]
|
|
222
|
+
|
|
223
|
+
# return_type
|
|
224
|
+
return_type = opts[:debug_return_type] || 'TenantAlertEmailGroupList'
|
|
225
|
+
|
|
226
|
+
# auth_names
|
|
227
|
+
auth_names = opts[:debug_auth_names] || ['cookieAuth', 'bearerAuth']
|
|
228
|
+
|
|
229
|
+
new_options = opts.merge(
|
|
230
|
+
:operation => :"TenantApi.alert_email_group_list",
|
|
231
|
+
:header_params => header_params,
|
|
232
|
+
:query_params => query_params,
|
|
233
|
+
:form_params => form_params,
|
|
234
|
+
:body => post_body,
|
|
235
|
+
:auth_names => auth_names,
|
|
236
|
+
:return_type => return_type
|
|
237
|
+
)
|
|
238
|
+
|
|
239
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
240
|
+
if @api_client.config.debugging
|
|
241
|
+
@api_client.config.logger.debug "API called: TenantApi#alert_email_group_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
242
|
+
end
|
|
243
|
+
return data, status_code, headers
|
|
244
|
+
end
|
|
245
|
+
|
|
246
|
+
# Update tenant alert email group
|
|
247
|
+
# Updates a tenant alert email group
|
|
248
|
+
# @param alert_email_group [String] The tenant alert email group id
|
|
249
|
+
# @param update_tenant_alert_email_group_request [UpdateTenantAlertEmailGroupRequest] The tenant alert email group to update
|
|
250
|
+
# @param [Hash] opts the optional parameters
|
|
251
|
+
# @return [TenantAlertEmailGroup]
|
|
252
|
+
def alert_email_group_update(alert_email_group, update_tenant_alert_email_group_request, opts = {})
|
|
253
|
+
data, _status_code, _headers = alert_email_group_update_with_http_info(alert_email_group, update_tenant_alert_email_group_request, opts)
|
|
254
|
+
data
|
|
255
|
+
end
|
|
256
|
+
|
|
257
|
+
# Update tenant alert email group
|
|
258
|
+
# Updates a tenant alert email group
|
|
259
|
+
# @param alert_email_group [String] The tenant alert email group id
|
|
260
|
+
# @param update_tenant_alert_email_group_request [UpdateTenantAlertEmailGroupRequest] The tenant alert email group to update
|
|
261
|
+
# @param [Hash] opts the optional parameters
|
|
262
|
+
# @return [Array<(TenantAlertEmailGroup, Integer, Hash)>] TenantAlertEmailGroup data, response status code and response headers
|
|
263
|
+
def alert_email_group_update_with_http_info(alert_email_group, update_tenant_alert_email_group_request, opts = {})
|
|
264
|
+
if @api_client.config.debugging
|
|
265
|
+
@api_client.config.logger.debug 'Calling API: TenantApi.alert_email_group_update ...'
|
|
266
|
+
end
|
|
267
|
+
# verify the required parameter 'alert_email_group' is set
|
|
268
|
+
if @api_client.config.client_side_validation && alert_email_group.nil?
|
|
269
|
+
fail ArgumentError, "Missing the required parameter 'alert_email_group' when calling TenantApi.alert_email_group_update"
|
|
270
|
+
end
|
|
271
|
+
if @api_client.config.client_side_validation && alert_email_group.to_s.length > 36
|
|
272
|
+
fail ArgumentError, 'invalid value for "alert_email_group" when calling TenantApi.alert_email_group_update, the character length must be smaller than or equal to 36.'
|
|
273
|
+
end
|
|
274
|
+
|
|
275
|
+
if @api_client.config.client_side_validation && alert_email_group.to_s.length < 36
|
|
276
|
+
fail ArgumentError, 'invalid value for "alert_email_group" when calling TenantApi.alert_email_group_update, the character length must be greater than or equal to 36.'
|
|
277
|
+
end
|
|
278
|
+
|
|
279
|
+
# verify the required parameter 'update_tenant_alert_email_group_request' is set
|
|
280
|
+
if @api_client.config.client_side_validation && update_tenant_alert_email_group_request.nil?
|
|
281
|
+
fail ArgumentError, "Missing the required parameter 'update_tenant_alert_email_group_request' when calling TenantApi.alert_email_group_update"
|
|
282
|
+
end
|
|
283
|
+
# resource path
|
|
284
|
+
local_var_path = '/api/v1/alerting-email-groups/{alert-email-group}'.sub('{' + 'alert-email-group' + '}', CGI.escape(alert_email_group.to_s))
|
|
285
|
+
|
|
286
|
+
# query parameters
|
|
287
|
+
query_params = opts[:query_params] || {}
|
|
288
|
+
|
|
289
|
+
# header parameters
|
|
290
|
+
header_params = opts[:header_params] || {}
|
|
291
|
+
# HTTP header 'Accept' (if needed)
|
|
292
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
293
|
+
# HTTP header 'Content-Type'
|
|
294
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
295
|
+
if !content_type.nil?
|
|
296
|
+
header_params['Content-Type'] = content_type
|
|
297
|
+
end
|
|
298
|
+
|
|
299
|
+
# form parameters
|
|
300
|
+
form_params = opts[:form_params] || {}
|
|
301
|
+
|
|
302
|
+
# http body (model)
|
|
303
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_tenant_alert_email_group_request)
|
|
304
|
+
|
|
305
|
+
# return_type
|
|
306
|
+
return_type = opts[:debug_return_type] || 'TenantAlertEmailGroup'
|
|
307
|
+
|
|
308
|
+
# auth_names
|
|
309
|
+
auth_names = opts[:debug_auth_names] || ['cookieAuth', 'bearerAuth']
|
|
310
|
+
|
|
311
|
+
new_options = opts.merge(
|
|
312
|
+
:operation => :"TenantApi.alert_email_group_update",
|
|
313
|
+
:header_params => header_params,
|
|
314
|
+
:query_params => query_params,
|
|
315
|
+
:form_params => form_params,
|
|
316
|
+
:body => post_body,
|
|
317
|
+
:auth_names => auth_names,
|
|
318
|
+
:return_type => return_type
|
|
319
|
+
)
|
|
320
|
+
|
|
321
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
322
|
+
if @api_client.config.debugging
|
|
323
|
+
@api_client.config.logger.debug "API called: TenantApi#alert_email_group_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
324
|
+
end
|
|
325
|
+
return data, status_code, headers
|
|
326
|
+
end
|
|
327
|
+
|
|
328
|
+
# Get tenant alerting settings
|
|
329
|
+
# Gets the alerting settings for a tenant
|
|
330
|
+
# @param tenant [String] The tenant id
|
|
331
|
+
# @param [Hash] opts the optional parameters
|
|
332
|
+
# @return [TenantAlertingSettings]
|
|
333
|
+
def tenant_alerting_settings_get(tenant, opts = {})
|
|
334
|
+
data, _status_code, _headers = tenant_alerting_settings_get_with_http_info(tenant, opts)
|
|
335
|
+
data
|
|
336
|
+
end
|
|
337
|
+
|
|
338
|
+
# Get tenant alerting settings
|
|
339
|
+
# Gets the alerting settings for a tenant
|
|
340
|
+
# @param tenant [String] The tenant id
|
|
341
|
+
# @param [Hash] opts the optional parameters
|
|
342
|
+
# @return [Array<(TenantAlertingSettings, Integer, Hash)>] TenantAlertingSettings data, response status code and response headers
|
|
343
|
+
def tenant_alerting_settings_get_with_http_info(tenant, opts = {})
|
|
344
|
+
if @api_client.config.debugging
|
|
345
|
+
@api_client.config.logger.debug 'Calling API: TenantApi.tenant_alerting_settings_get ...'
|
|
346
|
+
end
|
|
347
|
+
# verify the required parameter 'tenant' is set
|
|
348
|
+
if @api_client.config.client_side_validation && tenant.nil?
|
|
349
|
+
fail ArgumentError, "Missing the required parameter 'tenant' when calling TenantApi.tenant_alerting_settings_get"
|
|
350
|
+
end
|
|
351
|
+
if @api_client.config.client_side_validation && tenant.to_s.length > 36
|
|
352
|
+
fail ArgumentError, 'invalid value for "tenant" when calling TenantApi.tenant_alerting_settings_get, the character length must be smaller than or equal to 36.'
|
|
353
|
+
end
|
|
354
|
+
|
|
355
|
+
if @api_client.config.client_side_validation && tenant.to_s.length < 36
|
|
356
|
+
fail ArgumentError, 'invalid value for "tenant" when calling TenantApi.tenant_alerting_settings_get, the character length must be greater than or equal to 36.'
|
|
357
|
+
end
|
|
358
|
+
|
|
359
|
+
# resource path
|
|
360
|
+
local_var_path = '/api/v1/tenants/{tenant}/alerting/settings'.sub('{' + 'tenant' + '}', CGI.escape(tenant.to_s))
|
|
361
|
+
|
|
362
|
+
# query parameters
|
|
363
|
+
query_params = opts[:query_params] || {}
|
|
364
|
+
|
|
365
|
+
# header parameters
|
|
366
|
+
header_params = opts[:header_params] || {}
|
|
367
|
+
# HTTP header 'Accept' (if needed)
|
|
368
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
369
|
+
|
|
370
|
+
# form parameters
|
|
371
|
+
form_params = opts[:form_params] || {}
|
|
372
|
+
|
|
373
|
+
# http body (model)
|
|
374
|
+
post_body = opts[:debug_body]
|
|
375
|
+
|
|
376
|
+
# return_type
|
|
377
|
+
return_type = opts[:debug_return_type] || 'TenantAlertingSettings'
|
|
378
|
+
|
|
379
|
+
# auth_names
|
|
380
|
+
auth_names = opts[:debug_auth_names] || ['cookieAuth', 'bearerAuth']
|
|
381
|
+
|
|
382
|
+
new_options = opts.merge(
|
|
383
|
+
:operation => :"TenantApi.tenant_alerting_settings_get",
|
|
384
|
+
:header_params => header_params,
|
|
385
|
+
:query_params => query_params,
|
|
386
|
+
:form_params => form_params,
|
|
387
|
+
:body => post_body,
|
|
388
|
+
:auth_names => auth_names,
|
|
389
|
+
:return_type => return_type
|
|
390
|
+
)
|
|
391
|
+
|
|
392
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
393
|
+
if @api_client.config.debugging
|
|
394
|
+
@api_client.config.logger.debug "API called: TenantApi#tenant_alerting_settings_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
395
|
+
end
|
|
396
|
+
return data, status_code, headers
|
|
397
|
+
end
|
|
398
|
+
|
|
399
|
+
# Create tenant
|
|
400
|
+
# Creates a new tenant
|
|
401
|
+
# @param create_tenant_request [CreateTenantRequest] The tenant to create
|
|
402
|
+
# @param [Hash] opts the optional parameters
|
|
403
|
+
# @return [Tenant]
|
|
404
|
+
def tenant_create(create_tenant_request, opts = {})
|
|
405
|
+
data, _status_code, _headers = tenant_create_with_http_info(create_tenant_request, opts)
|
|
406
|
+
data
|
|
407
|
+
end
|
|
408
|
+
|
|
409
|
+
# Create tenant
|
|
410
|
+
# Creates a new tenant
|
|
411
|
+
# @param create_tenant_request [CreateTenantRequest] The tenant to create
|
|
412
|
+
# @param [Hash] opts the optional parameters
|
|
413
|
+
# @return [Array<(Tenant, Integer, Hash)>] Tenant data, response status code and response headers
|
|
414
|
+
def tenant_create_with_http_info(create_tenant_request, opts = {})
|
|
415
|
+
if @api_client.config.debugging
|
|
416
|
+
@api_client.config.logger.debug 'Calling API: TenantApi.tenant_create ...'
|
|
417
|
+
end
|
|
418
|
+
# verify the required parameter 'create_tenant_request' is set
|
|
419
|
+
if @api_client.config.client_side_validation && create_tenant_request.nil?
|
|
420
|
+
fail ArgumentError, "Missing the required parameter 'create_tenant_request' when calling TenantApi.tenant_create"
|
|
421
|
+
end
|
|
422
|
+
# resource path
|
|
423
|
+
local_var_path = '/api/v1/tenants'
|
|
424
|
+
|
|
425
|
+
# query parameters
|
|
426
|
+
query_params = opts[:query_params] || {}
|
|
427
|
+
|
|
428
|
+
# header parameters
|
|
429
|
+
header_params = opts[:header_params] || {}
|
|
430
|
+
# HTTP header 'Accept' (if needed)
|
|
431
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
432
|
+
# HTTP header 'Content-Type'
|
|
433
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
434
|
+
if !content_type.nil?
|
|
435
|
+
header_params['Content-Type'] = content_type
|
|
436
|
+
end
|
|
437
|
+
|
|
438
|
+
# form parameters
|
|
439
|
+
form_params = opts[:form_params] || {}
|
|
440
|
+
|
|
441
|
+
# http body (model)
|
|
442
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_tenant_request)
|
|
443
|
+
|
|
444
|
+
# return_type
|
|
445
|
+
return_type = opts[:debug_return_type] || 'Tenant'
|
|
446
|
+
|
|
447
|
+
# auth_names
|
|
448
|
+
auth_names = opts[:debug_auth_names] || ['cookieAuth', 'bearerAuth']
|
|
449
|
+
|
|
450
|
+
new_options = opts.merge(
|
|
451
|
+
:operation => :"TenantApi.tenant_create",
|
|
452
|
+
:header_params => header_params,
|
|
453
|
+
:query_params => query_params,
|
|
454
|
+
:form_params => form_params,
|
|
455
|
+
:body => post_body,
|
|
456
|
+
:auth_names => auth_names,
|
|
457
|
+
:return_type => return_type
|
|
458
|
+
)
|
|
459
|
+
|
|
460
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
461
|
+
if @api_client.config.debugging
|
|
462
|
+
@api_client.config.logger.debug "API called: TenantApi#tenant_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
463
|
+
end
|
|
464
|
+
return data, status_code, headers
|
|
465
|
+
end
|
|
466
|
+
|
|
467
|
+
# Get tenant
|
|
468
|
+
# Get the details of a tenant
|
|
469
|
+
# @param tenant [String] The tenant id to get details for
|
|
470
|
+
# @param [Hash] opts the optional parameters
|
|
471
|
+
# @return [Tenant]
|
|
472
|
+
def tenant_get(tenant, opts = {})
|
|
473
|
+
data, _status_code, _headers = tenant_get_with_http_info(tenant, opts)
|
|
474
|
+
data
|
|
475
|
+
end
|
|
476
|
+
|
|
477
|
+
# Get tenant
|
|
478
|
+
# Get the details of a tenant
|
|
479
|
+
# @param tenant [String] The tenant id to get details for
|
|
480
|
+
# @param [Hash] opts the optional parameters
|
|
481
|
+
# @return [Array<(Tenant, Integer, Hash)>] Tenant data, response status code and response headers
|
|
482
|
+
def tenant_get_with_http_info(tenant, opts = {})
|
|
483
|
+
if @api_client.config.debugging
|
|
484
|
+
@api_client.config.logger.debug 'Calling API: TenantApi.tenant_get ...'
|
|
485
|
+
end
|
|
486
|
+
# verify the required parameter 'tenant' is set
|
|
487
|
+
if @api_client.config.client_side_validation && tenant.nil?
|
|
488
|
+
fail ArgumentError, "Missing the required parameter 'tenant' when calling TenantApi.tenant_get"
|
|
489
|
+
end
|
|
490
|
+
if @api_client.config.client_side_validation && tenant.to_s.length > 36
|
|
491
|
+
fail ArgumentError, 'invalid value for "tenant" when calling TenantApi.tenant_get, the character length must be smaller than or equal to 36.'
|
|
492
|
+
end
|
|
493
|
+
|
|
494
|
+
if @api_client.config.client_side_validation && tenant.to_s.length < 36
|
|
495
|
+
fail ArgumentError, 'invalid value for "tenant" when calling TenantApi.tenant_get, the character length must be greater than or equal to 36.'
|
|
496
|
+
end
|
|
497
|
+
|
|
498
|
+
# resource path
|
|
499
|
+
local_var_path = '/api/v1/tenants/{tenant}'.sub('{' + 'tenant' + '}', CGI.escape(tenant.to_s))
|
|
500
|
+
|
|
501
|
+
# query parameters
|
|
502
|
+
query_params = opts[:query_params] || {}
|
|
503
|
+
|
|
504
|
+
# header parameters
|
|
505
|
+
header_params = opts[:header_params] || {}
|
|
506
|
+
# HTTP header 'Accept' (if needed)
|
|
507
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
508
|
+
|
|
509
|
+
# form parameters
|
|
510
|
+
form_params = opts[:form_params] || {}
|
|
511
|
+
|
|
512
|
+
# http body (model)
|
|
513
|
+
post_body = opts[:debug_body]
|
|
514
|
+
|
|
515
|
+
# return_type
|
|
516
|
+
return_type = opts[:debug_return_type] || 'Tenant'
|
|
517
|
+
|
|
518
|
+
# auth_names
|
|
519
|
+
auth_names = opts[:debug_auth_names] || ['cookieAuth', 'bearerAuth']
|
|
520
|
+
|
|
521
|
+
new_options = opts.merge(
|
|
522
|
+
:operation => :"TenantApi.tenant_get",
|
|
523
|
+
:header_params => header_params,
|
|
524
|
+
:query_params => query_params,
|
|
525
|
+
:form_params => form_params,
|
|
526
|
+
:body => post_body,
|
|
527
|
+
:auth_names => auth_names,
|
|
528
|
+
:return_type => return_type
|
|
529
|
+
)
|
|
530
|
+
|
|
531
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
532
|
+
if @api_client.config.debugging
|
|
533
|
+
@api_client.config.logger.debug "API called: TenantApi#tenant_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
534
|
+
end
|
|
535
|
+
return data, status_code, headers
|
|
536
|
+
end
|
|
537
|
+
|
|
538
|
+
# Get prometheus metrics
|
|
539
|
+
# Get the prometheus metrics for the tenant
|
|
540
|
+
# @param tenant [String] The tenant id
|
|
541
|
+
# @param [Hash] opts the optional parameters
|
|
542
|
+
# @return [String]
|
|
543
|
+
def tenant_get_prometheus_metrics(tenant, opts = {})
|
|
544
|
+
data, _status_code, _headers = tenant_get_prometheus_metrics_with_http_info(tenant, opts)
|
|
545
|
+
data
|
|
546
|
+
end
|
|
547
|
+
|
|
548
|
+
# Get prometheus metrics
|
|
549
|
+
# Get the prometheus metrics for the tenant
|
|
550
|
+
# @param tenant [String] The tenant id
|
|
551
|
+
# @param [Hash] opts the optional parameters
|
|
552
|
+
# @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
|
|
553
|
+
def tenant_get_prometheus_metrics_with_http_info(tenant, opts = {})
|
|
554
|
+
if @api_client.config.debugging
|
|
555
|
+
@api_client.config.logger.debug 'Calling API: TenantApi.tenant_get_prometheus_metrics ...'
|
|
556
|
+
end
|
|
557
|
+
# verify the required parameter 'tenant' is set
|
|
558
|
+
if @api_client.config.client_side_validation && tenant.nil?
|
|
559
|
+
fail ArgumentError, "Missing the required parameter 'tenant' when calling TenantApi.tenant_get_prometheus_metrics"
|
|
560
|
+
end
|
|
561
|
+
if @api_client.config.client_side_validation && tenant.to_s.length > 36
|
|
562
|
+
fail ArgumentError, 'invalid value for "tenant" when calling TenantApi.tenant_get_prometheus_metrics, the character length must be smaller than or equal to 36.'
|
|
563
|
+
end
|
|
564
|
+
|
|
565
|
+
if @api_client.config.client_side_validation && tenant.to_s.length < 36
|
|
566
|
+
fail ArgumentError, 'invalid value for "tenant" when calling TenantApi.tenant_get_prometheus_metrics, the character length must be greater than or equal to 36.'
|
|
567
|
+
end
|
|
568
|
+
|
|
569
|
+
# resource path
|
|
570
|
+
local_var_path = '/api/v1/tenants/{tenant}/prometheus-metrics'.sub('{' + 'tenant' + '}', CGI.escape(tenant.to_s))
|
|
571
|
+
|
|
572
|
+
# query parameters
|
|
573
|
+
query_params = opts[:query_params] || {}
|
|
574
|
+
|
|
575
|
+
# header parameters
|
|
576
|
+
header_params = opts[:header_params] || {}
|
|
577
|
+
# HTTP header 'Accept' (if needed)
|
|
578
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json']) unless header_params['Accept']
|
|
579
|
+
|
|
580
|
+
# form parameters
|
|
581
|
+
form_params = opts[:form_params] || {}
|
|
582
|
+
|
|
583
|
+
# http body (model)
|
|
584
|
+
post_body = opts[:debug_body]
|
|
585
|
+
|
|
586
|
+
# return_type
|
|
587
|
+
return_type = opts[:debug_return_type] || 'String'
|
|
588
|
+
|
|
589
|
+
# auth_names
|
|
590
|
+
auth_names = opts[:debug_auth_names] || ['cookieAuth', 'bearerAuth']
|
|
591
|
+
|
|
592
|
+
new_options = opts.merge(
|
|
593
|
+
:operation => :"TenantApi.tenant_get_prometheus_metrics",
|
|
594
|
+
:header_params => header_params,
|
|
595
|
+
:query_params => query_params,
|
|
596
|
+
:form_params => form_params,
|
|
597
|
+
:body => post_body,
|
|
598
|
+
:auth_names => auth_names,
|
|
599
|
+
:return_type => return_type
|
|
600
|
+
)
|
|
601
|
+
|
|
602
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
603
|
+
if @api_client.config.debugging
|
|
604
|
+
@api_client.config.logger.debug "API called: TenantApi#tenant_get_prometheus_metrics\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
605
|
+
end
|
|
606
|
+
return data, status_code, headers
|
|
607
|
+
end
|
|
608
|
+
|
|
609
|
+
# Get step run metrics
|
|
610
|
+
# Get the queue metrics for the tenant
|
|
611
|
+
# @param tenant [String] The tenant id
|
|
612
|
+
# @param [Hash] opts the optional parameters
|
|
613
|
+
# @return [TenantStepRunQueueMetrics]
|
|
614
|
+
def tenant_get_step_run_queue_metrics(tenant, opts = {})
|
|
615
|
+
data, _status_code, _headers = tenant_get_step_run_queue_metrics_with_http_info(tenant, opts)
|
|
616
|
+
data
|
|
617
|
+
end
|
|
618
|
+
|
|
619
|
+
# Get step run metrics
|
|
620
|
+
# Get the queue metrics for the tenant
|
|
621
|
+
# @param tenant [String] The tenant id
|
|
622
|
+
# @param [Hash] opts the optional parameters
|
|
623
|
+
# @return [Array<(TenantStepRunQueueMetrics, Integer, Hash)>] TenantStepRunQueueMetrics data, response status code and response headers
|
|
624
|
+
def tenant_get_step_run_queue_metrics_with_http_info(tenant, opts = {})
|
|
625
|
+
if @api_client.config.debugging
|
|
626
|
+
@api_client.config.logger.debug 'Calling API: TenantApi.tenant_get_step_run_queue_metrics ...'
|
|
627
|
+
end
|
|
628
|
+
# verify the required parameter 'tenant' is set
|
|
629
|
+
if @api_client.config.client_side_validation && tenant.nil?
|
|
630
|
+
fail ArgumentError, "Missing the required parameter 'tenant' when calling TenantApi.tenant_get_step_run_queue_metrics"
|
|
631
|
+
end
|
|
632
|
+
if @api_client.config.client_side_validation && tenant.to_s.length > 36
|
|
633
|
+
fail ArgumentError, 'invalid value for "tenant" when calling TenantApi.tenant_get_step_run_queue_metrics, the character length must be smaller than or equal to 36.'
|
|
634
|
+
end
|
|
635
|
+
|
|
636
|
+
if @api_client.config.client_side_validation && tenant.to_s.length < 36
|
|
637
|
+
fail ArgumentError, 'invalid value for "tenant" when calling TenantApi.tenant_get_step_run_queue_metrics, the character length must be greater than or equal to 36.'
|
|
638
|
+
end
|
|
639
|
+
|
|
640
|
+
# resource path
|
|
641
|
+
local_var_path = '/api/v1/tenants/{tenant}/step-run-queue-metrics'.sub('{' + 'tenant' + '}', CGI.escape(tenant.to_s))
|
|
642
|
+
|
|
643
|
+
# query parameters
|
|
644
|
+
query_params = opts[:query_params] || {}
|
|
645
|
+
|
|
646
|
+
# header parameters
|
|
647
|
+
header_params = opts[:header_params] || {}
|
|
648
|
+
# HTTP header 'Accept' (if needed)
|
|
649
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
650
|
+
|
|
651
|
+
# form parameters
|
|
652
|
+
form_params = opts[:form_params] || {}
|
|
653
|
+
|
|
654
|
+
# http body (model)
|
|
655
|
+
post_body = opts[:debug_body]
|
|
656
|
+
|
|
657
|
+
# return_type
|
|
658
|
+
return_type = opts[:debug_return_type] || 'TenantStepRunQueueMetrics'
|
|
659
|
+
|
|
660
|
+
# auth_names
|
|
661
|
+
auth_names = opts[:debug_auth_names] || ['cookieAuth', 'bearerAuth']
|
|
662
|
+
|
|
663
|
+
new_options = opts.merge(
|
|
664
|
+
:operation => :"TenantApi.tenant_get_step_run_queue_metrics",
|
|
665
|
+
:header_params => header_params,
|
|
666
|
+
:query_params => query_params,
|
|
667
|
+
:form_params => form_params,
|
|
668
|
+
:body => post_body,
|
|
669
|
+
:auth_names => auth_names,
|
|
670
|
+
:return_type => return_type
|
|
671
|
+
)
|
|
672
|
+
|
|
673
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
674
|
+
if @api_client.config.debugging
|
|
675
|
+
@api_client.config.logger.debug "API called: TenantApi#tenant_get_step_run_queue_metrics\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
676
|
+
end
|
|
677
|
+
return data, status_code, headers
|
|
678
|
+
end
|
|
679
|
+
|
|
680
|
+
# Accept tenant invite
|
|
681
|
+
# Accepts a tenant invite
|
|
682
|
+
# @param [Hash] opts the optional parameters
|
|
683
|
+
# @option opts [AcceptInviteRequest] :accept_invite_request
|
|
684
|
+
# @return [nil]
|
|
685
|
+
def tenant_invite_accept(opts = {})
|
|
686
|
+
tenant_invite_accept_with_http_info(opts)
|
|
687
|
+
nil
|
|
688
|
+
end
|
|
689
|
+
|
|
690
|
+
# Accept tenant invite
|
|
691
|
+
# Accepts a tenant invite
|
|
692
|
+
# @param [Hash] opts the optional parameters
|
|
693
|
+
# @option opts [AcceptInviteRequest] :accept_invite_request
|
|
694
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
695
|
+
def tenant_invite_accept_with_http_info(opts = {})
|
|
696
|
+
if @api_client.config.debugging
|
|
697
|
+
@api_client.config.logger.debug 'Calling API: TenantApi.tenant_invite_accept ...'
|
|
698
|
+
end
|
|
699
|
+
# resource path
|
|
700
|
+
local_var_path = '/api/v1/users/invites/accept'
|
|
701
|
+
|
|
702
|
+
# query parameters
|
|
703
|
+
query_params = opts[:query_params] || {}
|
|
704
|
+
|
|
705
|
+
# header parameters
|
|
706
|
+
header_params = opts[:header_params] || {}
|
|
707
|
+
# HTTP header 'Accept' (if needed)
|
|
708
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
709
|
+
# HTTP header 'Content-Type'
|
|
710
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
711
|
+
if !content_type.nil?
|
|
712
|
+
header_params['Content-Type'] = content_type
|
|
713
|
+
end
|
|
714
|
+
|
|
715
|
+
# form parameters
|
|
716
|
+
form_params = opts[:form_params] || {}
|
|
717
|
+
|
|
718
|
+
# http body (model)
|
|
719
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'accept_invite_request'])
|
|
720
|
+
|
|
721
|
+
# return_type
|
|
722
|
+
return_type = opts[:debug_return_type]
|
|
723
|
+
|
|
724
|
+
# auth_names
|
|
725
|
+
auth_names = opts[:debug_auth_names] || ['cookieAuth', 'bearerAuth']
|
|
726
|
+
|
|
727
|
+
new_options = opts.merge(
|
|
728
|
+
:operation => :"TenantApi.tenant_invite_accept",
|
|
729
|
+
:header_params => header_params,
|
|
730
|
+
:query_params => query_params,
|
|
731
|
+
:form_params => form_params,
|
|
732
|
+
:body => post_body,
|
|
733
|
+
:auth_names => auth_names,
|
|
734
|
+
:return_type => return_type
|
|
735
|
+
)
|
|
736
|
+
|
|
737
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
738
|
+
if @api_client.config.debugging
|
|
739
|
+
@api_client.config.logger.debug "API called: TenantApi#tenant_invite_accept\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
740
|
+
end
|
|
741
|
+
return data, status_code, headers
|
|
742
|
+
end
|
|
743
|
+
|
|
744
|
+
# Create tenant invite
|
|
745
|
+
# Creates a new tenant invite
|
|
746
|
+
# @param tenant [String] The tenant id
|
|
747
|
+
# @param create_tenant_invite_request [CreateTenantInviteRequest] The tenant invite to create
|
|
748
|
+
# @param [Hash] opts the optional parameters
|
|
749
|
+
# @return [TenantInvite]
|
|
750
|
+
def tenant_invite_create(tenant, create_tenant_invite_request, opts = {})
|
|
751
|
+
data, _status_code, _headers = tenant_invite_create_with_http_info(tenant, create_tenant_invite_request, opts)
|
|
752
|
+
data
|
|
753
|
+
end
|
|
754
|
+
|
|
755
|
+
# Create tenant invite
|
|
756
|
+
# Creates a new tenant invite
|
|
757
|
+
# @param tenant [String] The tenant id
|
|
758
|
+
# @param create_tenant_invite_request [CreateTenantInviteRequest] The tenant invite to create
|
|
759
|
+
# @param [Hash] opts the optional parameters
|
|
760
|
+
# @return [Array<(TenantInvite, Integer, Hash)>] TenantInvite data, response status code and response headers
|
|
761
|
+
def tenant_invite_create_with_http_info(tenant, create_tenant_invite_request, opts = {})
|
|
762
|
+
if @api_client.config.debugging
|
|
763
|
+
@api_client.config.logger.debug 'Calling API: TenantApi.tenant_invite_create ...'
|
|
764
|
+
end
|
|
765
|
+
# verify the required parameter 'tenant' is set
|
|
766
|
+
if @api_client.config.client_side_validation && tenant.nil?
|
|
767
|
+
fail ArgumentError, "Missing the required parameter 'tenant' when calling TenantApi.tenant_invite_create"
|
|
768
|
+
end
|
|
769
|
+
if @api_client.config.client_side_validation && tenant.to_s.length > 36
|
|
770
|
+
fail ArgumentError, 'invalid value for "tenant" when calling TenantApi.tenant_invite_create, the character length must be smaller than or equal to 36.'
|
|
771
|
+
end
|
|
772
|
+
|
|
773
|
+
if @api_client.config.client_side_validation && tenant.to_s.length < 36
|
|
774
|
+
fail ArgumentError, 'invalid value for "tenant" when calling TenantApi.tenant_invite_create, the character length must be greater than or equal to 36.'
|
|
775
|
+
end
|
|
776
|
+
|
|
777
|
+
# verify the required parameter 'create_tenant_invite_request' is set
|
|
778
|
+
if @api_client.config.client_side_validation && create_tenant_invite_request.nil?
|
|
779
|
+
fail ArgumentError, "Missing the required parameter 'create_tenant_invite_request' when calling TenantApi.tenant_invite_create"
|
|
780
|
+
end
|
|
781
|
+
# resource path
|
|
782
|
+
local_var_path = '/api/v1/tenants/{tenant}/invites'.sub('{' + 'tenant' + '}', CGI.escape(tenant.to_s))
|
|
783
|
+
|
|
784
|
+
# query parameters
|
|
785
|
+
query_params = opts[:query_params] || {}
|
|
786
|
+
|
|
787
|
+
# header parameters
|
|
788
|
+
header_params = opts[:header_params] || {}
|
|
789
|
+
# HTTP header 'Accept' (if needed)
|
|
790
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
791
|
+
# HTTP header 'Content-Type'
|
|
792
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
793
|
+
if !content_type.nil?
|
|
794
|
+
header_params['Content-Type'] = content_type
|
|
795
|
+
end
|
|
796
|
+
|
|
797
|
+
# form parameters
|
|
798
|
+
form_params = opts[:form_params] || {}
|
|
799
|
+
|
|
800
|
+
# http body (model)
|
|
801
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_tenant_invite_request)
|
|
802
|
+
|
|
803
|
+
# return_type
|
|
804
|
+
return_type = opts[:debug_return_type] || 'TenantInvite'
|
|
805
|
+
|
|
806
|
+
# auth_names
|
|
807
|
+
auth_names = opts[:debug_auth_names] || ['cookieAuth', 'bearerAuth']
|
|
808
|
+
|
|
809
|
+
new_options = opts.merge(
|
|
810
|
+
:operation => :"TenantApi.tenant_invite_create",
|
|
811
|
+
:header_params => header_params,
|
|
812
|
+
:query_params => query_params,
|
|
813
|
+
:form_params => form_params,
|
|
814
|
+
:body => post_body,
|
|
815
|
+
:auth_names => auth_names,
|
|
816
|
+
:return_type => return_type
|
|
817
|
+
)
|
|
818
|
+
|
|
819
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
820
|
+
if @api_client.config.debugging
|
|
821
|
+
@api_client.config.logger.debug "API called: TenantApi#tenant_invite_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
822
|
+
end
|
|
823
|
+
return data, status_code, headers
|
|
824
|
+
end
|
|
825
|
+
|
|
826
|
+
# List tenant invites
|
|
827
|
+
# Gets a list of tenant invites
|
|
828
|
+
# @param tenant [String] The tenant id
|
|
829
|
+
# @param [Hash] opts the optional parameters
|
|
830
|
+
# @return [TenantInviteList]
|
|
831
|
+
def tenant_invite_list(tenant, opts = {})
|
|
832
|
+
data, _status_code, _headers = tenant_invite_list_with_http_info(tenant, opts)
|
|
833
|
+
data
|
|
834
|
+
end
|
|
835
|
+
|
|
836
|
+
# List tenant invites
|
|
837
|
+
# Gets a list of tenant invites
|
|
838
|
+
# @param tenant [String] The tenant id
|
|
839
|
+
# @param [Hash] opts the optional parameters
|
|
840
|
+
# @return [Array<(TenantInviteList, Integer, Hash)>] TenantInviteList data, response status code and response headers
|
|
841
|
+
def tenant_invite_list_with_http_info(tenant, opts = {})
|
|
842
|
+
if @api_client.config.debugging
|
|
843
|
+
@api_client.config.logger.debug 'Calling API: TenantApi.tenant_invite_list ...'
|
|
844
|
+
end
|
|
845
|
+
# verify the required parameter 'tenant' is set
|
|
846
|
+
if @api_client.config.client_side_validation && tenant.nil?
|
|
847
|
+
fail ArgumentError, "Missing the required parameter 'tenant' when calling TenantApi.tenant_invite_list"
|
|
848
|
+
end
|
|
849
|
+
if @api_client.config.client_side_validation && tenant.to_s.length > 36
|
|
850
|
+
fail ArgumentError, 'invalid value for "tenant" when calling TenantApi.tenant_invite_list, the character length must be smaller than or equal to 36.'
|
|
851
|
+
end
|
|
852
|
+
|
|
853
|
+
if @api_client.config.client_side_validation && tenant.to_s.length < 36
|
|
854
|
+
fail ArgumentError, 'invalid value for "tenant" when calling TenantApi.tenant_invite_list, the character length must be greater than or equal to 36.'
|
|
855
|
+
end
|
|
856
|
+
|
|
857
|
+
# resource path
|
|
858
|
+
local_var_path = '/api/v1/tenants/{tenant}/invites'.sub('{' + 'tenant' + '}', CGI.escape(tenant.to_s))
|
|
859
|
+
|
|
860
|
+
# query parameters
|
|
861
|
+
query_params = opts[:query_params] || {}
|
|
862
|
+
|
|
863
|
+
# header parameters
|
|
864
|
+
header_params = opts[:header_params] || {}
|
|
865
|
+
# HTTP header 'Accept' (if needed)
|
|
866
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
867
|
+
|
|
868
|
+
# form parameters
|
|
869
|
+
form_params = opts[:form_params] || {}
|
|
870
|
+
|
|
871
|
+
# http body (model)
|
|
872
|
+
post_body = opts[:debug_body]
|
|
873
|
+
|
|
874
|
+
# return_type
|
|
875
|
+
return_type = opts[:debug_return_type] || 'TenantInviteList'
|
|
876
|
+
|
|
877
|
+
# auth_names
|
|
878
|
+
auth_names = opts[:debug_auth_names] || ['cookieAuth', 'bearerAuth']
|
|
879
|
+
|
|
880
|
+
new_options = opts.merge(
|
|
881
|
+
:operation => :"TenantApi.tenant_invite_list",
|
|
882
|
+
:header_params => header_params,
|
|
883
|
+
:query_params => query_params,
|
|
884
|
+
:form_params => form_params,
|
|
885
|
+
:body => post_body,
|
|
886
|
+
:auth_names => auth_names,
|
|
887
|
+
:return_type => return_type
|
|
888
|
+
)
|
|
889
|
+
|
|
890
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
891
|
+
if @api_client.config.debugging
|
|
892
|
+
@api_client.config.logger.debug "API called: TenantApi#tenant_invite_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
893
|
+
end
|
|
894
|
+
return data, status_code, headers
|
|
895
|
+
end
|
|
896
|
+
|
|
897
|
+
# Reject tenant invite
|
|
898
|
+
# Rejects a tenant invite
|
|
899
|
+
# @param [Hash] opts the optional parameters
|
|
900
|
+
# @option opts [RejectInviteRequest] :reject_invite_request
|
|
901
|
+
# @return [nil]
|
|
902
|
+
def tenant_invite_reject(opts = {})
|
|
903
|
+
tenant_invite_reject_with_http_info(opts)
|
|
904
|
+
nil
|
|
905
|
+
end
|
|
906
|
+
|
|
907
|
+
# Reject tenant invite
|
|
908
|
+
# Rejects a tenant invite
|
|
909
|
+
# @param [Hash] opts the optional parameters
|
|
910
|
+
# @option opts [RejectInviteRequest] :reject_invite_request
|
|
911
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
912
|
+
def tenant_invite_reject_with_http_info(opts = {})
|
|
913
|
+
if @api_client.config.debugging
|
|
914
|
+
@api_client.config.logger.debug 'Calling API: TenantApi.tenant_invite_reject ...'
|
|
915
|
+
end
|
|
916
|
+
# resource path
|
|
917
|
+
local_var_path = '/api/v1/users/invites/reject'
|
|
918
|
+
|
|
919
|
+
# query parameters
|
|
920
|
+
query_params = opts[:query_params] || {}
|
|
921
|
+
|
|
922
|
+
# header parameters
|
|
923
|
+
header_params = opts[:header_params] || {}
|
|
924
|
+
# HTTP header 'Accept' (if needed)
|
|
925
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
926
|
+
# HTTP header 'Content-Type'
|
|
927
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
928
|
+
if !content_type.nil?
|
|
929
|
+
header_params['Content-Type'] = content_type
|
|
930
|
+
end
|
|
931
|
+
|
|
932
|
+
# form parameters
|
|
933
|
+
form_params = opts[:form_params] || {}
|
|
934
|
+
|
|
935
|
+
# http body (model)
|
|
936
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'reject_invite_request'])
|
|
937
|
+
|
|
938
|
+
# return_type
|
|
939
|
+
return_type = opts[:debug_return_type]
|
|
940
|
+
|
|
941
|
+
# auth_names
|
|
942
|
+
auth_names = opts[:debug_auth_names] || ['cookieAuth', 'bearerAuth']
|
|
943
|
+
|
|
944
|
+
new_options = opts.merge(
|
|
945
|
+
:operation => :"TenantApi.tenant_invite_reject",
|
|
946
|
+
:header_params => header_params,
|
|
947
|
+
:query_params => query_params,
|
|
948
|
+
:form_params => form_params,
|
|
949
|
+
:body => post_body,
|
|
950
|
+
:auth_names => auth_names,
|
|
951
|
+
:return_type => return_type
|
|
952
|
+
)
|
|
953
|
+
|
|
954
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
955
|
+
if @api_client.config.debugging
|
|
956
|
+
@api_client.config.logger.debug "API called: TenantApi#tenant_invite_reject\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
957
|
+
end
|
|
958
|
+
return data, status_code, headers
|
|
959
|
+
end
|
|
960
|
+
|
|
961
|
+
# Delete a tenant member
|
|
962
|
+
# Delete a member from a tenant
|
|
963
|
+
# @param tenant [String] The tenant id
|
|
964
|
+
# @param member [String] The tenant member id
|
|
965
|
+
# @param [Hash] opts the optional parameters
|
|
966
|
+
# @return [TenantMember]
|
|
967
|
+
def tenant_member_delete(tenant, member, opts = {})
|
|
968
|
+
data, _status_code, _headers = tenant_member_delete_with_http_info(tenant, member, opts)
|
|
969
|
+
data
|
|
970
|
+
end
|
|
971
|
+
|
|
972
|
+
# Delete a tenant member
|
|
973
|
+
# Delete a member from a tenant
|
|
974
|
+
# @param tenant [String] The tenant id
|
|
975
|
+
# @param member [String] The tenant member id
|
|
976
|
+
# @param [Hash] opts the optional parameters
|
|
977
|
+
# @return [Array<(TenantMember, Integer, Hash)>] TenantMember data, response status code and response headers
|
|
978
|
+
def tenant_member_delete_with_http_info(tenant, member, opts = {})
|
|
979
|
+
if @api_client.config.debugging
|
|
980
|
+
@api_client.config.logger.debug 'Calling API: TenantApi.tenant_member_delete ...'
|
|
981
|
+
end
|
|
982
|
+
# verify the required parameter 'tenant' is set
|
|
983
|
+
if @api_client.config.client_side_validation && tenant.nil?
|
|
984
|
+
fail ArgumentError, "Missing the required parameter 'tenant' when calling TenantApi.tenant_member_delete"
|
|
985
|
+
end
|
|
986
|
+
if @api_client.config.client_side_validation && tenant.to_s.length > 36
|
|
987
|
+
fail ArgumentError, 'invalid value for "tenant" when calling TenantApi.tenant_member_delete, the character length must be smaller than or equal to 36.'
|
|
988
|
+
end
|
|
989
|
+
|
|
990
|
+
if @api_client.config.client_side_validation && tenant.to_s.length < 36
|
|
991
|
+
fail ArgumentError, 'invalid value for "tenant" when calling TenantApi.tenant_member_delete, the character length must be greater than or equal to 36.'
|
|
992
|
+
end
|
|
993
|
+
|
|
994
|
+
# verify the required parameter 'member' is set
|
|
995
|
+
if @api_client.config.client_side_validation && member.nil?
|
|
996
|
+
fail ArgumentError, "Missing the required parameter 'member' when calling TenantApi.tenant_member_delete"
|
|
997
|
+
end
|
|
998
|
+
if @api_client.config.client_side_validation && member.to_s.length > 36
|
|
999
|
+
fail ArgumentError, 'invalid value for "member" when calling TenantApi.tenant_member_delete, the character length must be smaller than or equal to 36.'
|
|
1000
|
+
end
|
|
1001
|
+
|
|
1002
|
+
if @api_client.config.client_side_validation && member.to_s.length < 36
|
|
1003
|
+
fail ArgumentError, 'invalid value for "member" when calling TenantApi.tenant_member_delete, the character length must be greater than or equal to 36.'
|
|
1004
|
+
end
|
|
1005
|
+
|
|
1006
|
+
# resource path
|
|
1007
|
+
local_var_path = '/api/v1/tenants/{tenant}/members/{member}'.sub('{' + 'tenant' + '}', CGI.escape(tenant.to_s)).sub('{' + 'member' + '}', CGI.escape(member.to_s))
|
|
1008
|
+
|
|
1009
|
+
# query parameters
|
|
1010
|
+
query_params = opts[:query_params] || {}
|
|
1011
|
+
|
|
1012
|
+
# header parameters
|
|
1013
|
+
header_params = opts[:header_params] || {}
|
|
1014
|
+
# HTTP header 'Accept' (if needed)
|
|
1015
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1016
|
+
|
|
1017
|
+
# form parameters
|
|
1018
|
+
form_params = opts[:form_params] || {}
|
|
1019
|
+
|
|
1020
|
+
# http body (model)
|
|
1021
|
+
post_body = opts[:debug_body]
|
|
1022
|
+
|
|
1023
|
+
# return_type
|
|
1024
|
+
return_type = opts[:debug_return_type] || 'TenantMember'
|
|
1025
|
+
|
|
1026
|
+
# auth_names
|
|
1027
|
+
auth_names = opts[:debug_auth_names] || ['cookieAuth', 'bearerAuth']
|
|
1028
|
+
|
|
1029
|
+
new_options = opts.merge(
|
|
1030
|
+
:operation => :"TenantApi.tenant_member_delete",
|
|
1031
|
+
:header_params => header_params,
|
|
1032
|
+
:query_params => query_params,
|
|
1033
|
+
:form_params => form_params,
|
|
1034
|
+
:body => post_body,
|
|
1035
|
+
:auth_names => auth_names,
|
|
1036
|
+
:return_type => return_type
|
|
1037
|
+
)
|
|
1038
|
+
|
|
1039
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
1040
|
+
if @api_client.config.debugging
|
|
1041
|
+
@api_client.config.logger.debug "API called: TenantApi#tenant_member_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1042
|
+
end
|
|
1043
|
+
return data, status_code, headers
|
|
1044
|
+
end
|
|
1045
|
+
|
|
1046
|
+
# List tenant members
|
|
1047
|
+
# Gets a list of tenant members
|
|
1048
|
+
# @param tenant [String] The tenant id
|
|
1049
|
+
# @param [Hash] opts the optional parameters
|
|
1050
|
+
# @return [TenantMemberList]
|
|
1051
|
+
def tenant_member_list(tenant, opts = {})
|
|
1052
|
+
data, _status_code, _headers = tenant_member_list_with_http_info(tenant, opts)
|
|
1053
|
+
data
|
|
1054
|
+
end
|
|
1055
|
+
|
|
1056
|
+
# List tenant members
|
|
1057
|
+
# Gets a list of tenant members
|
|
1058
|
+
# @param tenant [String] The tenant id
|
|
1059
|
+
# @param [Hash] opts the optional parameters
|
|
1060
|
+
# @return [Array<(TenantMemberList, Integer, Hash)>] TenantMemberList data, response status code and response headers
|
|
1061
|
+
def tenant_member_list_with_http_info(tenant, opts = {})
|
|
1062
|
+
if @api_client.config.debugging
|
|
1063
|
+
@api_client.config.logger.debug 'Calling API: TenantApi.tenant_member_list ...'
|
|
1064
|
+
end
|
|
1065
|
+
# verify the required parameter 'tenant' is set
|
|
1066
|
+
if @api_client.config.client_side_validation && tenant.nil?
|
|
1067
|
+
fail ArgumentError, "Missing the required parameter 'tenant' when calling TenantApi.tenant_member_list"
|
|
1068
|
+
end
|
|
1069
|
+
if @api_client.config.client_side_validation && tenant.to_s.length > 36
|
|
1070
|
+
fail ArgumentError, 'invalid value for "tenant" when calling TenantApi.tenant_member_list, the character length must be smaller than or equal to 36.'
|
|
1071
|
+
end
|
|
1072
|
+
|
|
1073
|
+
if @api_client.config.client_side_validation && tenant.to_s.length < 36
|
|
1074
|
+
fail ArgumentError, 'invalid value for "tenant" when calling TenantApi.tenant_member_list, the character length must be greater than or equal to 36.'
|
|
1075
|
+
end
|
|
1076
|
+
|
|
1077
|
+
# resource path
|
|
1078
|
+
local_var_path = '/api/v1/tenants/{tenant}/members'.sub('{' + 'tenant' + '}', CGI.escape(tenant.to_s))
|
|
1079
|
+
|
|
1080
|
+
# query parameters
|
|
1081
|
+
query_params = opts[:query_params] || {}
|
|
1082
|
+
|
|
1083
|
+
# header parameters
|
|
1084
|
+
header_params = opts[:header_params] || {}
|
|
1085
|
+
# HTTP header 'Accept' (if needed)
|
|
1086
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1087
|
+
|
|
1088
|
+
# form parameters
|
|
1089
|
+
form_params = opts[:form_params] || {}
|
|
1090
|
+
|
|
1091
|
+
# http body (model)
|
|
1092
|
+
post_body = opts[:debug_body]
|
|
1093
|
+
|
|
1094
|
+
# return_type
|
|
1095
|
+
return_type = opts[:debug_return_type] || 'TenantMemberList'
|
|
1096
|
+
|
|
1097
|
+
# auth_names
|
|
1098
|
+
auth_names = opts[:debug_auth_names] || ['cookieAuth', 'bearerAuth']
|
|
1099
|
+
|
|
1100
|
+
new_options = opts.merge(
|
|
1101
|
+
:operation => :"TenantApi.tenant_member_list",
|
|
1102
|
+
:header_params => header_params,
|
|
1103
|
+
:query_params => query_params,
|
|
1104
|
+
:form_params => form_params,
|
|
1105
|
+
:body => post_body,
|
|
1106
|
+
:auth_names => auth_names,
|
|
1107
|
+
:return_type => return_type
|
|
1108
|
+
)
|
|
1109
|
+
|
|
1110
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1111
|
+
if @api_client.config.debugging
|
|
1112
|
+
@api_client.config.logger.debug "API called: TenantApi#tenant_member_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1113
|
+
end
|
|
1114
|
+
return data, status_code, headers
|
|
1115
|
+
end
|
|
1116
|
+
|
|
1117
|
+
# Create tenant alert email group
|
|
1118
|
+
# Gets the resource policy for a tenant
|
|
1119
|
+
# @param tenant [String] The tenant id
|
|
1120
|
+
# @param [Hash] opts the optional parameters
|
|
1121
|
+
# @return [TenantResourcePolicy]
|
|
1122
|
+
def tenant_resource_policy_get(tenant, opts = {})
|
|
1123
|
+
data, _status_code, _headers = tenant_resource_policy_get_with_http_info(tenant, opts)
|
|
1124
|
+
data
|
|
1125
|
+
end
|
|
1126
|
+
|
|
1127
|
+
# Create tenant alert email group
|
|
1128
|
+
# Gets the resource policy for a tenant
|
|
1129
|
+
# @param tenant [String] The tenant id
|
|
1130
|
+
# @param [Hash] opts the optional parameters
|
|
1131
|
+
# @return [Array<(TenantResourcePolicy, Integer, Hash)>] TenantResourcePolicy data, response status code and response headers
|
|
1132
|
+
def tenant_resource_policy_get_with_http_info(tenant, opts = {})
|
|
1133
|
+
if @api_client.config.debugging
|
|
1134
|
+
@api_client.config.logger.debug 'Calling API: TenantApi.tenant_resource_policy_get ...'
|
|
1135
|
+
end
|
|
1136
|
+
# verify the required parameter 'tenant' is set
|
|
1137
|
+
if @api_client.config.client_side_validation && tenant.nil?
|
|
1138
|
+
fail ArgumentError, "Missing the required parameter 'tenant' when calling TenantApi.tenant_resource_policy_get"
|
|
1139
|
+
end
|
|
1140
|
+
if @api_client.config.client_side_validation && tenant.to_s.length > 36
|
|
1141
|
+
fail ArgumentError, 'invalid value for "tenant" when calling TenantApi.tenant_resource_policy_get, the character length must be smaller than or equal to 36.'
|
|
1142
|
+
end
|
|
1143
|
+
|
|
1144
|
+
if @api_client.config.client_side_validation && tenant.to_s.length < 36
|
|
1145
|
+
fail ArgumentError, 'invalid value for "tenant" when calling TenantApi.tenant_resource_policy_get, the character length must be greater than or equal to 36.'
|
|
1146
|
+
end
|
|
1147
|
+
|
|
1148
|
+
# resource path
|
|
1149
|
+
local_var_path = '/api/v1/tenants/{tenant}/resource-policy'.sub('{' + 'tenant' + '}', CGI.escape(tenant.to_s))
|
|
1150
|
+
|
|
1151
|
+
# query parameters
|
|
1152
|
+
query_params = opts[:query_params] || {}
|
|
1153
|
+
|
|
1154
|
+
# header parameters
|
|
1155
|
+
header_params = opts[:header_params] || {}
|
|
1156
|
+
# HTTP header 'Accept' (if needed)
|
|
1157
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1158
|
+
|
|
1159
|
+
# form parameters
|
|
1160
|
+
form_params = opts[:form_params] || {}
|
|
1161
|
+
|
|
1162
|
+
# http body (model)
|
|
1163
|
+
post_body = opts[:debug_body]
|
|
1164
|
+
|
|
1165
|
+
# return_type
|
|
1166
|
+
return_type = opts[:debug_return_type] || 'TenantResourcePolicy'
|
|
1167
|
+
|
|
1168
|
+
# auth_names
|
|
1169
|
+
auth_names = opts[:debug_auth_names] || ['cookieAuth', 'bearerAuth']
|
|
1170
|
+
|
|
1171
|
+
new_options = opts.merge(
|
|
1172
|
+
:operation => :"TenantApi.tenant_resource_policy_get",
|
|
1173
|
+
:header_params => header_params,
|
|
1174
|
+
:query_params => query_params,
|
|
1175
|
+
:form_params => form_params,
|
|
1176
|
+
:body => post_body,
|
|
1177
|
+
:auth_names => auth_names,
|
|
1178
|
+
:return_type => return_type
|
|
1179
|
+
)
|
|
1180
|
+
|
|
1181
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1182
|
+
if @api_client.config.debugging
|
|
1183
|
+
@api_client.config.logger.debug "API called: TenantApi#tenant_resource_policy_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1184
|
+
end
|
|
1185
|
+
return data, status_code, headers
|
|
1186
|
+
end
|
|
1187
|
+
|
|
1188
|
+
# Update tenant
|
|
1189
|
+
# Update an existing tenant
|
|
1190
|
+
# @param tenant [String] The tenant id
|
|
1191
|
+
# @param update_tenant_request [UpdateTenantRequest] The tenant properties to update
|
|
1192
|
+
# @param [Hash] opts the optional parameters
|
|
1193
|
+
# @return [Tenant]
|
|
1194
|
+
def tenant_update(tenant, update_tenant_request, opts = {})
|
|
1195
|
+
data, _status_code, _headers = tenant_update_with_http_info(tenant, update_tenant_request, opts)
|
|
1196
|
+
data
|
|
1197
|
+
end
|
|
1198
|
+
|
|
1199
|
+
# Update tenant
|
|
1200
|
+
# Update an existing tenant
|
|
1201
|
+
# @param tenant [String] The tenant id
|
|
1202
|
+
# @param update_tenant_request [UpdateTenantRequest] The tenant properties to update
|
|
1203
|
+
# @param [Hash] opts the optional parameters
|
|
1204
|
+
# @return [Array<(Tenant, Integer, Hash)>] Tenant data, response status code and response headers
|
|
1205
|
+
def tenant_update_with_http_info(tenant, update_tenant_request, opts = {})
|
|
1206
|
+
if @api_client.config.debugging
|
|
1207
|
+
@api_client.config.logger.debug 'Calling API: TenantApi.tenant_update ...'
|
|
1208
|
+
end
|
|
1209
|
+
# verify the required parameter 'tenant' is set
|
|
1210
|
+
if @api_client.config.client_side_validation && tenant.nil?
|
|
1211
|
+
fail ArgumentError, "Missing the required parameter 'tenant' when calling TenantApi.tenant_update"
|
|
1212
|
+
end
|
|
1213
|
+
if @api_client.config.client_side_validation && tenant.to_s.length > 36
|
|
1214
|
+
fail ArgumentError, 'invalid value for "tenant" when calling TenantApi.tenant_update, the character length must be smaller than or equal to 36.'
|
|
1215
|
+
end
|
|
1216
|
+
|
|
1217
|
+
if @api_client.config.client_side_validation && tenant.to_s.length < 36
|
|
1218
|
+
fail ArgumentError, 'invalid value for "tenant" when calling TenantApi.tenant_update, the character length must be greater than or equal to 36.'
|
|
1219
|
+
end
|
|
1220
|
+
|
|
1221
|
+
# verify the required parameter 'update_tenant_request' is set
|
|
1222
|
+
if @api_client.config.client_side_validation && update_tenant_request.nil?
|
|
1223
|
+
fail ArgumentError, "Missing the required parameter 'update_tenant_request' when calling TenantApi.tenant_update"
|
|
1224
|
+
end
|
|
1225
|
+
# resource path
|
|
1226
|
+
local_var_path = '/api/v1/tenants/{tenant}'.sub('{' + 'tenant' + '}', CGI.escape(tenant.to_s))
|
|
1227
|
+
|
|
1228
|
+
# query parameters
|
|
1229
|
+
query_params = opts[:query_params] || {}
|
|
1230
|
+
|
|
1231
|
+
# header parameters
|
|
1232
|
+
header_params = opts[:header_params] || {}
|
|
1233
|
+
# HTTP header 'Accept' (if needed)
|
|
1234
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1235
|
+
# HTTP header 'Content-Type'
|
|
1236
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1237
|
+
if !content_type.nil?
|
|
1238
|
+
header_params['Content-Type'] = content_type
|
|
1239
|
+
end
|
|
1240
|
+
|
|
1241
|
+
# form parameters
|
|
1242
|
+
form_params = opts[:form_params] || {}
|
|
1243
|
+
|
|
1244
|
+
# http body (model)
|
|
1245
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_tenant_request)
|
|
1246
|
+
|
|
1247
|
+
# return_type
|
|
1248
|
+
return_type = opts[:debug_return_type] || 'Tenant'
|
|
1249
|
+
|
|
1250
|
+
# auth_names
|
|
1251
|
+
auth_names = opts[:debug_auth_names] || ['cookieAuth', 'bearerAuth']
|
|
1252
|
+
|
|
1253
|
+
new_options = opts.merge(
|
|
1254
|
+
:operation => :"TenantApi.tenant_update",
|
|
1255
|
+
:header_params => header_params,
|
|
1256
|
+
:query_params => query_params,
|
|
1257
|
+
:form_params => form_params,
|
|
1258
|
+
:body => post_body,
|
|
1259
|
+
:auth_names => auth_names,
|
|
1260
|
+
:return_type => return_type
|
|
1261
|
+
)
|
|
1262
|
+
|
|
1263
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
1264
|
+
if @api_client.config.debugging
|
|
1265
|
+
@api_client.config.logger.debug "API called: TenantApi#tenant_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1266
|
+
end
|
|
1267
|
+
return data, status_code, headers
|
|
1268
|
+
end
|
|
1269
|
+
|
|
1270
|
+
# List tenant invites
|
|
1271
|
+
# Lists all tenant invites for the current user
|
|
1272
|
+
# @param [Hash] opts the optional parameters
|
|
1273
|
+
# @return [TenantInviteList]
|
|
1274
|
+
def user_list_tenant_invites(opts = {})
|
|
1275
|
+
data, _status_code, _headers = user_list_tenant_invites_with_http_info(opts)
|
|
1276
|
+
data
|
|
1277
|
+
end
|
|
1278
|
+
|
|
1279
|
+
# List tenant invites
|
|
1280
|
+
# Lists all tenant invites for the current user
|
|
1281
|
+
# @param [Hash] opts the optional parameters
|
|
1282
|
+
# @return [Array<(TenantInviteList, Integer, Hash)>] TenantInviteList data, response status code and response headers
|
|
1283
|
+
def user_list_tenant_invites_with_http_info(opts = {})
|
|
1284
|
+
if @api_client.config.debugging
|
|
1285
|
+
@api_client.config.logger.debug 'Calling API: TenantApi.user_list_tenant_invites ...'
|
|
1286
|
+
end
|
|
1287
|
+
# resource path
|
|
1288
|
+
local_var_path = '/api/v1/users/invites'
|
|
1289
|
+
|
|
1290
|
+
# query parameters
|
|
1291
|
+
query_params = opts[:query_params] || {}
|
|
1292
|
+
|
|
1293
|
+
# header parameters
|
|
1294
|
+
header_params = opts[:header_params] || {}
|
|
1295
|
+
# HTTP header 'Accept' (if needed)
|
|
1296
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1297
|
+
|
|
1298
|
+
# form parameters
|
|
1299
|
+
form_params = opts[:form_params] || {}
|
|
1300
|
+
|
|
1301
|
+
# http body (model)
|
|
1302
|
+
post_body = opts[:debug_body]
|
|
1303
|
+
|
|
1304
|
+
# return_type
|
|
1305
|
+
return_type = opts[:debug_return_type] || 'TenantInviteList'
|
|
1306
|
+
|
|
1307
|
+
# auth_names
|
|
1308
|
+
auth_names = opts[:debug_auth_names] || ['cookieAuth']
|
|
1309
|
+
|
|
1310
|
+
new_options = opts.merge(
|
|
1311
|
+
:operation => :"TenantApi.user_list_tenant_invites",
|
|
1312
|
+
:header_params => header_params,
|
|
1313
|
+
:query_params => query_params,
|
|
1314
|
+
:form_params => form_params,
|
|
1315
|
+
:body => post_body,
|
|
1316
|
+
:auth_names => auth_names,
|
|
1317
|
+
:return_type => return_type
|
|
1318
|
+
)
|
|
1319
|
+
|
|
1320
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1321
|
+
if @api_client.config.debugging
|
|
1322
|
+
@api_client.config.logger.debug "API called: TenantApi#user_list_tenant_invites\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1323
|
+
end
|
|
1324
|
+
return data, status_code, headers
|
|
1325
|
+
end
|
|
1326
|
+
end
|
|
1327
|
+
end
|