anyscale 0.24.87__py3-none-any.whl → 0.24.91__py3-none-any.whl
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.
- anyscale/__init__.py +56 -0
- anyscale/_private/anyscale_client/anyscale_client.py +158 -28
- anyscale/_private/anyscale_client/common.py +82 -0
- anyscale/_private/anyscale_client/fake_anyscale_client.py +193 -1
- anyscale/_private/docgen/README.md +1 -1
- anyscale/_private/docgen/__main__.py +74 -19
- anyscale/_private/docgen/api.md +0 -20
- anyscale/_private/docgen/generator.py +4 -2
- anyscale/_private/docgen/models.md +1 -46
- anyscale/_private/workload/workload_config.py +1 -1
- anyscale/aggregated_instance_usage/__init__.py +1 -1
- anyscale/aggregated_instance_usage/commands.py +2 -4
- anyscale/aggregated_instance_usage/models.py +8 -8
- anyscale/client/README.md +19 -23
- anyscale/client/openapi_client/__init__.py +13 -15
- anyscale/client/openapi_client/api/default_api.py +825 -962
- anyscale/client/openapi_client/models/__init__.py +13 -15
- anyscale/client/openapi_client/models/admin_create_user.py +255 -0
- anyscale/client/openapi_client/models/admin_created_user.py +281 -0
- anyscale/client/openapi_client/models/{sessionevent_list_response.py → admincreateduser_list_response.py} +15 -15
- anyscale/client/openapi_client/models/aggregated_usage_query.py +1 -29
- anyscale/client/openapi_client/models/{session_event_types.py → cloud_deployment_config.py} +35 -24
- anyscale/client/openapi_client/models/{platformfinetuningjob_response.py → clouddeploymentconfig_response.py} +11 -11
- anyscale/client/openapi_client/models/{company_size.py → cluster_size.py} +10 -10
- anyscale/client/openapi_client/models/cluster_status_details.py +2 -1
- anyscale/client/openapi_client/models/create_experimental_workspace.py +29 -1
- anyscale/client/openapi_client/models/{resubmit_ft_job_request.py → describe_machine_pool_request.py} +21 -20
- anyscale/client/openapi_client/models/describe_machine_pool_response.py +123 -0
- anyscale/client/openapi_client/models/{fine_tuning_job_status.py → describemachinepoolresponse_response.py} +34 -16
- anyscale/client/openapi_client/models/machine_allocation_state.py +3 -1
- anyscale/client/openapi_client/models/machine_state_info.py +326 -0
- anyscale/client/openapi_client/models/organization_marketing_questions.py +80 -54
- anyscale/client/openapi_client/models/request_state_info.py +210 -0
- anyscale/client/openapi_client/models/{platformfinetuningjob_list_response.py → scheduler_info.py} +43 -38
- anyscale/client/openapi_client/models/usage_by_cluster.py +28 -1
- anyscale/client/openapi_client/models/usage_by_user.py +30 -3
- anyscale/client/openapi_client/models/workload_info.py +210 -0
- anyscale/cloud/__init__.py +83 -0
- anyscale/cloud/_private/cloud_sdk.py +25 -0
- anyscale/cloud/commands.py +45 -0
- anyscale/cloud/models.py +91 -0
- anyscale/cluster_compute.py +1 -1
- anyscale/commands/aggregated_instance_usage_commands.py +4 -4
- anyscale/commands/cloud_commands.py +38 -2
- anyscale/commands/command_examples.py +67 -0
- anyscale/commands/job_commands.py +15 -3
- anyscale/commands/machine_pool_commands.py +113 -1
- anyscale/commands/organization_invitation_commands.py +98 -0
- anyscale/commands/project_commands.py +52 -2
- anyscale/commands/resource_quota_commands.py +98 -11
- anyscale/commands/service_commands.py +1 -1
- anyscale/commands/session_commands_hidden.py +5 -1
- anyscale/commands/user_commands.py +49 -0
- anyscale/commands/util.py +1 -1
- anyscale/commands/workspace_commands.py +1 -1
- anyscale/connect.py +1 -1
- anyscale/connect_utils/project.py +7 -4
- anyscale/controllers/cloud_controller.py +6 -6
- anyscale/controllers/cloud_functional_verification_controller.py +1 -1
- anyscale/controllers/cluster_controller.py +2 -2
- anyscale/controllers/compute_config_controller.py +1 -1
- anyscale/controllers/experimental_integrations_controller.py +1 -1
- anyscale/controllers/job_controller.py +8 -3
- anyscale/controllers/list_controller.py +2 -2
- anyscale/controllers/machine_pool_controller.py +12 -1
- anyscale/controllers/project_controller.py +4 -3
- anyscale/controllers/schedule_controller.py +1 -1
- anyscale/controllers/service_controller.py +1 -1
- anyscale/controllers/workspace_controller.py +1 -1
- anyscale/models/job_model.py +1 -1
- anyscale/organization_invitation/__init__.py +61 -0
- anyscale/organization_invitation/_private/organization_invitation_sdk.py +24 -0
- anyscale/organization_invitation/commands.py +84 -0
- anyscale/organization_invitation/models.py +45 -0
- anyscale/project/__init__.py +35 -0
- anyscale/project/_private/project_sdk.py +27 -0
- anyscale/project/commands.py +56 -0
- anyscale/project/models.py +91 -0
- anyscale/{project.py → project_utils.py} +3 -4
- anyscale/resource_quota/__init__.py +99 -0
- anyscale/resource_quota/_private/resource_quota_sdk.py +111 -0
- anyscale/resource_quota/commands.py +150 -0
- anyscale/resource_quota/models.py +303 -0
- anyscale/scripts.py +6 -0
- anyscale/sdk/anyscale_client/__init__.py +0 -5
- anyscale/sdk/anyscale_client/api/default_api.py +0 -150
- anyscale/sdk/anyscale_client/models/__init__.py +0 -5
- anyscale/sdk/anyscale_client/models/cluster_status_details.py +2 -1
- anyscale/sdk/anyscale_client/sdk.py +1 -1
- anyscale/user/__init__.py +35 -0
- anyscale/user/_private/user_sdk.py +32 -0
- anyscale/user/commands.py +42 -0
- anyscale/user/models.py +201 -0
- anyscale/util.py +15 -0
- anyscale/utils/cloud_utils.py +1 -1
- anyscale/version.py +1 -1
- anyscale/workspace_utils.py +1 -1
- {anyscale-0.24.87.dist-info → anyscale-0.24.91.dist-info}/METADATA +1 -5
- {anyscale-0.24.87.dist-info → anyscale-0.24.91.dist-info}/RECORD +105 -92
- anyscale/client/openapi_client/models/create_fine_tuning_hyperparameters.py +0 -156
- anyscale/client/openapi_client/models/create_fine_tuning_job_product_request.py +0 -353
- anyscale/client/openapi_client/models/finish_ft_job_request.py +0 -204
- anyscale/client/openapi_client/models/log_level_types.py +0 -100
- anyscale/client/openapi_client/models/paging_context.py +0 -172
- anyscale/client/openapi_client/models/platform_fine_tuning_job.py +0 -577
- anyscale/client/openapi_client/models/session_event.py +0 -267
- anyscale/client/openapi_client/models/session_event_cause.py +0 -150
- anyscale/controllers/resource_quota_controller.py +0 -183
- anyscale/sdk/anyscale_client/models/log_level_types.py +0 -100
- anyscale/sdk/anyscale_client/models/session_event.py +0 -267
- anyscale/sdk/anyscale_client/models/session_event_cause.py +0 -150
- anyscale/sdk/anyscale_client/models/session_event_types.py +0 -111
- anyscale/sdk/anyscale_client/models/sessionevent_list_response.py +0 -147
- anyscale/utils/imports/azure.py +0 -14
- /anyscale/{cloud.py → cloud_utils.py} +0 -0
- {anyscale-0.24.87.dist-info → anyscale-0.24.91.dist-info}/LICENSE +0 -0
- {anyscale-0.24.87.dist-info → anyscale-0.24.91.dist-info}/NOTICE +0 -0
- {anyscale-0.24.87.dist-info → anyscale-0.24.91.dist-info}/WHEEL +0 -0
- {anyscale-0.24.87.dist-info → anyscale-0.24.91.dist-info}/entry_points.txt +0 -0
- {anyscale-0.24.87.dist-info → anyscale-0.24.91.dist-info}/top_level.txt +0 -0
|
@@ -17,6 +17,9 @@ from __future__ import absolute_import
|
|
|
17
17
|
from openapi_client.models.aws_credentials import AWSCredentials
|
|
18
18
|
from openapi_client.models.aws_memory_db_cluster_config import AWSMemoryDBClusterConfig
|
|
19
19
|
from openapi_client.models.access_config import AccessConfig
|
|
20
|
+
from openapi_client.models.admin_create_user import AdminCreateUser
|
|
21
|
+
from openapi_client.models.admin_created_user import AdminCreatedUser
|
|
22
|
+
from openapi_client.models.admincreateduser_list_response import AdmincreateduserListResponse
|
|
20
23
|
from openapi_client.models.aggregated_instance_usage_csv import AggregatedInstanceUsageCSV
|
|
21
24
|
from openapi_client.models.aggregated_usage import AggregatedUsage
|
|
22
25
|
from openapi_client.models.aggregated_usage_query import AggregatedUsageQuery
|
|
@@ -106,6 +109,7 @@ from openapi_client.models.cloud_data_bucket_presigned_url_request import CloudD
|
|
|
106
109
|
from openapi_client.models.cloud_data_bucket_presigned_url_response import CloudDataBucketPresignedUrlResponse
|
|
107
110
|
from openapi_client.models.cloud_data_bucket_presigned_url_scheme import CloudDataBucketPresignedUrlScheme
|
|
108
111
|
from openapi_client.models.cloud_data_bucket_request_scope import CloudDataBucketRequestScope
|
|
112
|
+
from openapi_client.models.cloud_deployment_config import CloudDeploymentConfig
|
|
109
113
|
from openapi_client.models.cloud_hosting_type import CloudHostingType
|
|
110
114
|
from openapi_client.models.cloud_list_response import CloudListResponse
|
|
111
115
|
from openapi_client.models.cloud_name_options import CloudNameOptions
|
|
@@ -130,6 +134,7 @@ from openapi_client.models.cloud_with_cloud_resource_gcp import CloudWithCloudRe
|
|
|
130
134
|
from openapi_client.models.cloudcollaborator_list_response import CloudcollaboratorListResponse
|
|
131
135
|
from openapi_client.models.clouddatabucketpresigneduploadinfo_response import ClouddatabucketpresigneduploadinfoResponse
|
|
132
136
|
from openapi_client.models.clouddatabucketpresignedurlresponse_response import ClouddatabucketpresignedurlresponseResponse
|
|
137
|
+
from openapi_client.models.clouddeploymentconfig_response import ClouddeploymentconfigResponse
|
|
133
138
|
from openapi_client.models.cloudoverviewdashboard_response import CloudoverviewdashboardResponse
|
|
134
139
|
from openapi_client.models.cloudregionandzones_response import CloudregionandzonesResponse
|
|
135
140
|
from openapi_client.models.cloudresource_response import CloudresourceResponse
|
|
@@ -144,6 +149,7 @@ from openapi_client.models.cluster_event import ClusterEvent
|
|
|
144
149
|
from openapi_client.models.cluster_events_output import ClusterEventsOutput
|
|
145
150
|
from openapi_client.models.cluster_features import ClusterFeatures
|
|
146
151
|
from openapi_client.models.cluster_management_stack_versions import ClusterManagementStackVersions
|
|
152
|
+
from openapi_client.models.cluster_size import ClusterSize
|
|
147
153
|
from openapi_client.models.cluster_startup import ClusterStartup
|
|
148
154
|
from openapi_client.models.cluster_status import ClusterStatus
|
|
149
155
|
from openapi_client.models.cluster_status_details import ClusterStatusDetails
|
|
@@ -152,7 +158,6 @@ from openapi_client.models.clusterconfig_response import ClusterconfigResponse
|
|
|
152
158
|
from openapi_client.models.clusterconfigwithsessionidletimeout_response import ClusterconfigwithsessionidletimeoutResponse
|
|
153
159
|
from openapi_client.models.clustereventsoutput_response import ClustereventsoutputResponse
|
|
154
160
|
from openapi_client.models.clusterfeatures_response import ClusterfeaturesResponse
|
|
155
|
-
from openapi_client.models.company_size import CompanySize
|
|
156
161
|
from openapi_client.models.compute_node_type import ComputeNodeType
|
|
157
162
|
from openapi_client.models.compute_stack import ComputeStack
|
|
158
163
|
from openapi_client.models.compute_template import ComputeTemplate
|
|
@@ -181,8 +186,6 @@ from openapi_client.models.create_compute_template_config import CreateComputeTe
|
|
|
181
186
|
from openapi_client.models.create_dataset import CreateDataset
|
|
182
187
|
from openapi_client.models.create_experimental_workspace import CreateExperimentalWorkspace
|
|
183
188
|
from openapi_client.models.create_experimental_workspace_from_job import CreateExperimentalWorkspaceFromJob
|
|
184
|
-
from openapi_client.models.create_fine_tuning_hyperparameters import CreateFineTuningHyperparameters
|
|
185
|
-
from openapi_client.models.create_fine_tuning_job_product_request import CreateFineTuningJobProductRequest
|
|
186
189
|
from openapi_client.models.create_instance_usage_budget import CreateInstanceUsageBudget
|
|
187
190
|
from openapi_client.models.create_internal_production_job import CreateInternalProductionJob
|
|
188
191
|
from openapi_client.models.create_job_queue_config import CreateJobQueueConfig
|
|
@@ -279,6 +282,9 @@ from openapi_client.models.delete_machine_request import DeleteMachineRequest
|
|
|
279
282
|
from openapi_client.models.deleted_platform_fine_tuned_model import DeletedPlatformFineTunedModel
|
|
280
283
|
from openapi_client.models.deletedplatformfinetunedmodel_response import DeletedplatformfinetunedmodelResponse
|
|
281
284
|
from openapi_client.models.deletemachinepoolresponse_response import DeletemachinepoolresponseResponse
|
|
285
|
+
from openapi_client.models.describe_machine_pool_request import DescribeMachinePoolRequest
|
|
286
|
+
from openapi_client.models.describe_machine_pool_response import DescribeMachinePoolResponse
|
|
287
|
+
from openapi_client.models.describemachinepoolresponse_response import DescribemachinepoolresponseResponse
|
|
282
288
|
from openapi_client.models.detach_machine_pool_from_cloud_request import DetachMachinePoolFromCloudRequest
|
|
283
289
|
from openapi_client.models.detachmachinepoolfromcloudresponse_response import DetachmachinepoolfromcloudresponseResponse
|
|
284
290
|
from openapi_client.models.dismissal_type import DismissalType
|
|
@@ -303,10 +309,8 @@ from openapi_client.models.feature_flag_response import FeatureFlagResponse
|
|
|
303
309
|
from openapi_client.models.featureflagresponse_response import FeatureflagresponseResponse
|
|
304
310
|
from openapi_client.models.fine_tune_type import FineTuneType
|
|
305
311
|
from openapi_client.models.fine_tuned_model import FineTunedModel
|
|
306
|
-
from openapi_client.models.fine_tuning_job_status import FineTuningJobStatus
|
|
307
312
|
from openapi_client.models.finetunedmodel_list_response import FinetunedmodelListResponse
|
|
308
313
|
from openapi_client.models.finetunedmodel_response import FinetunedmodelResponse
|
|
309
|
-
from openapi_client.models.finish_ft_job_request import FinishFTJobRequest
|
|
310
314
|
from openapi_client.models.finish_ft_job_request_v2 import FinishFTJobRequestV2
|
|
311
315
|
from openapi_client.models.gcp_file_store_config import GCPFileStoreConfig
|
|
312
316
|
from openapi_client.models.gcp_memorystore_instance_config import GCPMemorystoreInstanceConfig
|
|
@@ -376,7 +380,6 @@ from openapi_client.models.log_file_chunk import LogFileChunk
|
|
|
376
380
|
from openapi_client.models.log_filter import LogFilter
|
|
377
381
|
from openapi_client.models.log_item import LogItem
|
|
378
382
|
from openapi_client.models.log_item_batch import LogItemBatch
|
|
379
|
-
from openapi_client.models.log_level_types import LogLevelTypes
|
|
380
383
|
from openapi_client.models.log_stream import LogStream
|
|
381
384
|
from openapi_client.models.logdetails_response import LogdetailsResponse
|
|
382
385
|
from openapi_client.models.logdownloadresult_response import LogdownloadresultResponse
|
|
@@ -391,6 +394,7 @@ from openapi_client.models.machine_allocation_state import MachineAllocationStat
|
|
|
391
394
|
from openapi_client.models.machine_connection_state import MachineConnectionState
|
|
392
395
|
from openapi_client.models.machine_info import MachineInfo
|
|
393
396
|
from openapi_client.models.machine_pool import MachinePool
|
|
397
|
+
from openapi_client.models.machine_state_info import MachineStateInfo
|
|
394
398
|
from openapi_client.models.metronome_customer_info_model import MetronomeCustomerInfoModel
|
|
395
399
|
from openapi_client.models.metronome_dashboard_type import MetronomeDashboardType
|
|
396
400
|
from openapi_client.models.metronomecustomerinfomodel_list_response import MetronomecustomerinfomodelListResponse
|
|
@@ -450,12 +454,8 @@ from openapi_client.models.organizationprojectcollaborator_list_response import
|
|
|
450
454
|
from openapi_client.models.organizationpublicidentifier_response import OrganizationpublicidentifierResponse
|
|
451
455
|
from openapi_client.models.organizationusagealert_list_response import OrganizationusagealertListResponse
|
|
452
456
|
from openapi_client.models.page_query import PageQuery
|
|
453
|
-
from openapi_client.models.paging_context import PagingContext
|
|
454
457
|
from openapi_client.models.pause_schedule import PauseSchedule
|
|
455
458
|
from openapi_client.models.permission_level import PermissionLevel
|
|
456
|
-
from openapi_client.models.platform_fine_tuning_job import PlatformFineTuningJob
|
|
457
|
-
from openapi_client.models.platformfinetuningjob_list_response import PlatformfinetuningjobListResponse
|
|
458
|
-
from openapi_client.models.platformfinetuningjob_response import PlatformfinetuningjobResponse
|
|
459
459
|
from openapi_client.models.product_autoscaler_flag import ProductAutoscalerFlag
|
|
460
460
|
from openapi_client.models.product_type import ProductType
|
|
461
461
|
from openapi_client.models.productautoscalerflag_response import ProductautoscalerflagResponse
|
|
@@ -497,6 +497,7 @@ from openapi_client.models.replica_state import ReplicaState
|
|
|
497
497
|
from openapi_client.models.request_email_magic_link_response import RequestEmailMagicLinkResponse
|
|
498
498
|
from openapi_client.models.request_otp_return_api_model import RequestOTPReturnApiModel
|
|
499
499
|
from openapi_client.models.request_password_reset_params import RequestPasswordResetParams
|
|
500
|
+
from openapi_client.models.request_state_info import RequestStateInfo
|
|
500
501
|
from openapi_client.models.requestemailmagiclinkresponse_response import RequestemailmagiclinkresponseResponse
|
|
501
502
|
from openapi_client.models.requestotpreturnapimodel_response import RequestotpreturnapimodelResponse
|
|
502
503
|
from openapi_client.models.reset_password_params import ResetPasswordParams
|
|
@@ -505,13 +506,13 @@ from openapi_client.models.resource_quota_status import ResourceQuotaStatus
|
|
|
505
506
|
from openapi_client.models.resourcequota_list_response import ResourcequotaListResponse
|
|
506
507
|
from openapi_client.models.resourcequota_response import ResourcequotaResponse
|
|
507
508
|
from openapi_client.models.resources import Resources
|
|
508
|
-
from openapi_client.models.resubmit_ft_job_request import ResubmitFTJobRequest
|
|
509
509
|
from openapi_client.models.rollback_service_model import RollbackServiceModel
|
|
510
510
|
from openapi_client.models.rollout_strategy import RolloutStrategy
|
|
511
511
|
from openapi_client.models.s3_download_location import S3DownloadLocation
|
|
512
512
|
from openapi_client.models.sso_login_info import SSOLoginInfo
|
|
513
513
|
from openapi_client.models.supportedbaseimagesenum import SUPPORTEDBASEIMAGESENUM
|
|
514
514
|
from openapi_client.models.schedule_config import ScheduleConfig
|
|
515
|
+
from openapi_client.models.scheduler_info import SchedulerInfo
|
|
515
516
|
from openapi_client.models.serve_deployment_grafana_dashboard_status import ServeDeploymentGrafanaDashboardStatus
|
|
516
517
|
from openapi_client.models.serve_deployment_logs import ServeDeploymentLogs
|
|
517
518
|
from openapi_client.models.serve_deployment_state import ServeDeploymentState
|
|
@@ -544,9 +545,6 @@ from openapi_client.models.session_create_message import SessionCreateMessage
|
|
|
544
545
|
from openapi_client.models.session_delete_message import SessionDeleteMessage
|
|
545
546
|
from openapi_client.models.session_describe import SessionDescribe
|
|
546
547
|
from openapi_client.models.session_details import SessionDetails
|
|
547
|
-
from openapi_client.models.session_event import SessionEvent
|
|
548
|
-
from openapi_client.models.session_event_cause import SessionEventCause
|
|
549
|
-
from openapi_client.models.session_event_types import SessionEventTypes
|
|
550
548
|
from openapi_client.models.session_execute_message import SessionExecuteMessage
|
|
551
549
|
from openapi_client.models.session_finish_command_message import SessionFinishCommandMessage
|
|
552
550
|
from openapi_client.models.session_history_item import SessionHistoryItem
|
|
@@ -564,7 +562,6 @@ from openapi_client.models.sessioncommand_list_response import SessioncommandLis
|
|
|
564
562
|
from openapi_client.models.sessioncommandid_response import SessioncommandidResponse
|
|
565
563
|
from openapi_client.models.sessiondescribe_response import SessiondescribeResponse
|
|
566
564
|
from openapi_client.models.sessiondetails_response import SessiondetailsResponse
|
|
567
|
-
from openapi_client.models.sessionevent_list_response import SessioneventListResponse
|
|
568
565
|
from openapi_client.models.sessionhistoryitem_list_response import SessionhistoryitemListResponse
|
|
569
566
|
from openapi_client.models.sessions_sort_field import SessionsSortField
|
|
570
567
|
from openapi_client.models.sessionsshkey_response import SessionsshkeyResponse
|
|
@@ -642,6 +639,7 @@ from openapi_client.models.web_terminal import WebTerminal
|
|
|
642
639
|
from openapi_client.models.webterminal_list_response import WebterminalListResponse
|
|
643
640
|
from openapi_client.models.webterminal_response import WebterminalResponse
|
|
644
641
|
from openapi_client.models.worker_node_type import WorkerNodeType
|
|
642
|
+
from openapi_client.models.workload_info import WorkloadInfo
|
|
645
643
|
from openapi_client.models.workload_type import WorkloadType
|
|
646
644
|
from openapi_client.models.workspace_dataplane_artifact import WorkspaceDataplaneArtifact
|
|
647
645
|
from openapi_client.models.workspace_dataplane_artifacts import WorkspaceDataplaneArtifacts
|
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Managed Ray API
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 0.1.0
|
|
9
|
+
Generated by: https://openapi-generator.tech
|
|
10
|
+
"""
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
import pprint
|
|
14
|
+
import re # noqa: F401
|
|
15
|
+
|
|
16
|
+
import six
|
|
17
|
+
|
|
18
|
+
from openapi_client.configuration import Configuration
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class AdminCreateUser(object):
|
|
22
|
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
23
|
+
Ref: https://openapi-generator.tech
|
|
24
|
+
|
|
25
|
+
Do not edit the class manually.
|
|
26
|
+
"""
|
|
27
|
+
|
|
28
|
+
"""
|
|
29
|
+
Attributes:
|
|
30
|
+
openapi_types (dict): The key is attribute name
|
|
31
|
+
and the value is attribute type.
|
|
32
|
+
attribute_map (dict): The key is attribute name
|
|
33
|
+
and the value is json key in definition.
|
|
34
|
+
"""
|
|
35
|
+
openapi_types = {
|
|
36
|
+
'name': 'str',
|
|
37
|
+
'email': 'str',
|
|
38
|
+
'password': 'str',
|
|
39
|
+
'is_sso_user': 'bool',
|
|
40
|
+
'lastname': 'str',
|
|
41
|
+
'title': 'str'
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
attribute_map = {
|
|
45
|
+
'name': 'name',
|
|
46
|
+
'email': 'email',
|
|
47
|
+
'password': 'password',
|
|
48
|
+
'is_sso_user': 'is_sso_user',
|
|
49
|
+
'lastname': 'lastname',
|
|
50
|
+
'title': 'title'
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
def __init__(self, name=None, email=None, password=None, is_sso_user=None, lastname=None, title=None, local_vars_configuration=None): # noqa: E501
|
|
54
|
+
"""AdminCreateUser - a model defined in OpenAPI""" # noqa: E501
|
|
55
|
+
if local_vars_configuration is None:
|
|
56
|
+
local_vars_configuration = Configuration()
|
|
57
|
+
self.local_vars_configuration = local_vars_configuration
|
|
58
|
+
|
|
59
|
+
self._name = None
|
|
60
|
+
self._email = None
|
|
61
|
+
self._password = None
|
|
62
|
+
self._is_sso_user = None
|
|
63
|
+
self._lastname = None
|
|
64
|
+
self._title = None
|
|
65
|
+
self.discriminator = None
|
|
66
|
+
|
|
67
|
+
self.name = name
|
|
68
|
+
self.email = email
|
|
69
|
+
if password is not None:
|
|
70
|
+
self.password = password
|
|
71
|
+
self.is_sso_user = is_sso_user
|
|
72
|
+
if lastname is not None:
|
|
73
|
+
self.lastname = lastname
|
|
74
|
+
if title is not None:
|
|
75
|
+
self.title = title
|
|
76
|
+
|
|
77
|
+
@property
|
|
78
|
+
def name(self):
|
|
79
|
+
"""Gets the name of this AdminCreateUser. # noqa: E501
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
:return: The name of this AdminCreateUser. # noqa: E501
|
|
83
|
+
:rtype: str
|
|
84
|
+
"""
|
|
85
|
+
return self._name
|
|
86
|
+
|
|
87
|
+
@name.setter
|
|
88
|
+
def name(self, name):
|
|
89
|
+
"""Sets the name of this AdminCreateUser.
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
:param name: The name of this AdminCreateUser. # noqa: E501
|
|
93
|
+
:type: str
|
|
94
|
+
"""
|
|
95
|
+
if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
|
|
96
|
+
raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
|
|
97
|
+
|
|
98
|
+
self._name = name
|
|
99
|
+
|
|
100
|
+
@property
|
|
101
|
+
def email(self):
|
|
102
|
+
"""Gets the email of this AdminCreateUser. # noqa: E501
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
:return: The email of this AdminCreateUser. # noqa: E501
|
|
106
|
+
:rtype: str
|
|
107
|
+
"""
|
|
108
|
+
return self._email
|
|
109
|
+
|
|
110
|
+
@email.setter
|
|
111
|
+
def email(self, email):
|
|
112
|
+
"""Sets the email of this AdminCreateUser.
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
:param email: The email of this AdminCreateUser. # noqa: E501
|
|
116
|
+
:type: str
|
|
117
|
+
"""
|
|
118
|
+
if self.local_vars_configuration.client_side_validation and email is None: # noqa: E501
|
|
119
|
+
raise ValueError("Invalid value for `email`, must not be `None`") # noqa: E501
|
|
120
|
+
|
|
121
|
+
self._email = email
|
|
122
|
+
|
|
123
|
+
@property
|
|
124
|
+
def password(self):
|
|
125
|
+
"""Gets the password of this AdminCreateUser. # noqa: E501
|
|
126
|
+
|
|
127
|
+
Password to use for logging in as the user. Password is required if not SSO org. # noqa: E501
|
|
128
|
+
|
|
129
|
+
:return: The password of this AdminCreateUser. # noqa: E501
|
|
130
|
+
:rtype: str
|
|
131
|
+
"""
|
|
132
|
+
return self._password
|
|
133
|
+
|
|
134
|
+
@password.setter
|
|
135
|
+
def password(self, password):
|
|
136
|
+
"""Sets the password of this AdminCreateUser.
|
|
137
|
+
|
|
138
|
+
Password to use for logging in as the user. Password is required if not SSO org. # noqa: E501
|
|
139
|
+
|
|
140
|
+
:param password: The password of this AdminCreateUser. # noqa: E501
|
|
141
|
+
:type: str
|
|
142
|
+
"""
|
|
143
|
+
|
|
144
|
+
self._password = password
|
|
145
|
+
|
|
146
|
+
@property
|
|
147
|
+
def is_sso_user(self):
|
|
148
|
+
"""Gets the is_sso_user of this AdminCreateUser. # noqa: E501
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
:return: The is_sso_user of this AdminCreateUser. # noqa: E501
|
|
152
|
+
:rtype: bool
|
|
153
|
+
"""
|
|
154
|
+
return self._is_sso_user
|
|
155
|
+
|
|
156
|
+
@is_sso_user.setter
|
|
157
|
+
def is_sso_user(self, is_sso_user):
|
|
158
|
+
"""Sets the is_sso_user of this AdminCreateUser.
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
:param is_sso_user: The is_sso_user of this AdminCreateUser. # noqa: E501
|
|
162
|
+
:type: bool
|
|
163
|
+
"""
|
|
164
|
+
if self.local_vars_configuration.client_side_validation and is_sso_user is None: # noqa: E501
|
|
165
|
+
raise ValueError("Invalid value for `is_sso_user`, must not be `None`") # noqa: E501
|
|
166
|
+
|
|
167
|
+
self._is_sso_user = is_sso_user
|
|
168
|
+
|
|
169
|
+
@property
|
|
170
|
+
def lastname(self):
|
|
171
|
+
"""Gets the lastname of this AdminCreateUser. # noqa: E501
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
:return: The lastname of this AdminCreateUser. # noqa: E501
|
|
175
|
+
:rtype: str
|
|
176
|
+
"""
|
|
177
|
+
return self._lastname
|
|
178
|
+
|
|
179
|
+
@lastname.setter
|
|
180
|
+
def lastname(self, lastname):
|
|
181
|
+
"""Sets the lastname of this AdminCreateUser.
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
:param lastname: The lastname of this AdminCreateUser. # noqa: E501
|
|
185
|
+
:type: str
|
|
186
|
+
"""
|
|
187
|
+
|
|
188
|
+
self._lastname = lastname
|
|
189
|
+
|
|
190
|
+
@property
|
|
191
|
+
def title(self):
|
|
192
|
+
"""Gets the title of this AdminCreateUser. # noqa: E501
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
:return: The title of this AdminCreateUser. # noqa: E501
|
|
196
|
+
:rtype: str
|
|
197
|
+
"""
|
|
198
|
+
return self._title
|
|
199
|
+
|
|
200
|
+
@title.setter
|
|
201
|
+
def title(self, title):
|
|
202
|
+
"""Sets the title of this AdminCreateUser.
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
:param title: The title of this AdminCreateUser. # noqa: E501
|
|
206
|
+
:type: str
|
|
207
|
+
"""
|
|
208
|
+
|
|
209
|
+
self._title = title
|
|
210
|
+
|
|
211
|
+
def to_dict(self):
|
|
212
|
+
"""Returns the model properties as a dict"""
|
|
213
|
+
result = {}
|
|
214
|
+
|
|
215
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
216
|
+
value = getattr(self, attr)
|
|
217
|
+
if isinstance(value, list):
|
|
218
|
+
result[attr] = list(map(
|
|
219
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
220
|
+
value
|
|
221
|
+
))
|
|
222
|
+
elif hasattr(value, "to_dict"):
|
|
223
|
+
result[attr] = value.to_dict()
|
|
224
|
+
elif isinstance(value, dict):
|
|
225
|
+
result[attr] = dict(map(
|
|
226
|
+
lambda item: (item[0], item[1].to_dict())
|
|
227
|
+
if hasattr(item[1], "to_dict") else item,
|
|
228
|
+
value.items()
|
|
229
|
+
))
|
|
230
|
+
else:
|
|
231
|
+
result[attr] = value
|
|
232
|
+
|
|
233
|
+
return result
|
|
234
|
+
|
|
235
|
+
def to_str(self):
|
|
236
|
+
"""Returns the string representation of the model"""
|
|
237
|
+
return pprint.pformat(self.to_dict())
|
|
238
|
+
|
|
239
|
+
def __repr__(self):
|
|
240
|
+
"""For `print` and `pprint`"""
|
|
241
|
+
return self.to_str()
|
|
242
|
+
|
|
243
|
+
def __eq__(self, other):
|
|
244
|
+
"""Returns true if both objects are equal"""
|
|
245
|
+
if not isinstance(other, AdminCreateUser):
|
|
246
|
+
return False
|
|
247
|
+
|
|
248
|
+
return self.to_dict() == other.to_dict()
|
|
249
|
+
|
|
250
|
+
def __ne__(self, other):
|
|
251
|
+
"""Returns true if both objects are not equal"""
|
|
252
|
+
if not isinstance(other, AdminCreateUser):
|
|
253
|
+
return True
|
|
254
|
+
|
|
255
|
+
return self.to_dict() != other.to_dict()
|
|
@@ -0,0 +1,281 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Managed Ray API
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 0.1.0
|
|
9
|
+
Generated by: https://openapi-generator.tech
|
|
10
|
+
"""
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
import pprint
|
|
14
|
+
import re # noqa: F401
|
|
15
|
+
|
|
16
|
+
import six
|
|
17
|
+
|
|
18
|
+
from openapi_client.configuration import Configuration
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class AdminCreatedUser(object):
|
|
22
|
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
23
|
+
Ref: https://openapi-generator.tech
|
|
24
|
+
|
|
25
|
+
Do not edit the class manually.
|
|
26
|
+
"""
|
|
27
|
+
|
|
28
|
+
"""
|
|
29
|
+
Attributes:
|
|
30
|
+
openapi_types (dict): The key is attribute name
|
|
31
|
+
and the value is attribute type.
|
|
32
|
+
attribute_map (dict): The key is attribute name
|
|
33
|
+
and the value is json key in definition.
|
|
34
|
+
"""
|
|
35
|
+
openapi_types = {
|
|
36
|
+
'user_id': 'str',
|
|
37
|
+
'email': 'str',
|
|
38
|
+
'created_at': 'datetime',
|
|
39
|
+
'name': 'str',
|
|
40
|
+
'lastname': 'str',
|
|
41
|
+
'title': 'str',
|
|
42
|
+
'is_sso_user': 'bool'
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
attribute_map = {
|
|
46
|
+
'user_id': 'user_id',
|
|
47
|
+
'email': 'email',
|
|
48
|
+
'created_at': 'created_at',
|
|
49
|
+
'name': 'name',
|
|
50
|
+
'lastname': 'lastname',
|
|
51
|
+
'title': 'title',
|
|
52
|
+
'is_sso_user': 'is_sso_user'
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
def __init__(self, user_id=None, email=None, created_at=None, name=None, lastname=None, title=None, is_sso_user=None, local_vars_configuration=None): # noqa: E501
|
|
56
|
+
"""AdminCreatedUser - a model defined in OpenAPI""" # noqa: E501
|
|
57
|
+
if local_vars_configuration is None:
|
|
58
|
+
local_vars_configuration = Configuration()
|
|
59
|
+
self.local_vars_configuration = local_vars_configuration
|
|
60
|
+
|
|
61
|
+
self._user_id = None
|
|
62
|
+
self._email = None
|
|
63
|
+
self._created_at = None
|
|
64
|
+
self._name = None
|
|
65
|
+
self._lastname = None
|
|
66
|
+
self._title = None
|
|
67
|
+
self._is_sso_user = None
|
|
68
|
+
self.discriminator = None
|
|
69
|
+
|
|
70
|
+
self.user_id = user_id
|
|
71
|
+
self.email = email
|
|
72
|
+
self.created_at = created_at
|
|
73
|
+
self.name = name
|
|
74
|
+
if lastname is not None:
|
|
75
|
+
self.lastname = lastname
|
|
76
|
+
if title is not None:
|
|
77
|
+
self.title = title
|
|
78
|
+
self.is_sso_user = is_sso_user
|
|
79
|
+
|
|
80
|
+
@property
|
|
81
|
+
def user_id(self):
|
|
82
|
+
"""Gets the user_id of this AdminCreatedUser. # noqa: E501
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
:return: The user_id of this AdminCreatedUser. # noqa: E501
|
|
86
|
+
:rtype: str
|
|
87
|
+
"""
|
|
88
|
+
return self._user_id
|
|
89
|
+
|
|
90
|
+
@user_id.setter
|
|
91
|
+
def user_id(self, user_id):
|
|
92
|
+
"""Sets the user_id of this AdminCreatedUser.
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
:param user_id: The user_id of this AdminCreatedUser. # noqa: E501
|
|
96
|
+
:type: str
|
|
97
|
+
"""
|
|
98
|
+
if self.local_vars_configuration.client_side_validation and user_id is None: # noqa: E501
|
|
99
|
+
raise ValueError("Invalid value for `user_id`, must not be `None`") # noqa: E501
|
|
100
|
+
|
|
101
|
+
self._user_id = user_id
|
|
102
|
+
|
|
103
|
+
@property
|
|
104
|
+
def email(self):
|
|
105
|
+
"""Gets the email of this AdminCreatedUser. # noqa: E501
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
:return: The email of this AdminCreatedUser. # noqa: E501
|
|
109
|
+
:rtype: str
|
|
110
|
+
"""
|
|
111
|
+
return self._email
|
|
112
|
+
|
|
113
|
+
@email.setter
|
|
114
|
+
def email(self, email):
|
|
115
|
+
"""Sets the email of this AdminCreatedUser.
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
:param email: The email of this AdminCreatedUser. # noqa: E501
|
|
119
|
+
:type: str
|
|
120
|
+
"""
|
|
121
|
+
if self.local_vars_configuration.client_side_validation and email is None: # noqa: E501
|
|
122
|
+
raise ValueError("Invalid value for `email`, must not be `None`") # noqa: E501
|
|
123
|
+
|
|
124
|
+
self._email = email
|
|
125
|
+
|
|
126
|
+
@property
|
|
127
|
+
def created_at(self):
|
|
128
|
+
"""Gets the created_at of this AdminCreatedUser. # noqa: E501
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
:return: The created_at of this AdminCreatedUser. # noqa: E501
|
|
132
|
+
:rtype: datetime
|
|
133
|
+
"""
|
|
134
|
+
return self._created_at
|
|
135
|
+
|
|
136
|
+
@created_at.setter
|
|
137
|
+
def created_at(self, created_at):
|
|
138
|
+
"""Sets the created_at of this AdminCreatedUser.
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
:param created_at: The created_at of this AdminCreatedUser. # noqa: E501
|
|
142
|
+
:type: datetime
|
|
143
|
+
"""
|
|
144
|
+
if self.local_vars_configuration.client_side_validation and created_at is None: # noqa: E501
|
|
145
|
+
raise ValueError("Invalid value for `created_at`, must not be `None`") # noqa: E501
|
|
146
|
+
|
|
147
|
+
self._created_at = created_at
|
|
148
|
+
|
|
149
|
+
@property
|
|
150
|
+
def name(self):
|
|
151
|
+
"""Gets the name of this AdminCreatedUser. # noqa: E501
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
:return: The name of this AdminCreatedUser. # noqa: E501
|
|
155
|
+
:rtype: str
|
|
156
|
+
"""
|
|
157
|
+
return self._name
|
|
158
|
+
|
|
159
|
+
@name.setter
|
|
160
|
+
def name(self, name):
|
|
161
|
+
"""Sets the name of this AdminCreatedUser.
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
:param name: The name of this AdminCreatedUser. # noqa: E501
|
|
165
|
+
:type: str
|
|
166
|
+
"""
|
|
167
|
+
if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
|
|
168
|
+
raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
|
|
169
|
+
|
|
170
|
+
self._name = name
|
|
171
|
+
|
|
172
|
+
@property
|
|
173
|
+
def lastname(self):
|
|
174
|
+
"""Gets the lastname of this AdminCreatedUser. # noqa: E501
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
:return: The lastname of this AdminCreatedUser. # noqa: E501
|
|
178
|
+
:rtype: str
|
|
179
|
+
"""
|
|
180
|
+
return self._lastname
|
|
181
|
+
|
|
182
|
+
@lastname.setter
|
|
183
|
+
def lastname(self, lastname):
|
|
184
|
+
"""Sets the lastname of this AdminCreatedUser.
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
:param lastname: The lastname of this AdminCreatedUser. # noqa: E501
|
|
188
|
+
:type: str
|
|
189
|
+
"""
|
|
190
|
+
|
|
191
|
+
self._lastname = lastname
|
|
192
|
+
|
|
193
|
+
@property
|
|
194
|
+
def title(self):
|
|
195
|
+
"""Gets the title of this AdminCreatedUser. # noqa: E501
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
:return: The title of this AdminCreatedUser. # noqa: E501
|
|
199
|
+
:rtype: str
|
|
200
|
+
"""
|
|
201
|
+
return self._title
|
|
202
|
+
|
|
203
|
+
@title.setter
|
|
204
|
+
def title(self, title):
|
|
205
|
+
"""Sets the title of this AdminCreatedUser.
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
:param title: The title of this AdminCreatedUser. # noqa: E501
|
|
209
|
+
:type: str
|
|
210
|
+
"""
|
|
211
|
+
|
|
212
|
+
self._title = title
|
|
213
|
+
|
|
214
|
+
@property
|
|
215
|
+
def is_sso_user(self):
|
|
216
|
+
"""Gets the is_sso_user of this AdminCreatedUser. # noqa: E501
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
:return: The is_sso_user of this AdminCreatedUser. # noqa: E501
|
|
220
|
+
:rtype: bool
|
|
221
|
+
"""
|
|
222
|
+
return self._is_sso_user
|
|
223
|
+
|
|
224
|
+
@is_sso_user.setter
|
|
225
|
+
def is_sso_user(self, is_sso_user):
|
|
226
|
+
"""Sets the is_sso_user of this AdminCreatedUser.
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
:param is_sso_user: The is_sso_user of this AdminCreatedUser. # noqa: E501
|
|
230
|
+
:type: bool
|
|
231
|
+
"""
|
|
232
|
+
if self.local_vars_configuration.client_side_validation and is_sso_user is None: # noqa: E501
|
|
233
|
+
raise ValueError("Invalid value for `is_sso_user`, must not be `None`") # noqa: E501
|
|
234
|
+
|
|
235
|
+
self._is_sso_user = is_sso_user
|
|
236
|
+
|
|
237
|
+
def to_dict(self):
|
|
238
|
+
"""Returns the model properties as a dict"""
|
|
239
|
+
result = {}
|
|
240
|
+
|
|
241
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
242
|
+
value = getattr(self, attr)
|
|
243
|
+
if isinstance(value, list):
|
|
244
|
+
result[attr] = list(map(
|
|
245
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
246
|
+
value
|
|
247
|
+
))
|
|
248
|
+
elif hasattr(value, "to_dict"):
|
|
249
|
+
result[attr] = value.to_dict()
|
|
250
|
+
elif isinstance(value, dict):
|
|
251
|
+
result[attr] = dict(map(
|
|
252
|
+
lambda item: (item[0], item[1].to_dict())
|
|
253
|
+
if hasattr(item[1], "to_dict") else item,
|
|
254
|
+
value.items()
|
|
255
|
+
))
|
|
256
|
+
else:
|
|
257
|
+
result[attr] = value
|
|
258
|
+
|
|
259
|
+
return result
|
|
260
|
+
|
|
261
|
+
def to_str(self):
|
|
262
|
+
"""Returns the string representation of the model"""
|
|
263
|
+
return pprint.pformat(self.to_dict())
|
|
264
|
+
|
|
265
|
+
def __repr__(self):
|
|
266
|
+
"""For `print` and `pprint`"""
|
|
267
|
+
return self.to_str()
|
|
268
|
+
|
|
269
|
+
def __eq__(self, other):
|
|
270
|
+
"""Returns true if both objects are equal"""
|
|
271
|
+
if not isinstance(other, AdminCreatedUser):
|
|
272
|
+
return False
|
|
273
|
+
|
|
274
|
+
return self.to_dict() == other.to_dict()
|
|
275
|
+
|
|
276
|
+
def __ne__(self, other):
|
|
277
|
+
"""Returns true if both objects are not equal"""
|
|
278
|
+
if not isinstance(other, AdminCreatedUser):
|
|
279
|
+
return True
|
|
280
|
+
|
|
281
|
+
return self.to_dict() != other.to_dict()
|