From a954b9eacf2f756fce3bd2923a21ce2ff16819fb Mon Sep 17 00:00:00 2001 From: Aleksey Burov Date: Tue, 2 Oct 2018 17:23:11 +0700 Subject: [PATCH] init --- .gitignore | 65 + .swagger-codegen-ignore | 23 + .swagger-codegen/VERSION | 1 + .travis.yml | 14 + README.md | 591 + docs/Agent.md | 26 + docs/AgentApi.md | 641 + docs/AgentPool.md | 16 + docs/AgentPoolApi.md | 679 + docs/AgentPools.md | 14 + docs/AgentRequirement.md | 16 + docs/AgentRequirements.md | 11 + docs/Agents.md | 14 + docs/ArtifactDependencies.md | 12 + docs/ArtifactDependency.md | 17 + docs/AuthorizedInfo.md | 11 + docs/BackupProcess.md | 16 + docs/BackupProcessInfo.md | 15 + docs/BackupProcessManager.md | 10 + docs/Branch.md | 12 + docs/BranchVersion.md | 13 + docs/Branches.md | 11 + docs/Build.md | 66 + docs/BuildApi.md | 1796 ++ docs/BuildCancelRequest.md | 11 + docs/BuildQueueApi.md | 679 + docs/BuildTriggeringOptions.md | 13 + docs/BuildType.md | 37 + docs/BuildTypeApi.md | 5630 +++++ docs/BuildTypes.md | 14 + docs/Builds.md | 14 + docs/Change.md | 25 + docs/ChangeApi.md | 594 + docs/Changes.md | 14 + docs/Comment.md | 12 + docs/Compatibilities.md | 11 + docs/Compatibility.md | 13 + docs/Datas.md | 11 + docs/DebugApi.md | 968 + docs/DefaultApi.md | 232 + docs/EnabledInfo.md | 12 + docs/Entries.md | 11 + docs/Entry.md | 11 + docs/Exception.md | 14 + docs/Feature.md | 16 + docs/Features.md | 11 + docs/FederationApi.md | 100 + docs/FederationServer.md | 11 + docs/File.md | 17 + docs/FileChange.md | 16 + docs/FileChanges.md | 11 + docs/Files.md | 12 + docs/Group.md | 18 + docs/GroupApi.md | 725 + docs/Groups.md | 11 + docs/Href.md | 10 + docs/Investigation.md | 18 + docs/InvestigationApi.md | 104 + docs/Investigations.md | 14 + docs/Issue.md | 11 + docs/IssueUsage.md | 11 + docs/Issues.md | 10 + docs/IssuesUsages.md | 12 + docs/Items.md | 10 + docs/LicenseKey.md | 24 + docs/LicenseKeys.md | 12 + docs/LicensingData.md | 19 + docs/Link.md | 12 + docs/Links.md | 11 + docs/MetaData.md | 11 + docs/ModelProperty.md | 13 + docs/Mute.md | 14 + docs/Mutes.md | 15 + docs/NewBuildTypeDescription.md | 17 + docs/NewProjectDescription.md | 18 + docs/Plugin.md | 14 + docs/Plugins.md | 11 + docs/Problem.md | 16 + docs/ProblemApi.md | 104 + docs/ProblemOccurrence.md | 21 + docs/ProblemOccurrenceApi.md | 104 + docs/ProblemOccurrences.md | 20 + docs/ProblemScope.md | 12 + docs/ProblemTarget.md | 12 + docs/Problems.md | 14 + docs/ProgressInfo.md | 15 + docs/Project.md | 30 + docs/ProjectApi.md | 2907 +++ docs/ProjectFeature.md | 16 + docs/ProjectFeatures.md | 12 + docs/Projects.md | 14 + docs/Properties.md | 12 + docs/RepositoryState.md | 12 + docs/Requirements.md | 10 + docs/Resolution.md | 11 + docs/Revision.md | 14 + docs/Revisions.md | 11 + docs/Role.md | 12 + docs/Roles.md | 10 + docs/Server.md | 27 + docs/ServerApi.md | 844 + docs/Servers.md | 11 + docs/Session.md | 13 + docs/Sessions.md | 16 + docs/SnapshotDependencies.md | 11 + docs/SnapshotDependency.md | 17 + docs/StackTraceElement.md | 14 + docs/StateField.md | 11 + docs/Step.md | 16 + docs/Steps.md | 11 + docs/Tag.md | 12 + docs/Tags.md | 11 + docs/Test.md | 15 + docs/TestApi.md | 104 + docs/TestOccurrence.md | 27 + docs/TestOccurrenceApi.md | 104 + docs/TestOccurrences.md | 20 + docs/Tests.md | 14 + docs/Throwable.md | 14 + docs/Trigger.md | 16 + docs/TriggeredBy.md | 16 + docs/Triggers.md | 11 + docs/Type.md | 10 + docs/User.md | 22 + docs/UserApi.md | 1164 + docs/Users.md | 11 + docs/VcsCheckStatus.md | 12 + docs/VcsLabeling.md | 13 + docs/VcsRoot.md | 22 + docs/VcsRootApi.md | 879 + docs/VcsRootEntries.md | 11 + docs/VcsRootEntry.md | 13 + docs/VcsRootInstance.md | 25 + docs/VcsRootInstanceApi.md | 940 + docs/VcsRootInstances.md | 14 + docs/VcsRoots.md | 14 + docs/VcsStatus.md | 11 + git_push.sh | 52 + requirements.txt | 5 + setup.py | 40 + swagger.json | 17646 ++++++++++++++++ swagger_client/__init__.py | 155 + swagger_client/api/__init__.py | 25 + swagger_client/api/agent_api.py | 1267 ++ swagger_client/api/agent_pool_api.py | 1348 ++ swagger_client/api/build_api.py | 3585 ++++ swagger_client/api/build_queue_api.py | 1328 ++ swagger_client/api/build_type_api.py | 11304 ++++++++++ swagger_client/api/change_api.py | 1170 + swagger_client/api/debug_api.py | 1851 ++ swagger_client/api/default_api.py | 475 + swagger_client/api/federation_api.py | 204 + swagger_client/api/group_api.py | 1457 ++ swagger_client/api/investigation_api.py | 216 + swagger_client/api/problem_api.py | 216 + swagger_client/api/problem_occurrence_api.py | 216 + swagger_client/api/project_api.py | 5837 +++++ swagger_client/api/server_api.py | 1671 ++ swagger_client/api/test_api.py | 216 + swagger_client/api/test_occurrence_api.py | 216 + swagger_client/api/user_api.py | 2334 ++ swagger_client/api/vcs_root_api.py | 1764 ++ swagger_client/api/vcs_root_instance_api.py | 1889 ++ swagger_client/api_client.py | 627 + swagger_client/configuration.py | 247 + swagger_client/models/__init__.py | 129 + swagger_client/models/agent.py | 538 + swagger_client/models/agent_pool.py | 274 + swagger_client/models/agent_pools.py | 221 + swagger_client/models/agent_requirement.py | 273 + swagger_client/models/agent_requirements.py | 143 + swagger_client/models/agents.py | 221 + .../models/artifact_dependencies.py | 169 + swagger_client/models/artifact_dependency.py | 300 + swagger_client/models/authorized_info.py | 143 + swagger_client/models/backup_process.py | 287 + swagger_client/models/backup_process_info.py | 251 + .../models/backup_process_manager.py | 117 + swagger_client/models/branch.py | 167 + swagger_client/models/branch_version.py | 193 + swagger_client/models/branches.py | 143 + swagger_client/models/build.py | 1594 ++ swagger_client/models/build_cancel_request.py | 141 + .../models/build_triggering_options.py | 195 + swagger_client/models/build_type.py | 832 + swagger_client/models/build_types.py | 221 + swagger_client/models/builds.py | 221 + swagger_client/models/change.py | 511 + swagger_client/models/changes.py | 221 + swagger_client/models/comment.py | 169 + swagger_client/models/compatibilities.py | 143 + swagger_client/models/compatibility.py | 197 + swagger_client/models/datas.py | 143 + swagger_client/models/enabled_info.py | 169 + swagger_client/models/entries.py | 143 + swagger_client/models/entry.py | 141 + swagger_client/models/exception.py | 222 + swagger_client/models/feature.py | 273 + swagger_client/models/features.py | 143 + swagger_client/models/federation_server.py | 141 + swagger_client/models/file.py | 301 + swagger_client/models/file_change.py | 271 + swagger_client/models/file_changes.py | 143 + swagger_client/models/files.py | 169 + swagger_client/models/group.py | 328 + swagger_client/models/groups.py | 143 + swagger_client/models/href.py | 115 + swagger_client/models/investigation.py | 329 + swagger_client/models/investigations.py | 221 + swagger_client/models/issue.py | 141 + swagger_client/models/issue_usage.py | 144 + swagger_client/models/issues.py | 117 + swagger_client/models/issues_usages.py | 169 + swagger_client/models/items.py | 115 + swagger_client/models/license_key.py | 479 + swagger_client/models/license_keys.py | 169 + swagger_client/models/licensing_data.py | 351 + swagger_client/models/link.py | 167 + swagger_client/models/links.py | 143 + swagger_client/models/meta_data.py | 143 + swagger_client/models/model_property.py | 195 + swagger_client/models/mute.py | 224 + swagger_client/models/mutes.py | 247 + .../models/new_build_type_description.py | 300 + .../models/new_project_description.py | 326 + swagger_client/models/plugin.py | 221 + swagger_client/models/plugins.py | 143 + swagger_client/models/problem.py | 275 + swagger_client/models/problem_occurrence.py | 405 + swagger_client/models/problem_occurrences.py | 377 + swagger_client/models/problem_scope.py | 171 + swagger_client/models/problem_target.py | 170 + swagger_client/models/problems.py | 221 + swagger_client/models/progress_info.py | 245 + swagger_client/models/project.py | 644 + swagger_client/models/project_feature.py | 273 + swagger_client/models/project_features.py | 169 + swagger_client/models/projects.py | 221 + swagger_client/models/properties.py | 169 + swagger_client/models/repository_state.py | 169 + swagger_client/models/requirements.py | 115 + swagger_client/models/resolution.py | 141 + swagger_client/models/revision.py | 221 + swagger_client/models/revisions.py | 143 + swagger_client/models/role.py | 167 + swagger_client/models/roles.py | 117 + swagger_client/models/server.py | 559 + swagger_client/models/servers.py | 143 + swagger_client/models/session.py | 195 + swagger_client/models/sessions.py | 273 + .../models/snapshot_dependencies.py | 143 + swagger_client/models/snapshot_dependency.py | 300 + swagger_client/models/stack_trace_element.py | 219 + swagger_client/models/state_field.py | 141 + swagger_client/models/step.py | 273 + swagger_client/models/steps.py | 143 + swagger_client/models/tag.py | 169 + swagger_client/models/tags.py | 143 + swagger_client/models/test.py | 249 + swagger_client/models/test_occurrence.py | 563 + swagger_client/models/test_occurrences.py | 377 + swagger_client/models/tests.py | 221 + swagger_client/models/throwable.py | 222 + swagger_client/models/trigger.py | 273 + swagger_client/models/triggered_by.py | 275 + swagger_client/models/triggers.py | 143 + swagger_client/models/type.py | 115 + swagger_client/models/user.py | 431 + swagger_client/models/users.py | 143 + swagger_client/models/vcs_check_status.py | 167 + swagger_client/models/vcs_labeling.py | 195 + swagger_client/models/vcs_root.py | 432 + swagger_client/models/vcs_root_entries.py | 143 + swagger_client/models/vcs_root_entry.py | 195 + swagger_client/models/vcs_root_instance.py | 511 + swagger_client/models/vcs_root_instances.py | 221 + swagger_client/models/vcs_roots.py | 221 + swagger_client/models/vcs_status.py | 143 + swagger_client/rest.py | 323 + test-requirements.txt | 5 + test.py | 1 + test/__init__.py | 0 test/test_agent.py | 40 + test/test_agent_api.py | 112 + test/test_agent_pool.py | 40 + test/test_agent_pool_api.py | 118 + test/test_agent_pools.py | 40 + test/test_agent_requirement.py | 40 + test/test_agent_requirements.py | 40 + test/test_agents.py | 40 + test/test_artifact_dependencies.py | 40 + test/test_artifact_dependency.py | 40 + test/test_authorized_info.py | 40 + test/test_backup_process.py | 40 + test/test_backup_process_info.py | 40 + test/test_backup_process_manager.py | 40 + test/test_branch.py | 40 + test/test_branch_version.py | 40 + test/test_branches.py | 40 + test/test_build.py | 40 + test/test_build_api.py | 250 + test/test_build_cancel_request.py | 40 + test/test_build_queue_api.py | 118 + test/test_build_triggering_options.py | 40 + test/test_build_type.py | 40 + test/test_build_type_api.py | 712 + test/test_build_types.py | 40 + test/test_builds.py | 40 + test/test_change.py | 40 + test/test_change_api.py | 106 + test/test_changes.py | 40 + test/test_comment.py | 40 + test/test_compatibilities.py | 40 + test/test_compatibility.py | 40 + test/test_datas.py | 40 + test/test_debug_api.py | 160 + test/test_default_api.py | 64 + test/test_enabled_info.py | 40 + test/test_entries.py | 40 + test/test_entry.py | 40 + test/test_exception.py | 40 + test/test_feature.py | 40 + test/test_features.py | 40 + test/test_federation_api.py | 46 + test/test_federation_server.py | 40 + test/test_file.py | 40 + test/test_file_change.py | 40 + test/test_file_changes.py | 40 + test/test_files.py | 40 + test/test_group.py | 40 + test/test_group_api.py | 124 + test/test_groups.py | 40 + test/test_href.py | 40 + test/test_investigation.py | 40 + test/test_investigation_api.py | 46 + test/test_investigations.py | 40 + test/test_issue.py | 40 + test/test_issue_usage.py | 40 + test/test_issues.py | 40 + test/test_issues_usages.py | 40 + test/test_items.py | 40 + test/test_license_key.py | 40 + test/test_license_keys.py | 40 + test/test_licensing_data.py | 40 + test/test_link.py | 40 + test/test_links.py | 40 + test/test_meta_data.py | 40 + test/test_model_property.py | 40 + test/test_mute.py | 40 + test/test_mutes.py | 40 + test/test_new_build_type_description.py | 40 + test/test_new_project_description.py | 40 + test/test_plugin.py | 40 + test/test_plugins.py | 40 + test/test_problem.py | 40 + test/test_problem_api.py | 46 + test/test_problem_occurrence.py | 40 + test/test_problem_occurrence_api.py | 46 + test/test_problem_occurrences.py | 40 + test/test_problem_scope.py | 40 + test/test_problem_target.py | 40 + test/test_problems.py | 40 + test/test_progress_info.py | 40 + test/test_project.py | 40 + test/test_project_api.py | 382 + test/test_project_feature.py | 40 + test/test_project_features.py | 40 + test/test_projects.py | 40 + test/test_properties.py | 40 + test/test_repository_state.py | 40 + test/test_requirements.py | 40 + test/test_resolution.py | 40 + test/test_revision.py | 40 + test/test_revisions.py | 40 + test/test_role.py | 40 + test/test_roles.py | 40 + test/test_server.py | 40 + test/test_server_api.py | 136 + test/test_servers.py | 40 + test/test_session.py | 40 + test/test_sessions.py | 40 + test/test_snapshot_dependencies.py | 40 + test/test_snapshot_dependency.py | 40 + test/test_stack_trace_element.py | 40 + test/test_state_field.py | 40 + test/test_step.py | 40 + test/test_steps.py | 40 + test/test_tag.py | 40 + test/test_tags.py | 40 + test/test_test.py | 40 + test/test_test_api.py | 46 + test/test_test_occurrence.py | 40 + test/test_test_occurrence_api.py | 46 + test/test_test_occurrences.py | 40 + test/test_tests.py | 40 + test/test_throwable.py | 40 + test/test_trigger.py | 40 + test/test_triggered_by.py | 40 + test/test_triggers.py | 40 + test/test_type.py | 40 + test/test_user.py | 40 + test/test_user_api.py | 178 + test/test_users.py | 40 + test/test_vcs_check_status.py | 40 + test/test_vcs_labeling.py | 40 + test/test_vcs_root.py | 40 + test/test_vcs_root_api.py | 142 + test/test_vcs_root_entries.py | 40 + test/test_vcs_root_entry.py | 40 + test/test_vcs_root_instance.py | 40 + test/test_vcs_root_instance_api.py | 148 + test/test_vcs_root_instances.py | 40 + test/test_vcs_roots.py | 40 + test/test_vcs_status.py | 40 + tox.ini | 10 + 415 files changed, 114423 insertions(+) create mode 100644 .gitignore create mode 100644 .swagger-codegen-ignore create mode 100644 .swagger-codegen/VERSION create mode 100644 .travis.yml create mode 100644 README.md create mode 100644 docs/Agent.md create mode 100644 docs/AgentApi.md create mode 100644 docs/AgentPool.md create mode 100644 docs/AgentPoolApi.md create mode 100644 docs/AgentPools.md create mode 100644 docs/AgentRequirement.md create mode 100644 docs/AgentRequirements.md create mode 100644 docs/Agents.md create mode 100644 docs/ArtifactDependencies.md create mode 100644 docs/ArtifactDependency.md create mode 100644 docs/AuthorizedInfo.md create mode 100644 docs/BackupProcess.md create mode 100644 docs/BackupProcessInfo.md create mode 100644 docs/BackupProcessManager.md create mode 100644 docs/Branch.md create mode 100644 docs/BranchVersion.md create mode 100644 docs/Branches.md create mode 100644 docs/Build.md create mode 100644 docs/BuildApi.md create mode 100644 docs/BuildCancelRequest.md create mode 100644 docs/BuildQueueApi.md create mode 100644 docs/BuildTriggeringOptions.md create mode 100644 docs/BuildType.md create mode 100644 docs/BuildTypeApi.md create mode 100644 docs/BuildTypes.md create mode 100644 docs/Builds.md create mode 100644 docs/Change.md create mode 100644 docs/ChangeApi.md create mode 100644 docs/Changes.md create mode 100644 docs/Comment.md create mode 100644 docs/Compatibilities.md create mode 100644 docs/Compatibility.md create mode 100644 docs/Datas.md create mode 100644 docs/DebugApi.md create mode 100644 docs/DefaultApi.md create mode 100644 docs/EnabledInfo.md create mode 100644 docs/Entries.md create mode 100644 docs/Entry.md create mode 100644 docs/Exception.md create mode 100644 docs/Feature.md create mode 100644 docs/Features.md create mode 100644 docs/FederationApi.md create mode 100644 docs/FederationServer.md create mode 100644 docs/File.md create mode 100644 docs/FileChange.md create mode 100644 docs/FileChanges.md create mode 100644 docs/Files.md create mode 100644 docs/Group.md create mode 100644 docs/GroupApi.md create mode 100644 docs/Groups.md create mode 100644 docs/Href.md create mode 100644 docs/Investigation.md create mode 100644 docs/InvestigationApi.md create mode 100644 docs/Investigations.md create mode 100644 docs/Issue.md create mode 100644 docs/IssueUsage.md create mode 100644 docs/Issues.md create mode 100644 docs/IssuesUsages.md create mode 100644 docs/Items.md create mode 100644 docs/LicenseKey.md create mode 100644 docs/LicenseKeys.md create mode 100644 docs/LicensingData.md create mode 100644 docs/Link.md create mode 100644 docs/Links.md create mode 100644 docs/MetaData.md create mode 100644 docs/ModelProperty.md create mode 100644 docs/Mute.md create mode 100644 docs/Mutes.md create mode 100644 docs/NewBuildTypeDescription.md create mode 100644 docs/NewProjectDescription.md create mode 100644 docs/Plugin.md create mode 100644 docs/Plugins.md create mode 100644 docs/Problem.md create mode 100644 docs/ProblemApi.md create mode 100644 docs/ProblemOccurrence.md create mode 100644 docs/ProblemOccurrenceApi.md create mode 100644 docs/ProblemOccurrences.md create mode 100644 docs/ProblemScope.md create mode 100644 docs/ProblemTarget.md create mode 100644 docs/Problems.md create mode 100644 docs/ProgressInfo.md create mode 100644 docs/Project.md create mode 100644 docs/ProjectApi.md create mode 100644 docs/ProjectFeature.md create mode 100644 docs/ProjectFeatures.md create mode 100644 docs/Projects.md create mode 100644 docs/Properties.md create mode 100644 docs/RepositoryState.md create mode 100644 docs/Requirements.md create mode 100644 docs/Resolution.md create mode 100644 docs/Revision.md create mode 100644 docs/Revisions.md create mode 100644 docs/Role.md create mode 100644 docs/Roles.md create mode 100644 docs/Server.md create mode 100644 docs/ServerApi.md create mode 100644 docs/Servers.md create mode 100644 docs/Session.md create mode 100644 docs/Sessions.md create mode 100644 docs/SnapshotDependencies.md create mode 100644 docs/SnapshotDependency.md create mode 100644 docs/StackTraceElement.md create mode 100644 docs/StateField.md create mode 100644 docs/Step.md create mode 100644 docs/Steps.md create mode 100644 docs/Tag.md create mode 100644 docs/Tags.md create mode 100644 docs/Test.md create mode 100644 docs/TestApi.md create mode 100644 docs/TestOccurrence.md create mode 100644 docs/TestOccurrenceApi.md create mode 100644 docs/TestOccurrences.md create mode 100644 docs/Tests.md create mode 100644 docs/Throwable.md create mode 100644 docs/Trigger.md create mode 100644 docs/TriggeredBy.md create mode 100644 docs/Triggers.md create mode 100644 docs/Type.md create mode 100644 docs/User.md create mode 100644 docs/UserApi.md create mode 100644 docs/Users.md create mode 100644 docs/VcsCheckStatus.md create mode 100644 docs/VcsLabeling.md create mode 100644 docs/VcsRoot.md create mode 100644 docs/VcsRootApi.md create mode 100644 docs/VcsRootEntries.md create mode 100644 docs/VcsRootEntry.md create mode 100644 docs/VcsRootInstance.md create mode 100644 docs/VcsRootInstanceApi.md create mode 100644 docs/VcsRootInstances.md create mode 100644 docs/VcsRoots.md create mode 100644 docs/VcsStatus.md create mode 100644 git_push.sh create mode 100644 requirements.txt create mode 100644 setup.py create mode 100644 swagger.json create mode 100644 swagger_client/__init__.py create mode 100644 swagger_client/api/__init__.py create mode 100644 swagger_client/api/agent_api.py create mode 100644 swagger_client/api/agent_pool_api.py create mode 100644 swagger_client/api/build_api.py create mode 100644 swagger_client/api/build_queue_api.py create mode 100644 swagger_client/api/build_type_api.py create mode 100644 swagger_client/api/change_api.py create mode 100644 swagger_client/api/debug_api.py create mode 100644 swagger_client/api/default_api.py create mode 100644 swagger_client/api/federation_api.py create mode 100644 swagger_client/api/group_api.py create mode 100644 swagger_client/api/investigation_api.py create mode 100644 swagger_client/api/problem_api.py create mode 100644 swagger_client/api/problem_occurrence_api.py create mode 100644 swagger_client/api/project_api.py create mode 100644 swagger_client/api/server_api.py create mode 100644 swagger_client/api/test_api.py create mode 100644 swagger_client/api/test_occurrence_api.py create mode 100644 swagger_client/api/user_api.py create mode 100644 swagger_client/api/vcs_root_api.py create mode 100644 swagger_client/api/vcs_root_instance_api.py create mode 100644 swagger_client/api_client.py create mode 100644 swagger_client/configuration.py create mode 100644 swagger_client/models/__init__.py create mode 100644 swagger_client/models/agent.py create mode 100644 swagger_client/models/agent_pool.py create mode 100644 swagger_client/models/agent_pools.py create mode 100644 swagger_client/models/agent_requirement.py create mode 100644 swagger_client/models/agent_requirements.py create mode 100644 swagger_client/models/agents.py create mode 100644 swagger_client/models/artifact_dependencies.py create mode 100644 swagger_client/models/artifact_dependency.py create mode 100644 swagger_client/models/authorized_info.py create mode 100644 swagger_client/models/backup_process.py create mode 100644 swagger_client/models/backup_process_info.py create mode 100644 swagger_client/models/backup_process_manager.py create mode 100644 swagger_client/models/branch.py create mode 100644 swagger_client/models/branch_version.py create mode 100644 swagger_client/models/branches.py create mode 100644 swagger_client/models/build.py create mode 100644 swagger_client/models/build_cancel_request.py create mode 100644 swagger_client/models/build_triggering_options.py create mode 100644 swagger_client/models/build_type.py create mode 100644 swagger_client/models/build_types.py create mode 100644 swagger_client/models/builds.py create mode 100644 swagger_client/models/change.py create mode 100644 swagger_client/models/changes.py create mode 100644 swagger_client/models/comment.py create mode 100644 swagger_client/models/compatibilities.py create mode 100644 swagger_client/models/compatibility.py create mode 100644 swagger_client/models/datas.py create mode 100644 swagger_client/models/enabled_info.py create mode 100644 swagger_client/models/entries.py create mode 100644 swagger_client/models/entry.py create mode 100644 swagger_client/models/exception.py create mode 100644 swagger_client/models/feature.py create mode 100644 swagger_client/models/features.py create mode 100644 swagger_client/models/federation_server.py create mode 100644 swagger_client/models/file.py create mode 100644 swagger_client/models/file_change.py create mode 100644 swagger_client/models/file_changes.py create mode 100644 swagger_client/models/files.py create mode 100644 swagger_client/models/group.py create mode 100644 swagger_client/models/groups.py create mode 100644 swagger_client/models/href.py create mode 100644 swagger_client/models/investigation.py create mode 100644 swagger_client/models/investigations.py create mode 100644 swagger_client/models/issue.py create mode 100644 swagger_client/models/issue_usage.py create mode 100644 swagger_client/models/issues.py create mode 100644 swagger_client/models/issues_usages.py create mode 100644 swagger_client/models/items.py create mode 100644 swagger_client/models/license_key.py create mode 100644 swagger_client/models/license_keys.py create mode 100644 swagger_client/models/licensing_data.py create mode 100644 swagger_client/models/link.py create mode 100644 swagger_client/models/links.py create mode 100644 swagger_client/models/meta_data.py create mode 100644 swagger_client/models/model_property.py create mode 100644 swagger_client/models/mute.py create mode 100644 swagger_client/models/mutes.py create mode 100644 swagger_client/models/new_build_type_description.py create mode 100644 swagger_client/models/new_project_description.py create mode 100644 swagger_client/models/plugin.py create mode 100644 swagger_client/models/plugins.py create mode 100644 swagger_client/models/problem.py create mode 100644 swagger_client/models/problem_occurrence.py create mode 100644 swagger_client/models/problem_occurrences.py create mode 100644 swagger_client/models/problem_scope.py create mode 100644 swagger_client/models/problem_target.py create mode 100644 swagger_client/models/problems.py create mode 100644 swagger_client/models/progress_info.py create mode 100644 swagger_client/models/project.py create mode 100644 swagger_client/models/project_feature.py create mode 100644 swagger_client/models/project_features.py create mode 100644 swagger_client/models/projects.py create mode 100644 swagger_client/models/properties.py create mode 100644 swagger_client/models/repository_state.py create mode 100644 swagger_client/models/requirements.py create mode 100644 swagger_client/models/resolution.py create mode 100644 swagger_client/models/revision.py create mode 100644 swagger_client/models/revisions.py create mode 100644 swagger_client/models/role.py create mode 100644 swagger_client/models/roles.py create mode 100644 swagger_client/models/server.py create mode 100644 swagger_client/models/servers.py create mode 100644 swagger_client/models/session.py create mode 100644 swagger_client/models/sessions.py create mode 100644 swagger_client/models/snapshot_dependencies.py create mode 100644 swagger_client/models/snapshot_dependency.py create mode 100644 swagger_client/models/stack_trace_element.py create mode 100644 swagger_client/models/state_field.py create mode 100644 swagger_client/models/step.py create mode 100644 swagger_client/models/steps.py create mode 100644 swagger_client/models/tag.py create mode 100644 swagger_client/models/tags.py create mode 100644 swagger_client/models/test.py create mode 100644 swagger_client/models/test_occurrence.py create mode 100644 swagger_client/models/test_occurrences.py create mode 100644 swagger_client/models/tests.py create mode 100644 swagger_client/models/throwable.py create mode 100644 swagger_client/models/trigger.py create mode 100644 swagger_client/models/triggered_by.py create mode 100644 swagger_client/models/triggers.py create mode 100644 swagger_client/models/type.py create mode 100644 swagger_client/models/user.py create mode 100644 swagger_client/models/users.py create mode 100644 swagger_client/models/vcs_check_status.py create mode 100644 swagger_client/models/vcs_labeling.py create mode 100644 swagger_client/models/vcs_root.py create mode 100644 swagger_client/models/vcs_root_entries.py create mode 100644 swagger_client/models/vcs_root_entry.py create mode 100644 swagger_client/models/vcs_root_instance.py create mode 100644 swagger_client/models/vcs_root_instances.py create mode 100644 swagger_client/models/vcs_roots.py create mode 100644 swagger_client/models/vcs_status.py create mode 100644 swagger_client/rest.py create mode 100644 test-requirements.txt create mode 100644 test.py create mode 100644 test/__init__.py create mode 100644 test/test_agent.py create mode 100644 test/test_agent_api.py create mode 100644 test/test_agent_pool.py create mode 100644 test/test_agent_pool_api.py create mode 100644 test/test_agent_pools.py create mode 100644 test/test_agent_requirement.py create mode 100644 test/test_agent_requirements.py create mode 100644 test/test_agents.py create mode 100644 test/test_artifact_dependencies.py create mode 100644 test/test_artifact_dependency.py create mode 100644 test/test_authorized_info.py create mode 100644 test/test_backup_process.py create mode 100644 test/test_backup_process_info.py create mode 100644 test/test_backup_process_manager.py create mode 100644 test/test_branch.py create mode 100644 test/test_branch_version.py create mode 100644 test/test_branches.py create mode 100644 test/test_build.py create mode 100644 test/test_build_api.py create mode 100644 test/test_build_cancel_request.py create mode 100644 test/test_build_queue_api.py create mode 100644 test/test_build_triggering_options.py create mode 100644 test/test_build_type.py create mode 100644 test/test_build_type_api.py create mode 100644 test/test_build_types.py create mode 100644 test/test_builds.py create mode 100644 test/test_change.py create mode 100644 test/test_change_api.py create mode 100644 test/test_changes.py create mode 100644 test/test_comment.py create mode 100644 test/test_compatibilities.py create mode 100644 test/test_compatibility.py create mode 100644 test/test_datas.py create mode 100644 test/test_debug_api.py create mode 100644 test/test_default_api.py create mode 100644 test/test_enabled_info.py create mode 100644 test/test_entries.py create mode 100644 test/test_entry.py create mode 100644 test/test_exception.py create mode 100644 test/test_feature.py create mode 100644 test/test_features.py create mode 100644 test/test_federation_api.py create mode 100644 test/test_federation_server.py create mode 100644 test/test_file.py create mode 100644 test/test_file_change.py create mode 100644 test/test_file_changes.py create mode 100644 test/test_files.py create mode 100644 test/test_group.py create mode 100644 test/test_group_api.py create mode 100644 test/test_groups.py create mode 100644 test/test_href.py create mode 100644 test/test_investigation.py create mode 100644 test/test_investigation_api.py create mode 100644 test/test_investigations.py create mode 100644 test/test_issue.py create mode 100644 test/test_issue_usage.py create mode 100644 test/test_issues.py create mode 100644 test/test_issues_usages.py create mode 100644 test/test_items.py create mode 100644 test/test_license_key.py create mode 100644 test/test_license_keys.py create mode 100644 test/test_licensing_data.py create mode 100644 test/test_link.py create mode 100644 test/test_links.py create mode 100644 test/test_meta_data.py create mode 100644 test/test_model_property.py create mode 100644 test/test_mute.py create mode 100644 test/test_mutes.py create mode 100644 test/test_new_build_type_description.py create mode 100644 test/test_new_project_description.py create mode 100644 test/test_plugin.py create mode 100644 test/test_plugins.py create mode 100644 test/test_problem.py create mode 100644 test/test_problem_api.py create mode 100644 test/test_problem_occurrence.py create mode 100644 test/test_problem_occurrence_api.py create mode 100644 test/test_problem_occurrences.py create mode 100644 test/test_problem_scope.py create mode 100644 test/test_problem_target.py create mode 100644 test/test_problems.py create mode 100644 test/test_progress_info.py create mode 100644 test/test_project.py create mode 100644 test/test_project_api.py create mode 100644 test/test_project_feature.py create mode 100644 test/test_project_features.py create mode 100644 test/test_projects.py create mode 100644 test/test_properties.py create mode 100644 test/test_repository_state.py create mode 100644 test/test_requirements.py create mode 100644 test/test_resolution.py create mode 100644 test/test_revision.py create mode 100644 test/test_revisions.py create mode 100644 test/test_role.py create mode 100644 test/test_roles.py create mode 100644 test/test_server.py create mode 100644 test/test_server_api.py create mode 100644 test/test_servers.py create mode 100644 test/test_session.py create mode 100644 test/test_sessions.py create mode 100644 test/test_snapshot_dependencies.py create mode 100644 test/test_snapshot_dependency.py create mode 100644 test/test_stack_trace_element.py create mode 100644 test/test_state_field.py create mode 100644 test/test_step.py create mode 100644 test/test_steps.py create mode 100644 test/test_tag.py create mode 100644 test/test_tags.py create mode 100644 test/test_test.py create mode 100644 test/test_test_api.py create mode 100644 test/test_test_occurrence.py create mode 100644 test/test_test_occurrence_api.py create mode 100644 test/test_test_occurrences.py create mode 100644 test/test_tests.py create mode 100644 test/test_throwable.py create mode 100644 test/test_trigger.py create mode 100644 test/test_triggered_by.py create mode 100644 test/test_triggers.py create mode 100644 test/test_type.py create mode 100644 test/test_user.py create mode 100644 test/test_user_api.py create mode 100644 test/test_users.py create mode 100644 test/test_vcs_check_status.py create mode 100644 test/test_vcs_labeling.py create mode 100644 test/test_vcs_root.py create mode 100644 test/test_vcs_root_api.py create mode 100644 test/test_vcs_root_entries.py create mode 100644 test/test_vcs_root_entry.py create mode 100644 test/test_vcs_root_instance.py create mode 100644 test/test_vcs_root_instance_api.py create mode 100644 test/test_vcs_root_instances.py create mode 100644 test/test_vcs_roots.py create mode 100644 test/test_vcs_status.py create mode 100644 tox.ini diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..590300f --- /dev/null +++ b/.gitignore @@ -0,0 +1,65 @@ +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] +*$py.class + +# C extensions +*.so +*.jar + +# Distribution / packaging +.Python +env/ +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +*.egg-info/ +.installed.cfg +*.egg + +# PyInstaller +# Usually these files are written by a python script from a template +# before PyInstaller builds the exe, so as to inject date/other infos into it. +*.manifest +*.spec + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*,cover +.hypothesis/ +venv/ +.python-version + +# Translations +*.mo +*.pot + +# Django stuff: +*.log + +# Sphinx documentation +docs/_build/ + +# PyBuilder +target/ + +#Ipython Notebook +.ipynb_checkpoints diff --git a/.swagger-codegen-ignore b/.swagger-codegen-ignore new file mode 100644 index 0000000..c5fa491 --- /dev/null +++ b/.swagger-codegen-ignore @@ -0,0 +1,23 @@ +# Swagger Codegen Ignore +# Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen + +# Use this file to prevent files from being overwritten by the generator. +# The patterns follow closely to .gitignore or .dockerignore. + +# As an example, the C# client generator defines ApiClient.cs. +# You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line: +#ApiClient.cs + +# You can match any string of characters against a directory, file or extension with a single asterisk (*): +#foo/*/qux +# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux + +# You can recursively match patterns against a directory, file or extension with a double asterisk (**): +#foo/**/qux +# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux + +# You can also negate patterns with an exclamation (!). +# For example, you can ignore all files in a docs folder with the file extension .md: +#docs/*.md +# Then explicitly reverse the ignore rule for a single file: +#!docs/README.md diff --git a/.swagger-codegen/VERSION b/.swagger-codegen/VERSION new file mode 100644 index 0000000..855ff95 --- /dev/null +++ b/.swagger-codegen/VERSION @@ -0,0 +1 @@ +2.4.0-SNAPSHOT \ No newline at end of file diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..86211e2 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,14 @@ +# ref: https://docs.travis-ci.com/user/languages/python +language: python +python: + - "2.7" + - "3.2" + - "3.3" + - "3.4" + - "3.5" + #- "3.5-dev" # 3.5 development branch + #- "nightly" # points to the latest development branch e.g. 3.6-dev +# command to install dependencies +install: "pip install -r requirements.txt" +# command to run tests +script: nosetests diff --git a/README.md b/README.md new file mode 100644 index 0000000..a63fffc --- /dev/null +++ b/README.md @@ -0,0 +1,591 @@ +# swagger-client +No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + +This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: + +- API version: 10.0 +- Package version: 1.0.0 +- Build package: io.swagger.codegen.languages.PythonClientCodegen + +## Requirements. + +Python 2.7 and 3.4+ + +## Installation & Usage +### pip install + +If the python package is hosted on Github, you can install directly from Github + +```sh +pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git +``` +(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git`) + +Then import the package: +```python +import swagger_client +``` + +### Setuptools + +Install via [Setuptools](http://pypi.python.org/pypi/setuptools). + +```sh +python setup.py install --user +``` +(or `sudo python setup.py install` to install the package for all users) + +Then import the package: +```python +import swagger_client +``` + +## Getting Started + +Please follow the [installation procedure](#installation--usage) and then run the following: + +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.AgentApi(swagger_client.ApiClient(configuration)) +agent_locator = 'agent_locator_example' # str | + +try: + api_instance.delete_agent(agent_locator) +except ApiException as e: + print("Exception when calling AgentApi->delete_agent: %s\n" % e) + +``` + +## Documentation for API Endpoints + +All URIs are relative to *https://teamcity.ptsecurity.ru* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*AgentApi* | [**delete_agent**](docs/AgentApi.md#delete_agent) | **DELETE** /app/rest/agents/{agentLocator} | +*AgentApi* | [**ge_incompatible_build_types**](docs/AgentApi.md#ge_incompatible_build_types) | **GET** /app/rest/agents/{agentLocator}/incompatibleBuildTypes | +*AgentApi* | [**get_agent_pool**](docs/AgentApi.md#get_agent_pool) | **GET** /app/rest/agents/{agentLocator}/pool | +*AgentApi* | [**get_authorized_info**](docs/AgentApi.md#get_authorized_info) | **GET** /app/rest/agents/{agentLocator}/authorizedInfo | +*AgentApi* | [**get_compatible_build_types**](docs/AgentApi.md#get_compatible_build_types) | **GET** /app/rest/agents/{agentLocator}/compatibleBuildTypes | +*AgentApi* | [**get_enabled_info**](docs/AgentApi.md#get_enabled_info) | **GET** /app/rest/agents/{agentLocator}/enabledInfo | +*AgentApi* | [**serve_agent**](docs/AgentApi.md#serve_agent) | **GET** /app/rest/agents/{agentLocator} | +*AgentApi* | [**serve_agent_field**](docs/AgentApi.md#serve_agent_field) | **GET** /app/rest/agents/{agentLocator}/{field} | +*AgentApi* | [**serve_agents**](docs/AgentApi.md#serve_agents) | **GET** /app/rest/agents | +*AgentApi* | [**set_agent_field**](docs/AgentApi.md#set_agent_field) | **PUT** /app/rest/agents/{agentLocator}/{field} | +*AgentApi* | [**set_agent_pool**](docs/AgentApi.md#set_agent_pool) | **PUT** /app/rest/agents/{agentLocator}/pool | +*AgentApi* | [**set_authorized_info**](docs/AgentApi.md#set_authorized_info) | **PUT** /app/rest/agents/{agentLocator}/authorizedInfo | +*AgentApi* | [**set_enabled_info**](docs/AgentApi.md#set_enabled_info) | **PUT** /app/rest/agents/{agentLocator}/enabledInfo | +*AgentPoolApi* | [**add_agent**](docs/AgentPoolApi.md#add_agent) | **POST** /app/rest/agentPools/{agentPoolLocator}/agents | +*AgentPoolApi* | [**add_project**](docs/AgentPoolApi.md#add_project) | **POST** /app/rest/agentPools/{agentPoolLocator}/projects | +*AgentPoolApi* | [**create_pool**](docs/AgentPoolApi.md#create_pool) | **POST** /app/rest/agentPools | +*AgentPoolApi* | [**delete_pool**](docs/AgentPoolApi.md#delete_pool) | **DELETE** /app/rest/agentPools/{agentPoolLocator} | +*AgentPoolApi* | [**delete_pool_project**](docs/AgentPoolApi.md#delete_pool_project) | **DELETE** /app/rest/agentPools/{agentPoolLocator}/projects/{projectLocator} | +*AgentPoolApi* | [**delete_projects**](docs/AgentPoolApi.md#delete_projects) | **DELETE** /app/rest/agentPools/{agentPoolLocator}/projects | +*AgentPoolApi* | [**get_field**](docs/AgentPoolApi.md#get_field) | **GET** /app/rest/agentPools/{agentPoolLocator}/{field} | +*AgentPoolApi* | [**get_pool**](docs/AgentPoolApi.md#get_pool) | **GET** /app/rest/agentPools/{agentPoolLocator} | +*AgentPoolApi* | [**get_pool_agents**](docs/AgentPoolApi.md#get_pool_agents) | **GET** /app/rest/agentPools/{agentPoolLocator}/agents | +*AgentPoolApi* | [**get_pool_project**](docs/AgentPoolApi.md#get_pool_project) | **GET** /app/rest/agentPools/{agentPoolLocator}/projects/{projectLocator} | +*AgentPoolApi* | [**get_pool_projects**](docs/AgentPoolApi.md#get_pool_projects) | **GET** /app/rest/agentPools/{agentPoolLocator}/projects | +*AgentPoolApi* | [**get_pools**](docs/AgentPoolApi.md#get_pools) | **GET** /app/rest/agentPools | +*AgentPoolApi* | [**replace_projects**](docs/AgentPoolApi.md#replace_projects) | **PUT** /app/rest/agentPools/{agentPoolLocator}/projects | +*AgentPoolApi* | [**set_field**](docs/AgentPoolApi.md#set_field) | **PUT** /app/rest/agentPools/{agentPoolLocator}/{field} | +*BuildApi* | [**add_tags**](docs/BuildApi.md#add_tags) | **POST** /app/rest/builds/{buildLocator}/tags | +*BuildApi* | [**cancel_build**](docs/BuildApi.md#cancel_build) | **POST** /app/rest/builds/{buildLocator} | +*BuildApi* | [**cancel_build_0**](docs/BuildApi.md#cancel_build_0) | **GET** /app/rest/builds/{buildLocator}/example/buildCancelRequest | +*BuildApi* | [**delete_build**](docs/BuildApi.md#delete_build) | **DELETE** /app/rest/builds/{buildLocator} | +*BuildApi* | [**delete_builds**](docs/BuildApi.md#delete_builds) | **DELETE** /app/rest/builds | +*BuildApi* | [**delete_comment**](docs/BuildApi.md#delete_comment) | **DELETE** /app/rest/builds/{buildLocator}/comment | +*BuildApi* | [**get_artifacts_directory**](docs/BuildApi.md#get_artifacts_directory) | **GET** /app/rest/builds/{buildLocator}/artifactsDirectory | +*BuildApi* | [**get_canceled_info**](docs/BuildApi.md#get_canceled_info) | **GET** /app/rest/builds/{buildLocator}/canceledInfo | +*BuildApi* | [**get_children**](docs/BuildApi.md#get_children) | **GET** /app/rest/builds/{buildLocator}/artifacts/children{path} | +*BuildApi* | [**get_children_alias**](docs/BuildApi.md#get_children_alias) | **GET** /app/rest/builds/{buildLocator}/artifacts/{path} | +*BuildApi* | [**get_content**](docs/BuildApi.md#get_content) | **GET** /app/rest/builds/{buildLocator}/artifacts/content{path} | +*BuildApi* | [**get_content_alias**](docs/BuildApi.md#get_content_alias) | **GET** /app/rest/builds/{buildLocator}/artifacts/files{path} | +*BuildApi* | [**get_metadata**](docs/BuildApi.md#get_metadata) | **GET** /app/rest/builds/{buildLocator}/artifacts/metadata{path} | +*BuildApi* | [**get_parameter**](docs/BuildApi.md#get_parameter) | **GET** /app/rest/builds/{buildLocator}/resulting-properties/{propertyName} | +*BuildApi* | [**get_pinned**](docs/BuildApi.md#get_pinned) | **GET** /app/rest/builds/{buildLocator}/pin | +*BuildApi* | [**get_problems**](docs/BuildApi.md#get_problems) | **GET** /app/rest/builds/{buildLocator}/problemOccurrences | +*BuildApi* | [**get_root**](docs/BuildApi.md#get_root) | **GET** /app/rest/builds/{buildLocator}/artifacts | +*BuildApi* | [**get_tests**](docs/BuildApi.md#get_tests) | **GET** /app/rest/builds/{buildLocator}/testOccurrences | +*BuildApi* | [**get_zipped**](docs/BuildApi.md#get_zipped) | **GET** /app/rest/builds/{buildLocator}/artifacts/archived{path} | +*BuildApi* | [**pin_build**](docs/BuildApi.md#pin_build) | **PUT** /app/rest/builds/{buildLocator}/pin | +*BuildApi* | [**replace_comment**](docs/BuildApi.md#replace_comment) | **PUT** /app/rest/builds/{buildLocator}/comment | +*BuildApi* | [**replace_tags**](docs/BuildApi.md#replace_tags) | **PUT** /app/rest/builds/{buildLocator}/tags | +*BuildApi* | [**serve_aggregated_build_status**](docs/BuildApi.md#serve_aggregated_build_status) | **GET** /app/rest/builds/aggregated/{buildLocator}/status | +*BuildApi* | [**serve_aggregated_build_status_icon**](docs/BuildApi.md#serve_aggregated_build_status_icon) | **GET** /app/rest/builds/aggregated/{buildLocator}/statusIcon{suffix} | +*BuildApi* | [**serve_all_builds**](docs/BuildApi.md#serve_all_builds) | **GET** /app/rest/builds | +*BuildApi* | [**serve_build**](docs/BuildApi.md#serve_build) | **GET** /app/rest/builds/{buildLocator} | +*BuildApi* | [**serve_build_actual_parameters**](docs/BuildApi.md#serve_build_actual_parameters) | **GET** /app/rest/builds/{buildLocator}/resulting-properties | +*BuildApi* | [**serve_build_field_by_build_only**](docs/BuildApi.md#serve_build_field_by_build_only) | **GET** /app/rest/builds/{buildLocator}/{field} | +*BuildApi* | [**serve_build_related_issues**](docs/BuildApi.md#serve_build_related_issues) | **GET** /app/rest/builds/{buildLocator}/relatedIssues | +*BuildApi* | [**serve_build_related_issues_old**](docs/BuildApi.md#serve_build_related_issues_old) | **GET** /app/rest/builds/{buildLocator}/related-issues | +*BuildApi* | [**serve_build_statistic_value**](docs/BuildApi.md#serve_build_statistic_value) | **GET** /app/rest/builds/{buildLocator}/statistics/{name} | +*BuildApi* | [**serve_build_statistic_values**](docs/BuildApi.md#serve_build_statistic_values) | **GET** /app/rest/builds/{buildLocator}/statistics | +*BuildApi* | [**serve_build_status_icon**](docs/BuildApi.md#serve_build_status_icon) | **GET** /app/rest/builds/{buildLocator}/statusIcon{suffix} | +*BuildApi* | [**serve_source_file**](docs/BuildApi.md#serve_source_file) | **GET** /app/rest/builds/{buildLocator}/sources/files/{fileName} | +*BuildApi* | [**serve_tags**](docs/BuildApi.md#serve_tags) | **GET** /app/rest/builds/{buildLocator}/tags | +*BuildApi* | [**unpin_build**](docs/BuildApi.md#unpin_build) | **DELETE** /app/rest/builds/{buildLocator}/pin | +*BuildQueueApi* | [**add_tags**](docs/BuildQueueApi.md#add_tags) | **POST** /app/rest/buildQueue/{buildLocator}/tags | +*BuildQueueApi* | [**cancel_build**](docs/BuildQueueApi.md#cancel_build) | **GET** /app/rest/buildQueue/{buildLocator}/example/buildCancelRequest | +*BuildQueueApi* | [**cancel_build_0**](docs/BuildQueueApi.md#cancel_build_0) | **POST** /app/rest/buildQueue/{queuedBuildLocator} | +*BuildQueueApi* | [**delete_build**](docs/BuildQueueApi.md#delete_build) | **DELETE** /app/rest/buildQueue/{queuedBuildLocator} | +*BuildQueueApi* | [**delete_builds_experimental**](docs/BuildQueueApi.md#delete_builds_experimental) | **DELETE** /app/rest/buildQueue | +*BuildQueueApi* | [**get_build**](docs/BuildQueueApi.md#get_build) | **GET** /app/rest/buildQueue/{queuedBuildLocator} | +*BuildQueueApi* | [**get_builds**](docs/BuildQueueApi.md#get_builds) | **GET** /app/rest/buildQueue | +*BuildQueueApi* | [**queue_new_build**](docs/BuildQueueApi.md#queue_new_build) | **POST** /app/rest/buildQueue | +*BuildQueueApi* | [**replace_builds**](docs/BuildQueueApi.md#replace_builds) | **PUT** /app/rest/buildQueue | +*BuildQueueApi* | [**replace_tags**](docs/BuildQueueApi.md#replace_tags) | **PUT** /app/rest/buildQueue/{buildLocator}/tags | +*BuildQueueApi* | [**serve_build_field_by_build_only**](docs/BuildQueueApi.md#serve_build_field_by_build_only) | **GET** /app/rest/buildQueue/{buildLocator}/{field} | +*BuildQueueApi* | [**serve_compatible_agents**](docs/BuildQueueApi.md#serve_compatible_agents) | **GET** /app/rest/buildQueue/{queuedBuildLocator}/compatibleAgents | +*BuildQueueApi* | [**serve_tags**](docs/BuildQueueApi.md#serve_tags) | **GET** /app/rest/buildQueue/{buildLocator}/tags | +*BuildQueueApi* | [**set_build_queue_order**](docs/BuildQueueApi.md#set_build_queue_order) | **PUT** /app/rest/buildQueue/order | +*BuildTypeApi* | [**add_agent_requirement**](docs/BuildTypeApi.md#add_agent_requirement) | **POST** /app/rest/buildTypes/{btLocator}/agent-requirements | +*BuildTypeApi* | [**add_artifact_dep**](docs/BuildTypeApi.md#add_artifact_dep) | **POST** /app/rest/buildTypes/{btLocator}/artifact-dependencies | +*BuildTypeApi* | [**add_build_type**](docs/BuildTypeApi.md#add_build_type) | **POST** /app/rest/buildTypes | +*BuildTypeApi* | [**add_feature**](docs/BuildTypeApi.md#add_feature) | **POST** /app/rest/buildTypes/{btLocator}/features | +*BuildTypeApi* | [**add_feature_parameter**](docs/BuildTypeApi.md#add_feature_parameter) | **PUT** /app/rest/buildTypes/{btLocator}/features/{featureId}/parameters/{parameterName} | +*BuildTypeApi* | [**add_snapshot_dep**](docs/BuildTypeApi.md#add_snapshot_dep) | **POST** /app/rest/buildTypes/{btLocator}/snapshot-dependencies | +*BuildTypeApi* | [**add_step**](docs/BuildTypeApi.md#add_step) | **POST** /app/rest/buildTypes/{btLocator}/steps | +*BuildTypeApi* | [**add_step_parameter**](docs/BuildTypeApi.md#add_step_parameter) | **PUT** /app/rest/buildTypes/{btLocator}/steps/{stepId}/parameters/{parameterName} | +*BuildTypeApi* | [**add_trigger**](docs/BuildTypeApi.md#add_trigger) | **POST** /app/rest/buildTypes/{btLocator}/triggers | +*BuildTypeApi* | [**add_vcs_root_entry**](docs/BuildTypeApi.md#add_vcs_root_entry) | **POST** /app/rest/buildTypes/{btLocator}/vcs-root-entries | +*BuildTypeApi* | [**change_artifact_dep_setting**](docs/BuildTypeApi.md#change_artifact_dep_setting) | **PUT** /app/rest/buildTypes/{btLocator}/artifact-dependencies/{artifactDepLocator}/{fieldName} | +*BuildTypeApi* | [**change_feature_setting**](docs/BuildTypeApi.md#change_feature_setting) | **PUT** /app/rest/buildTypes/{btLocator}/features/{featureId}/{name} | +*BuildTypeApi* | [**change_requirement_setting**](docs/BuildTypeApi.md#change_requirement_setting) | **PUT** /app/rest/buildTypes/{btLocator}/agent-requirements/{agentRequirementLocator}/{fieldName} | +*BuildTypeApi* | [**change_step_setting**](docs/BuildTypeApi.md#change_step_setting) | **PUT** /app/rest/buildTypes/{btLocator}/steps/{stepId}/{fieldName} | +*BuildTypeApi* | [**change_trigger_setting**](docs/BuildTypeApi.md#change_trigger_setting) | **PUT** /app/rest/buildTypes/{btLocator}/triggers/{triggerLocator}/{fieldName} | +*BuildTypeApi* | [**delete_agent_requirement**](docs/BuildTypeApi.md#delete_agent_requirement) | **DELETE** /app/rest/buildTypes/{btLocator}/agent-requirements/{agentRequirementLocator} | +*BuildTypeApi* | [**delete_all_parameters**](docs/BuildTypeApi.md#delete_all_parameters) | **DELETE** /app/rest/buildTypes/{btLocator}/parameters | +*BuildTypeApi* | [**delete_all_parameters_0**](docs/BuildTypeApi.md#delete_all_parameters_0) | **DELETE** /app/rest/buildTypes/{btLocator}/settings | +*BuildTypeApi* | [**delete_artifact_dep**](docs/BuildTypeApi.md#delete_artifact_dep) | **DELETE** /app/rest/buildTypes/{btLocator}/artifact-dependencies/{artifactDepLocator} | +*BuildTypeApi* | [**delete_build_type**](docs/BuildTypeApi.md#delete_build_type) | **DELETE** /app/rest/buildTypes/{btLocator} | +*BuildTypeApi* | [**delete_feature**](docs/BuildTypeApi.md#delete_feature) | **DELETE** /app/rest/buildTypes/{btLocator}/features/{featureId} | +*BuildTypeApi* | [**delete_parameter**](docs/BuildTypeApi.md#delete_parameter) | **DELETE** /app/rest/buildTypes/{btLocator}/parameters/{name} | +*BuildTypeApi* | [**delete_parameter_0**](docs/BuildTypeApi.md#delete_parameter_0) | **DELETE** /app/rest/buildTypes/{btLocator}/settings/{name} | +*BuildTypeApi* | [**delete_snapshot_dep**](docs/BuildTypeApi.md#delete_snapshot_dep) | **DELETE** /app/rest/buildTypes/{btLocator}/snapshot-dependencies/{snapshotDepLocator} | +*BuildTypeApi* | [**delete_step**](docs/BuildTypeApi.md#delete_step) | **DELETE** /app/rest/buildTypes/{btLocator}/steps/{stepId} | +*BuildTypeApi* | [**delete_template_association**](docs/BuildTypeApi.md#delete_template_association) | **DELETE** /app/rest/buildTypes/{btLocator}/template | +*BuildTypeApi* | [**delete_trigger**](docs/BuildTypeApi.md#delete_trigger) | **DELETE** /app/rest/buildTypes/{btLocator}/triggers/{triggerLocator} | +*BuildTypeApi* | [**delete_vcs_root_entry**](docs/BuildTypeApi.md#delete_vcs_root_entry) | **DELETE** /app/rest/buildTypes/{btLocator}/vcs-root-entries/{vcsRootLocator} | +*BuildTypeApi* | [**get_agent_requirement**](docs/BuildTypeApi.md#get_agent_requirement) | **GET** /app/rest/buildTypes/{btLocator}/agent-requirements/{agentRequirementLocator} | +*BuildTypeApi* | [**get_agent_requirements**](docs/BuildTypeApi.md#get_agent_requirements) | **GET** /app/rest/buildTypes/{btLocator}/agent-requirements | +*BuildTypeApi* | [**get_aliases**](docs/BuildTypeApi.md#get_aliases) | **GET** /app/rest/buildTypes/{btLocator}/aliases | +*BuildTypeApi* | [**get_artifact_dep**](docs/BuildTypeApi.md#get_artifact_dep) | **GET** /app/rest/buildTypes/{btLocator}/artifact-dependencies/{artifactDepLocator} | +*BuildTypeApi* | [**get_artifact_dep_setting**](docs/BuildTypeApi.md#get_artifact_dep_setting) | **GET** /app/rest/buildTypes/{btLocator}/artifact-dependencies/{artifactDepLocator}/{fieldName} | +*BuildTypeApi* | [**get_artifact_deps**](docs/BuildTypeApi.md#get_artifact_deps) | **GET** /app/rest/buildTypes/{btLocator}/artifact-dependencies | +*BuildTypeApi* | [**get_build_types**](docs/BuildTypeApi.md#get_build_types) | **GET** /app/rest/buildTypes | +*BuildTypeApi* | [**get_children**](docs/BuildTypeApi.md#get_children) | **GET** /app/rest/buildTypes/{btLocator}/vcs/files/latest/children{path} | +*BuildTypeApi* | [**get_children_alias**](docs/BuildTypeApi.md#get_children_alias) | **GET** /app/rest/buildTypes/{btLocator}/vcs/files/latest/{path} | +*BuildTypeApi* | [**get_content**](docs/BuildTypeApi.md#get_content) | **GET** /app/rest/buildTypes/{btLocator}/vcs/files/latest/content{path} | +*BuildTypeApi* | [**get_content_alias**](docs/BuildTypeApi.md#get_content_alias) | **GET** /app/rest/buildTypes/{btLocator}/vcs/files/latest/files{path} | +*BuildTypeApi* | [**get_current_vcs_instances**](docs/BuildTypeApi.md#get_current_vcs_instances) | **GET** /app/rest/buildTypes/{btLocator}/vcs-root-instances | +*BuildTypeApi* | [**get_example_new_project_description**](docs/BuildTypeApi.md#get_example_new_project_description) | **GET** /app/rest/buildTypes/{btLocator}/example/newBuildTypeDescription | +*BuildTypeApi* | [**get_example_new_project_description_compatibility_version1**](docs/BuildTypeApi.md#get_example_new_project_description_compatibility_version1) | **GET** /app/rest/buildTypes/{btLocator}/newBuildTypeDescription | +*BuildTypeApi* | [**get_feature**](docs/BuildTypeApi.md#get_feature) | **GET** /app/rest/buildTypes/{btLocator}/features/{featureId} | +*BuildTypeApi* | [**get_feature_parameter**](docs/BuildTypeApi.md#get_feature_parameter) | **GET** /app/rest/buildTypes/{btLocator}/features/{featureId}/parameters/{parameterName} | +*BuildTypeApi* | [**get_feature_parameters**](docs/BuildTypeApi.md#get_feature_parameters) | **GET** /app/rest/buildTypes/{btLocator}/features/{featureId}/parameters | +*BuildTypeApi* | [**get_feature_setting**](docs/BuildTypeApi.md#get_feature_setting) | **GET** /app/rest/buildTypes/{btLocator}/features/{featureId}/{name} | +*BuildTypeApi* | [**get_features**](docs/BuildTypeApi.md#get_features) | **GET** /app/rest/buildTypes/{btLocator}/features | +*BuildTypeApi* | [**get_investigations**](docs/BuildTypeApi.md#get_investigations) | **GET** /app/rest/buildTypes/{btLocator}/investigations | +*BuildTypeApi* | [**get_metadata**](docs/BuildTypeApi.md#get_metadata) | **GET** /app/rest/buildTypes/{btLocator}/vcs/files/latest/metadata{path} | +*BuildTypeApi* | [**get_parameter**](docs/BuildTypeApi.md#get_parameter) | **GET** /app/rest/buildTypes/{btLocator}/parameters/{name} | +*BuildTypeApi* | [**get_parameter_0**](docs/BuildTypeApi.md#get_parameter_0) | **GET** /app/rest/buildTypes/{btLocator}/settings/{name} | +*BuildTypeApi* | [**get_parameter_type**](docs/BuildTypeApi.md#get_parameter_type) | **GET** /app/rest/buildTypes/{btLocator}/parameters/{name}/type | +*BuildTypeApi* | [**get_parameter_type_raw_value**](docs/BuildTypeApi.md#get_parameter_type_raw_value) | **GET** /app/rest/buildTypes/{btLocator}/parameters/{name}/type/rawValue | +*BuildTypeApi* | [**get_parameter_value_long**](docs/BuildTypeApi.md#get_parameter_value_long) | **GET** /app/rest/buildTypes/{btLocator}/parameters/{name}/value | +*BuildTypeApi* | [**get_parameter_value_long_0**](docs/BuildTypeApi.md#get_parameter_value_long_0) | **GET** /app/rest/buildTypes/{btLocator}/settings/{name}/value | +*BuildTypeApi* | [**get_parameters**](docs/BuildTypeApi.md#get_parameters) | **GET** /app/rest/buildTypes/{btLocator}/parameters | +*BuildTypeApi* | [**get_parameters_0**](docs/BuildTypeApi.md#get_parameters_0) | **GET** /app/rest/buildTypes/{btLocator}/settings | +*BuildTypeApi* | [**get_requirement_setting**](docs/BuildTypeApi.md#get_requirement_setting) | **GET** /app/rest/buildTypes/{btLocator}/agent-requirements/{agentRequirementLocator}/{fieldName} | +*BuildTypeApi* | [**get_root**](docs/BuildTypeApi.md#get_root) | **GET** /app/rest/buildTypes/{btLocator}/vcs/files/latest | +*BuildTypeApi* | [**get_settings_file**](docs/BuildTypeApi.md#get_settings_file) | **GET** /app/rest/buildTypes/{btLocator}/settingsFile | +*BuildTypeApi* | [**get_snapshot_dep**](docs/BuildTypeApi.md#get_snapshot_dep) | **GET** /app/rest/buildTypes/{btLocator}/snapshot-dependencies/{snapshotDepLocator} | +*BuildTypeApi* | [**get_snapshot_deps**](docs/BuildTypeApi.md#get_snapshot_deps) | **GET** /app/rest/buildTypes/{btLocator}/snapshot-dependencies | +*BuildTypeApi* | [**get_step**](docs/BuildTypeApi.md#get_step) | **GET** /app/rest/buildTypes/{btLocator}/steps/{stepId} | +*BuildTypeApi* | [**get_step_parameter**](docs/BuildTypeApi.md#get_step_parameter) | **GET** /app/rest/buildTypes/{btLocator}/steps/{stepId}/parameters/{parameterName} | +*BuildTypeApi* | [**get_step_parameters**](docs/BuildTypeApi.md#get_step_parameters) | **GET** /app/rest/buildTypes/{btLocator}/steps/{stepId}/parameters | +*BuildTypeApi* | [**get_step_setting**](docs/BuildTypeApi.md#get_step_setting) | **GET** /app/rest/buildTypes/{btLocator}/steps/{stepId}/{fieldName} | +*BuildTypeApi* | [**get_steps**](docs/BuildTypeApi.md#get_steps) | **GET** /app/rest/buildTypes/{btLocator}/steps | +*BuildTypeApi* | [**get_template_association**](docs/BuildTypeApi.md#get_template_association) | **PUT** /app/rest/buildTypes/{btLocator}/template | +*BuildTypeApi* | [**get_trigger**](docs/BuildTypeApi.md#get_trigger) | **GET** /app/rest/buildTypes/{btLocator}/triggers/{triggerLocator} | +*BuildTypeApi* | [**get_trigger_setting**](docs/BuildTypeApi.md#get_trigger_setting) | **GET** /app/rest/buildTypes/{btLocator}/triggers/{triggerLocator}/{fieldName} | +*BuildTypeApi* | [**get_triggers**](docs/BuildTypeApi.md#get_triggers) | **GET** /app/rest/buildTypes/{btLocator}/triggers | +*BuildTypeApi* | [**get_vcs_labeling_options**](docs/BuildTypeApi.md#get_vcs_labeling_options) | **GET** /app/rest/buildTypes/{btLocator}/vcsLabeling | +*BuildTypeApi* | [**get_vcs_root_entries**](docs/BuildTypeApi.md#get_vcs_root_entries) | **GET** /app/rest/buildTypes/{btLocator}/vcs-root-entries | +*BuildTypeApi* | [**get_vcs_root_entry**](docs/BuildTypeApi.md#get_vcs_root_entry) | **GET** /app/rest/buildTypes/{btLocator}/vcs-root-entries/{vcsRootLocator} | +*BuildTypeApi* | [**get_vcs_root_entry_checkout_rules**](docs/BuildTypeApi.md#get_vcs_root_entry_checkout_rules) | **GET** /app/rest/buildTypes/{btLocator}/vcs-root-entries/{vcsRootLocator}/checkout-rules | +*BuildTypeApi* | [**get_zipped**](docs/BuildTypeApi.md#get_zipped) | **GET** /app/rest/buildTypes/{btLocator}/vcs/files/latest/archived{path} | +*BuildTypeApi* | [**replace_agent_requirement**](docs/BuildTypeApi.md#replace_agent_requirement) | **PUT** /app/rest/buildTypes/{btLocator}/agent-requirements/{agentRequirementLocator} | +*BuildTypeApi* | [**replace_agent_requirements**](docs/BuildTypeApi.md#replace_agent_requirements) | **PUT** /app/rest/buildTypes/{btLocator}/agent-requirements | +*BuildTypeApi* | [**replace_artifact_dep**](docs/BuildTypeApi.md#replace_artifact_dep) | **PUT** /app/rest/buildTypes/{btLocator}/artifact-dependencies/{artifactDepLocator} | +*BuildTypeApi* | [**replace_artifact_deps**](docs/BuildTypeApi.md#replace_artifact_deps) | **PUT** /app/rest/buildTypes/{btLocator}/artifact-dependencies | +*BuildTypeApi* | [**replace_feature**](docs/BuildTypeApi.md#replace_feature) | **PUT** /app/rest/buildTypes/{btLocator}/features/{featureId} | +*BuildTypeApi* | [**replace_feature_parameters**](docs/BuildTypeApi.md#replace_feature_parameters) | **PUT** /app/rest/buildTypes/{btLocator}/features/{featureId}/parameters | +*BuildTypeApi* | [**replace_features**](docs/BuildTypeApi.md#replace_features) | **PUT** /app/rest/buildTypes/{btLocator}/features | +*BuildTypeApi* | [**replace_snapshot_dep**](docs/BuildTypeApi.md#replace_snapshot_dep) | **PUT** /app/rest/buildTypes/{btLocator}/snapshot-dependencies/{snapshotDepLocator} | +*BuildTypeApi* | [**replace_snapshot_deps**](docs/BuildTypeApi.md#replace_snapshot_deps) | **PUT** /app/rest/buildTypes/{btLocator}/snapshot-dependencies | +*BuildTypeApi* | [**replace_step**](docs/BuildTypeApi.md#replace_step) | **PUT** /app/rest/buildTypes/{btLocator}/steps/{stepId} | +*BuildTypeApi* | [**replace_step_parameters**](docs/BuildTypeApi.md#replace_step_parameters) | **PUT** /app/rest/buildTypes/{btLocator}/steps/{stepId}/parameters | +*BuildTypeApi* | [**replace_steps**](docs/BuildTypeApi.md#replace_steps) | **PUT** /app/rest/buildTypes/{btLocator}/steps | +*BuildTypeApi* | [**replace_trigger**](docs/BuildTypeApi.md#replace_trigger) | **PUT** /app/rest/buildTypes/{btLocator}/triggers/{triggerLocator} | +*BuildTypeApi* | [**replace_triggers**](docs/BuildTypeApi.md#replace_triggers) | **PUT** /app/rest/buildTypes/{btLocator}/triggers | +*BuildTypeApi* | [**replace_vcs_root_entries**](docs/BuildTypeApi.md#replace_vcs_root_entries) | **PUT** /app/rest/buildTypes/{btLocator}/vcs-root-entries | +*BuildTypeApi* | [**serve_branches**](docs/BuildTypeApi.md#serve_branches) | **GET** /app/rest/buildTypes/{btLocator}/branches | +*BuildTypeApi* | [**serve_build_field**](docs/BuildTypeApi.md#serve_build_field) | **GET** /app/rest/buildTypes/{btLocator}/builds/{buildLocator}/{field} | +*BuildTypeApi* | [**serve_build_type_builds_tags**](docs/BuildTypeApi.md#serve_build_type_builds_tags) | **GET** /app/rest/buildTypes/{btLocator}/buildTags | +*BuildTypeApi* | [**serve_build_type_field**](docs/BuildTypeApi.md#serve_build_type_field) | **GET** /app/rest/buildTypes/{btLocator}/{field} | +*BuildTypeApi* | [**serve_build_type_template**](docs/BuildTypeApi.md#serve_build_type_template) | **GET** /app/rest/buildTypes/{btLocator}/template | +*BuildTypeApi* | [**serve_build_type_xml**](docs/BuildTypeApi.md#serve_build_type_xml) | **GET** /app/rest/buildTypes/{btLocator} | +*BuildTypeApi* | [**serve_build_with_project**](docs/BuildTypeApi.md#serve_build_with_project) | **GET** /app/rest/buildTypes/{btLocator}/builds/{buildLocator} | +*BuildTypeApi* | [**serve_builds**](docs/BuildTypeApi.md#serve_builds) | **GET** /app/rest/buildTypes/{btLocator}/builds | +*BuildTypeApi* | [**set_build_type_field**](docs/BuildTypeApi.md#set_build_type_field) | **PUT** /app/rest/buildTypes/{btLocator}/{field} | +*BuildTypeApi* | [**set_parameter**](docs/BuildTypeApi.md#set_parameter) | **POST** /app/rest/buildTypes/{btLocator}/parameters | +*BuildTypeApi* | [**set_parameter_0**](docs/BuildTypeApi.md#set_parameter_0) | **PUT** /app/rest/buildTypes/{btLocator}/parameters/{name} | +*BuildTypeApi* | [**set_parameter_1**](docs/BuildTypeApi.md#set_parameter_1) | **POST** /app/rest/buildTypes/{btLocator}/settings | +*BuildTypeApi* | [**set_parameter_2**](docs/BuildTypeApi.md#set_parameter_2) | **PUT** /app/rest/buildTypes/{btLocator}/settings/{name} | +*BuildTypeApi* | [**set_parameter_type**](docs/BuildTypeApi.md#set_parameter_type) | **PUT** /app/rest/buildTypes/{btLocator}/parameters/{name}/type | +*BuildTypeApi* | [**set_parameter_type_raw_value**](docs/BuildTypeApi.md#set_parameter_type_raw_value) | **PUT** /app/rest/buildTypes/{btLocator}/parameters/{name}/type/rawValue | +*BuildTypeApi* | [**set_parameter_value_long**](docs/BuildTypeApi.md#set_parameter_value_long) | **PUT** /app/rest/buildTypes/{btLocator}/parameters/{name}/value | +*BuildTypeApi* | [**set_parameter_value_long_0**](docs/BuildTypeApi.md#set_parameter_value_long_0) | **PUT** /app/rest/buildTypes/{btLocator}/settings/{name}/value | +*BuildTypeApi* | [**set_parameters**](docs/BuildTypeApi.md#set_parameters) | **PUT** /app/rest/buildTypes/{btLocator}/parameters | +*BuildTypeApi* | [**set_parameters_0**](docs/BuildTypeApi.md#set_parameters_0) | **PUT** /app/rest/buildTypes/{btLocator}/settings | +*BuildTypeApi* | [**set_vcs_labeling_options**](docs/BuildTypeApi.md#set_vcs_labeling_options) | **PUT** /app/rest/buildTypes/{btLocator}/vcsLabeling | +*BuildTypeApi* | [**update_vcs_root_entry**](docs/BuildTypeApi.md#update_vcs_root_entry) | **PUT** /app/rest/buildTypes/{btLocator}/vcs-root-entries/{vcsRootLocator} | +*BuildTypeApi* | [**update_vcs_root_entry_checkout_rules**](docs/BuildTypeApi.md#update_vcs_root_entry_checkout_rules) | **PUT** /app/rest/buildTypes/{btLocator}/vcs-root-entries/{vcsRootLocator}/checkout-rules | +*ChangeApi* | [**get_change_attributes**](docs/ChangeApi.md#get_change_attributes) | **GET** /app/rest/changes/{changeLocator}/attributes | +*ChangeApi* | [**get_change_duplicates**](docs/ChangeApi.md#get_change_duplicates) | **GET** /app/rest/changes/{changeLocator}/duplicates | +*ChangeApi* | [**get_change_field**](docs/ChangeApi.md#get_change_field) | **GET** /app/rest/changes/{changeLocator}/{field} | +*ChangeApi* | [**get_change_first_builds**](docs/ChangeApi.md#get_change_first_builds) | **GET** /app/rest/changes/{changeLocator}/firstBuilds | +*ChangeApi* | [**get_change_issue**](docs/ChangeApi.md#get_change_issue) | **GET** /app/rest/changes/{changeLocator}/issues | +*ChangeApi* | [**get_change_parent_revisions**](docs/ChangeApi.md#get_change_parent_revisions) | **GET** /app/rest/changes/{changeLocator}/parentRevisions | +*ChangeApi* | [**get_change_vcs_root**](docs/ChangeApi.md#get_change_vcs_root) | **GET** /app/rest/changes/{changeLocator}/vcsRoot | +*ChangeApi* | [**get_change_vcs_root_instance**](docs/ChangeApi.md#get_change_vcs_root_instance) | **GET** /app/rest/changes/{changeLocator}/vcsRootInstance | +*ChangeApi* | [**get_parent_changes**](docs/ChangeApi.md#get_parent_changes) | **GET** /app/rest/changes/{changeLocator}/parentChanges | +*ChangeApi* | [**get_related_build_types**](docs/ChangeApi.md#get_related_build_types) | **GET** /app/rest/changes/{changeLocator}/buildTypes | +*ChangeApi* | [**serve_change**](docs/ChangeApi.md#serve_change) | **GET** /app/rest/changes/{changeLocator} | +*ChangeApi* | [**serve_changes**](docs/ChangeApi.md#serve_changes) | **GET** /app/rest/changes | +*DebugApi* | [**delete_current_remember_me**](docs/DebugApi.md#delete_current_remember_me) | **DELETE** /app/rest/debug/currentRequest/rememberMe | +*DebugApi* | [**empty_task**](docs/DebugApi.md#empty_task) | **POST** /app/rest/debug/emptyTask | +*DebugApi* | [**execute_db_query**](docs/DebugApi.md#execute_db_query) | **GET** /app/rest/debug/database/query/{query} | +*DebugApi* | [**get_current_session**](docs/DebugApi.md#get_current_session) | **GET** /app/rest/debug/currentRequest/session | +*DebugApi* | [**get_current_session_max_inactive_interval**](docs/DebugApi.md#get_current_session_max_inactive_interval) | **GET** /app/rest/debug/currentRequest/session/maxInactiveSeconds | +*DebugApi* | [**get_current_user_permissions**](docs/DebugApi.md#get_current_user_permissions) | **GET** /app/rest/debug/currentUserPermissions | +*DebugApi* | [**get_date**](docs/DebugApi.md#get_date) | **GET** /app/rest/debug/date/{dateLocator} | +*DebugApi* | [**get_environment_variables**](docs/DebugApi.md#get_environment_variables) | **GET** /app/rest/debug/jvm/environmentVariables | +*DebugApi* | [**get_hashed**](docs/DebugApi.md#get_hashed) | **GET** /app/rest/debug/values/transform/{method} | +*DebugApi* | [**get_request_details**](docs/DebugApi.md#get_request_details) | **GET** /app/rest/debug/currentRequest/details | +*DebugApi* | [**get_scrambled**](docs/DebugApi.md#get_scrambled) | **GET** /app/rest/debug/values/password/scrambled | +*DebugApi* | [**get_sessions**](docs/DebugApi.md#get_sessions) | **GET** /app/rest/debug/sessions | +*DebugApi* | [**get_system_properties**](docs/DebugApi.md#get_system_properties) | **GET** /app/rest/debug/jvm/systemProperties | +*DebugApi* | [**get_thread_dump**](docs/DebugApi.md#get_thread_dump) | **GET** /app/rest/debug/threadDump | +*DebugApi* | [**get_unscrambled**](docs/DebugApi.md#get_unscrambled) | **GET** /app/rest/debug/values/password/unscrambled | +*DebugApi* | [**invalidate_current_session**](docs/DebugApi.md#invalidate_current_session) | **DELETE** /app/rest/debug/currentRequest/session | +*DebugApi* | [**list_db_tables**](docs/DebugApi.md#list_db_tables) | **GET** /app/rest/debug/database/tables | +*DebugApi* | [**new_remember_me**](docs/DebugApi.md#new_remember_me) | **POST** /app/rest/debug/currentRequest/rememberMe | +*DebugApi* | [**save_memory_dump**](docs/DebugApi.md#save_memory_dump) | **POST** /app/rest/debug/memory/dumps | +*DebugApi* | [**schedule_checking_for_changes**](docs/DebugApi.md#schedule_checking_for_changes) | **POST** /app/rest/debug/vcsCheckingForChangesQueue | +*DebugApi* | [**set_current_session_max_inactive_interval**](docs/DebugApi.md#set_current_session_max_inactive_interval) | **PUT** /app/rest/debug/currentRequest/session/maxInactiveSeconds | +*FederationApi* | [**add_server**](docs/FederationApi.md#add_server) | **PUT** /app/rest/federation/servers | +*FederationApi* | [**servers**](docs/FederationApi.md#servers) | **GET** /app/rest/federation/servers | +*GroupApi* | [**add_group**](docs/GroupApi.md#add_group) | **POST** /app/rest/userGroups | +*GroupApi* | [**add_role**](docs/GroupApi.md#add_role) | **POST** /app/rest/userGroups/{groupLocator}/roles | +*GroupApi* | [**add_role_put**](docs/GroupApi.md#add_role_put) | **PUT** /app/rest/userGroups/{groupLocator}/roles | +*GroupApi* | [**add_role_simple**](docs/GroupApi.md#add_role_simple) | **POST** /app/rest/userGroups/{groupLocator}/roles/{roleId}/{scope} | +*GroupApi* | [**delete_group**](docs/GroupApi.md#delete_group) | **DELETE** /app/rest/userGroups/{groupLocator} | +*GroupApi* | [**delete_role**](docs/GroupApi.md#delete_role) | **DELETE** /app/rest/userGroups/{groupLocator}/roles/{roleId}/{scope} | +*GroupApi* | [**get_permissions**](docs/GroupApi.md#get_permissions) | **GET** /app/rest/userGroups/{groupLocator}/debug/permissions | +*GroupApi* | [**get_properties**](docs/GroupApi.md#get_properties) | **GET** /app/rest/userGroups/{groupLocator}/properties | +*GroupApi* | [**list_role**](docs/GroupApi.md#list_role) | **GET** /app/rest/userGroups/{groupLocator}/roles/{roleId}/{scope} | +*GroupApi* | [**list_roles**](docs/GroupApi.md#list_roles) | **GET** /app/rest/userGroups/{groupLocator}/roles | +*GroupApi* | [**put_user_property**](docs/GroupApi.md#put_user_property) | **PUT** /app/rest/userGroups/{groupLocator}/properties/{name} | +*GroupApi* | [**remove_user_property**](docs/GroupApi.md#remove_user_property) | **DELETE** /app/rest/userGroups/{groupLocator}/properties/{name} | +*GroupApi* | [**serve_group**](docs/GroupApi.md#serve_group) | **GET** /app/rest/userGroups/{groupLocator} | +*GroupApi* | [**serve_groups**](docs/GroupApi.md#serve_groups) | **GET** /app/rest/userGroups | +*GroupApi* | [**serve_user_properties**](docs/GroupApi.md#serve_user_properties) | **GET** /app/rest/userGroups/{groupLocator}/properties/{name} | +*InvestigationApi* | [**get_investigations**](docs/InvestigationApi.md#get_investigations) | **GET** /app/rest/investigations | +*InvestigationApi* | [**serve_instance**](docs/InvestigationApi.md#serve_instance) | **GET** /app/rest/investigations/{investigationLocator} | +*ProblemApi* | [**get_problems**](docs/ProblemApi.md#get_problems) | **GET** /app/rest/problems | +*ProblemApi* | [**serve_instance**](docs/ProblemApi.md#serve_instance) | **GET** /app/rest/problems/{problemLocator} | +*ProblemOccurrenceApi* | [**get_problems**](docs/ProblemOccurrenceApi.md#get_problems) | **GET** /app/rest/problemOccurrences | +*ProblemOccurrenceApi* | [**serve_instance**](docs/ProblemOccurrenceApi.md#serve_instance) | **GET** /app/rest/problemOccurrences/{problemLocator} | +*ProjectApi* | [**add**](docs/ProjectApi.md#add) | **POST** /app/rest/projects/{projectLocator}/projectFeatures | +*ProjectApi* | [**create_build_type**](docs/ProjectApi.md#create_build_type) | **POST** /app/rest/projects/{projectLocator}/buildTypes | +*ProjectApi* | [**create_build_type_template**](docs/ProjectApi.md#create_build_type_template) | **POST** /app/rest/projects/{projectLocator}/templates | +*ProjectApi* | [**create_project**](docs/ProjectApi.md#create_project) | **POST** /app/rest/projects | +*ProjectApi* | [**delete**](docs/ProjectApi.md#delete) | **DELETE** /app/rest/projects/{projectLocator}/projectFeatures/{featureLocator} | +*ProjectApi* | [**delete_all_parameters**](docs/ProjectApi.md#delete_all_parameters) | **DELETE** /app/rest/projects/{projectLocator}/parameters | +*ProjectApi* | [**delete_all_parameters_0**](docs/ProjectApi.md#delete_all_parameters_0) | **DELETE** /app/rest/projects/{projectLocator}/projectFeatures/{featureLocator}/properties | +*ProjectApi* | [**delete_parameter**](docs/ProjectApi.md#delete_parameter) | **DELETE** /app/rest/projects/{projectLocator}/parameters/{name} | +*ProjectApi* | [**delete_parameter_0**](docs/ProjectApi.md#delete_parameter_0) | **DELETE** /app/rest/projects/{projectLocator}/projectFeatures/{featureLocator}/properties/{name} | +*ProjectApi* | [**delete_project**](docs/ProjectApi.md#delete_project) | **DELETE** /app/rest/projects/{projectLocator} | +*ProjectApi* | [**delete_project_agent_pools**](docs/ProjectApi.md#delete_project_agent_pools) | **DELETE** /app/rest/projects/{projectLocator}/agentPools/{agentPoolLocator} | +*ProjectApi* | [**get**](docs/ProjectApi.md#get) | **GET** /app/rest/projects/{projectLocator}/projectFeatures | +*ProjectApi* | [**get_build_types_order**](docs/ProjectApi.md#get_build_types_order) | **GET** /app/rest/projects/{projectLocator}/order/buildTypes | +*ProjectApi* | [**get_example_new_project_description**](docs/ProjectApi.md#get_example_new_project_description) | **GET** /app/rest/projects/{projectLocator}/example/newProjectDescription | +*ProjectApi* | [**get_example_new_project_description_compatibility_version1**](docs/ProjectApi.md#get_example_new_project_description_compatibility_version1) | **GET** /app/rest/projects/{projectLocator}/newProjectDescription | +*ProjectApi* | [**get_parameter**](docs/ProjectApi.md#get_parameter) | **GET** /app/rest/projects/{projectLocator}/parameters/{name} | +*ProjectApi* | [**get_parameter_0**](docs/ProjectApi.md#get_parameter_0) | **GET** /app/rest/projects/{projectLocator}/projectFeatures/{featureLocator}/properties/{name} | +*ProjectApi* | [**get_parameter_type**](docs/ProjectApi.md#get_parameter_type) | **GET** /app/rest/projects/{projectLocator}/parameters/{name}/type | +*ProjectApi* | [**get_parameter_type_raw_value**](docs/ProjectApi.md#get_parameter_type_raw_value) | **GET** /app/rest/projects/{projectLocator}/parameters/{name}/type/rawValue | +*ProjectApi* | [**get_parameter_value_long**](docs/ProjectApi.md#get_parameter_value_long) | **GET** /app/rest/projects/{projectLocator}/parameters/{name}/value | +*ProjectApi* | [**get_parameter_value_long_0**](docs/ProjectApi.md#get_parameter_value_long_0) | **GET** /app/rest/projects/{projectLocator}/projectFeatures/{featureLocator}/properties/{name}/value | +*ProjectApi* | [**get_parameters**](docs/ProjectApi.md#get_parameters) | **GET** /app/rest/projects/{projectLocator}/parameters | +*ProjectApi* | [**get_parameters_0**](docs/ProjectApi.md#get_parameters_0) | **GET** /app/rest/projects/{projectLocator}/projectFeatures/{featureLocator}/properties | +*ProjectApi* | [**get_parent_project**](docs/ProjectApi.md#get_parent_project) | **GET** /app/rest/projects/{projectLocator}/parentProject | +*ProjectApi* | [**get_project_agent_pools**](docs/ProjectApi.md#get_project_agent_pools) | **GET** /app/rest/projects/{projectLocator}/agentPools | +*ProjectApi* | [**get_projects_order**](docs/ProjectApi.md#get_projects_order) | **GET** /app/rest/projects/{projectLocator}/order/projects | +*ProjectApi* | [**get_settings_file**](docs/ProjectApi.md#get_settings_file) | **GET** /app/rest/projects/{projectLocator}/settingsFile | +*ProjectApi* | [**get_single**](docs/ProjectApi.md#get_single) | **GET** /app/rest/projects/{projectLocator}/projectFeatures/{featureLocator} | +*ProjectApi* | [**reload_settings_file**](docs/ProjectApi.md#reload_settings_file) | **GET** /app/rest/projects/{projectLocator}/latest | +*ProjectApi* | [**replace**](docs/ProjectApi.md#replace) | **PUT** /app/rest/projects/{projectLocator}/projectFeatures/{featureLocator} | +*ProjectApi* | [**replace_all**](docs/ProjectApi.md#replace_all) | **PUT** /app/rest/projects/{projectLocator}/projectFeatures | +*ProjectApi* | [**serve_build_field_with_project**](docs/ProjectApi.md#serve_build_field_with_project) | **GET** /app/rest/projects/{projectLocator}/buildTypes/{btLocator}/builds/{buildLocator}/{field} | +*ProjectApi* | [**serve_build_type**](docs/ProjectApi.md#serve_build_type) | **GET** /app/rest/projects/{projectLocator}/buildTypes/{btLocator} | +*ProjectApi* | [**serve_build_type_field_with_project**](docs/ProjectApi.md#serve_build_type_field_with_project) | **GET** /app/rest/projects/{projectLocator}/buildTypes/{btLocator}/{field} | +*ProjectApi* | [**serve_build_type_templates**](docs/ProjectApi.md#serve_build_type_templates) | **GET** /app/rest/projects/{projectLocator}/templates/{btLocator} | +*ProjectApi* | [**serve_build_types_in_project**](docs/ProjectApi.md#serve_build_types_in_project) | **GET** /app/rest/projects/{projectLocator}/buildTypes | +*ProjectApi* | [**serve_build_with_project**](docs/ProjectApi.md#serve_build_with_project) | **GET** /app/rest/projects/{projectLocator}/buildTypes/{btLocator}/builds/{buildLocator} | +*ProjectApi* | [**serve_builds**](docs/ProjectApi.md#serve_builds) | **GET** /app/rest/projects/{projectLocator}/buildTypes/{btLocator}/builds | +*ProjectApi* | [**serve_project**](docs/ProjectApi.md#serve_project) | **GET** /app/rest/projects/{projectLocator} | +*ProjectApi* | [**serve_project_field**](docs/ProjectApi.md#serve_project_field) | **GET** /app/rest/projects/{projectLocator}/{field} | +*ProjectApi* | [**serve_projects**](docs/ProjectApi.md#serve_projects) | **GET** /app/rest/projects | +*ProjectApi* | [**serve_templates_in_project**](docs/ProjectApi.md#serve_templates_in_project) | **GET** /app/rest/projects/{projectLocator}/templates | +*ProjectApi* | [**set_build_types_order**](docs/ProjectApi.md#set_build_types_order) | **PUT** /app/rest/projects/{projectLocator}/order/buildTypes | +*ProjectApi* | [**set_parameter**](docs/ProjectApi.md#set_parameter) | **POST** /app/rest/projects/{projectLocator}/parameters | +*ProjectApi* | [**set_parameter_0**](docs/ProjectApi.md#set_parameter_0) | **PUT** /app/rest/projects/{projectLocator}/parameters/{name} | +*ProjectApi* | [**set_parameter_1**](docs/ProjectApi.md#set_parameter_1) | **POST** /app/rest/projects/{projectLocator}/projectFeatures/{featureLocator}/properties | +*ProjectApi* | [**set_parameter_2**](docs/ProjectApi.md#set_parameter_2) | **PUT** /app/rest/projects/{projectLocator}/projectFeatures/{featureLocator}/properties/{name} | +*ProjectApi* | [**set_parameter_type**](docs/ProjectApi.md#set_parameter_type) | **PUT** /app/rest/projects/{projectLocator}/parameters/{name}/type | +*ProjectApi* | [**set_parameter_type_raw_value**](docs/ProjectApi.md#set_parameter_type_raw_value) | **PUT** /app/rest/projects/{projectLocator}/parameters/{name}/type/rawValue | +*ProjectApi* | [**set_parameter_value_long**](docs/ProjectApi.md#set_parameter_value_long) | **PUT** /app/rest/projects/{projectLocator}/parameters/{name}/value | +*ProjectApi* | [**set_parameter_value_long_0**](docs/ProjectApi.md#set_parameter_value_long_0) | **PUT** /app/rest/projects/{projectLocator}/projectFeatures/{featureLocator}/properties/{name}/value | +*ProjectApi* | [**set_parameters**](docs/ProjectApi.md#set_parameters) | **PUT** /app/rest/projects/{projectLocator}/parameters | +*ProjectApi* | [**set_parameters_0**](docs/ProjectApi.md#set_parameters_0) | **PUT** /app/rest/projects/{projectLocator}/projectFeatures/{featureLocator}/properties | +*ProjectApi* | [**set_parent_project**](docs/ProjectApi.md#set_parent_project) | **PUT** /app/rest/projects/{projectLocator}/parentProject | +*ProjectApi* | [**set_project_agent_pools**](docs/ProjectApi.md#set_project_agent_pools) | **PUT** /app/rest/projects/{projectLocator}/agentPools | +*ProjectApi* | [**set_project_agent_pools_0**](docs/ProjectApi.md#set_project_agent_pools_0) | **POST** /app/rest/projects/{projectLocator}/agentPools | +*ProjectApi* | [**set_project_filed**](docs/ProjectApi.md#set_project_filed) | **PUT** /app/rest/projects/{projectLocator}/{field} | +*ProjectApi* | [**set_projects_order**](docs/ProjectApi.md#set_projects_order) | **PUT** /app/rest/projects/{projectLocator}/order/projects | +*ServerApi* | [**add_license_keys**](docs/ServerApi.md#add_license_keys) | **POST** /app/rest/server/licensingData/licenseKeys | +*ServerApi* | [**delete_license_key**](docs/ServerApi.md#delete_license_key) | **DELETE** /app/rest/server/licensingData/licenseKeys/{licenseKey} | +*ServerApi* | [**get_backup_status**](docs/ServerApi.md#get_backup_status) | **GET** /app/rest/server/backup | +*ServerApi* | [**get_children**](docs/ServerApi.md#get_children) | **GET** /app/rest/server/files/{areaId}/children{path} | +*ServerApi* | [**get_children_alias**](docs/ServerApi.md#get_children_alias) | **GET** /app/rest/server/files/{areaId}/{path} | +*ServerApi* | [**get_content**](docs/ServerApi.md#get_content) | **GET** /app/rest/server/files/{areaId}/content{path} | +*ServerApi* | [**get_content_alias**](docs/ServerApi.md#get_content_alias) | **GET** /app/rest/server/files/{areaId}/files{path} | +*ServerApi* | [**get_license_key**](docs/ServerApi.md#get_license_key) | **GET** /app/rest/server/licensingData/licenseKeys/{licenseKey} | +*ServerApi* | [**get_license_keys**](docs/ServerApi.md#get_license_keys) | **GET** /app/rest/server/licensingData/licenseKeys | +*ServerApi* | [**get_licensing_data**](docs/ServerApi.md#get_licensing_data) | **GET** /app/rest/server/licensingData | +*ServerApi* | [**get_metadata**](docs/ServerApi.md#get_metadata) | **GET** /app/rest/server/files/{areaId}/metadata{path} | +*ServerApi* | [**get_root**](docs/ServerApi.md#get_root) | **GET** /app/rest/server/files/{areaId} | +*ServerApi* | [**get_zipped**](docs/ServerApi.md#get_zipped) | **GET** /app/rest/server/files/{areaId}/archived{path} | +*ServerApi* | [**serve_plugins**](docs/ServerApi.md#serve_plugins) | **GET** /app/rest/server/plugins | +*ServerApi* | [**serve_server_info**](docs/ServerApi.md#serve_server_info) | **GET** /app/rest/server | +*ServerApi* | [**serve_server_version**](docs/ServerApi.md#serve_server_version) | **GET** /app/rest/server/{field} | +*ServerApi* | [**start_backup**](docs/ServerApi.md#start_backup) | **POST** /app/rest/server/backup | +*TestApi* | [**get_tests**](docs/TestApi.md#get_tests) | **GET** /app/rest/tests | +*TestApi* | [**serve_instance**](docs/TestApi.md#serve_instance) | **GET** /app/rest/tests/{testLocator} | +*TestOccurrenceApi* | [**get_test_occurrences**](docs/TestOccurrenceApi.md#get_test_occurrences) | **GET** /app/rest/testOccurrences | +*TestOccurrenceApi* | [**serve_instance**](docs/TestOccurrenceApi.md#serve_instance) | **GET** /app/rest/testOccurrences/{testLocator} | +*UserApi* | [**add_group**](docs/UserApi.md#add_group) | **POST** /app/rest/users/{userLocator}/groups | +*UserApi* | [**add_role**](docs/UserApi.md#add_role) | **POST** /app/rest/users/{userLocator}/roles | +*UserApi* | [**add_role_simple**](docs/UserApi.md#add_role_simple) | **PUT** /app/rest/users/{userLocator}/roles/{roleId}/{scope} | +*UserApi* | [**add_role_simple_post**](docs/UserApi.md#add_role_simple_post) | **POST** /app/rest/users/{userLocator}/roles/{roleId}/{scope} | +*UserApi* | [**create_user**](docs/UserApi.md#create_user) | **POST** /app/rest/users | +*UserApi* | [**delete_remember_me**](docs/UserApi.md#delete_remember_me) | **DELETE** /app/rest/users/{userLocator}/debug/rememberMe | +*UserApi* | [**delete_role**](docs/UserApi.md#delete_role) | **DELETE** /app/rest/users/{userLocator}/roles/{roleId}/{scope} | +*UserApi* | [**delete_user**](docs/UserApi.md#delete_user) | **DELETE** /app/rest/users/{userLocator} | +*UserApi* | [**delete_user_field**](docs/UserApi.md#delete_user_field) | **DELETE** /app/rest/users/{userLocator}/{field} | +*UserApi* | [**get_groups**](docs/UserApi.md#get_groups) | **GET** /app/rest/users/{userLocator}/groups | +*UserApi* | [**get_permissions**](docs/UserApi.md#get_permissions) | **GET** /app/rest/users/{userLocator}/debug/permissions | +*UserApi* | [**list_role**](docs/UserApi.md#list_role) | **GET** /app/rest/users/{userLocator}/roles/{roleId}/{scope} | +*UserApi* | [**list_roles**](docs/UserApi.md#list_roles) | **GET** /app/rest/users/{userLocator}/roles | +*UserApi* | [**put_user_property**](docs/UserApi.md#put_user_property) | **PUT** /app/rest/users/{userLocator}/properties/{name} | +*UserApi* | [**remove_user_property**](docs/UserApi.md#remove_user_property) | **DELETE** /app/rest/users/{userLocator}/properties/{name} | +*UserApi* | [**replace_groups**](docs/UserApi.md#replace_groups) | **PUT** /app/rest/users/{userLocator}/groups | +*UserApi* | [**replace_roles**](docs/UserApi.md#replace_roles) | **PUT** /app/rest/users/{userLocator}/roles | +*UserApi* | [**serve_user**](docs/UserApi.md#serve_user) | **GET** /app/rest/users/{userLocator} | +*UserApi* | [**serve_user_field**](docs/UserApi.md#serve_user_field) | **GET** /app/rest/users/{userLocator}/{field} | +*UserApi* | [**serve_user_properties**](docs/UserApi.md#serve_user_properties) | **GET** /app/rest/users/{userLocator}/properties | +*UserApi* | [**serve_user_property**](docs/UserApi.md#serve_user_property) | **GET** /app/rest/users/{userLocator}/properties/{name} | +*UserApi* | [**serve_users**](docs/UserApi.md#serve_users) | **GET** /app/rest/users | +*UserApi* | [**set_user_field**](docs/UserApi.md#set_user_field) | **PUT** /app/rest/users/{userLocator}/{field} | +*UserApi* | [**update_user**](docs/UserApi.md#update_user) | **PUT** /app/rest/users/{userLocator} | +*VcsRootApi* | [**add_root**](docs/VcsRootApi.md#add_root) | **POST** /app/rest/vcs-roots | +*VcsRootApi* | [**change_properties**](docs/VcsRootApi.md#change_properties) | **PUT** /app/rest/vcs-roots/{vcsRootLocator}/properties | +*VcsRootApi* | [**delete_all_properties**](docs/VcsRootApi.md#delete_all_properties) | **DELETE** /app/rest/vcs-roots/{vcsRootLocator}/properties | +*VcsRootApi* | [**delete_parameter**](docs/VcsRootApi.md#delete_parameter) | **DELETE** /app/rest/vcs-roots/{vcsRootLocator}/properties/{name} | +*VcsRootApi* | [**delete_root**](docs/VcsRootApi.md#delete_root) | **DELETE** /app/rest/vcs-roots/{vcsRootLocator} | +*VcsRootApi* | [**get_settings_file**](docs/VcsRootApi.md#get_settings_file) | **GET** /app/rest/vcs-roots/{vcsRootLocator}/settingsFile | +*VcsRootApi* | [**put_parameter**](docs/VcsRootApi.md#put_parameter) | **PUT** /app/rest/vcs-roots/{vcsRootLocator}/properties/{name} | +*VcsRootApi* | [**serve_field**](docs/VcsRootApi.md#serve_field) | **GET** /app/rest/vcs-roots/{vcsRootLocator}/{field} | +*VcsRootApi* | [**serve_instance_field**](docs/VcsRootApi.md#serve_instance_field) | **GET** /app/rest/vcs-roots/{vcsRootLocator}/instances/{vcsRootInstanceLocator}/{field} | +*VcsRootApi* | [**serve_properties**](docs/VcsRootApi.md#serve_properties) | **GET** /app/rest/vcs-roots/{vcsRootLocator}/properties | +*VcsRootApi* | [**serve_property**](docs/VcsRootApi.md#serve_property) | **GET** /app/rest/vcs-roots/{vcsRootLocator}/properties/{name} | +*VcsRootApi* | [**serve_root**](docs/VcsRootApi.md#serve_root) | **GET** /app/rest/vcs-roots/{vcsRootLocator} | +*VcsRootApi* | [**serve_root_instance**](docs/VcsRootApi.md#serve_root_instance) | **GET** /app/rest/vcs-roots/{vcsRootLocator}/instances/{vcsRootInstanceLocator} | +*VcsRootApi* | [**serve_root_instance_properties**](docs/VcsRootApi.md#serve_root_instance_properties) | **GET** /app/rest/vcs-roots/{vcsRootLocator}/instances/{vcsRootInstanceLocator}/properties | +*VcsRootApi* | [**serve_root_instances**](docs/VcsRootApi.md#serve_root_instances) | **GET** /app/rest/vcs-roots/{vcsRootLocator}/instances | +*VcsRootApi* | [**serve_roots**](docs/VcsRootApi.md#serve_roots) | **GET** /app/rest/vcs-roots | +*VcsRootApi* | [**set_field**](docs/VcsRootApi.md#set_field) | **PUT** /app/rest/vcs-roots/{vcsRootLocator}/{field} | +*VcsRootApi* | [**set_instance_field**](docs/VcsRootApi.md#set_instance_field) | **PUT** /app/rest/vcs-roots/{vcsRootLocator}/instances/{vcsRootInstanceLocator}/{field} | +*VcsRootInstanceApi* | [**delete_instance_field**](docs/VcsRootInstanceApi.md#delete_instance_field) | **DELETE** /app/rest/vcs-root-instances/{vcsRootInstanceLocator}/{field} | +*VcsRootInstanceApi* | [**delete_repository_state**](docs/VcsRootInstanceApi.md#delete_repository_state) | **DELETE** /app/rest/vcs-root-instances/{vcsRootInstanceLocator}/repositoryState | +*VcsRootInstanceApi* | [**get_children**](docs/VcsRootInstanceApi.md#get_children) | **GET** /app/rest/vcs-root-instances/{vcsRootInstanceLocator}/files/latest/children{path} | +*VcsRootInstanceApi* | [**get_children_alias**](docs/VcsRootInstanceApi.md#get_children_alias) | **GET** /app/rest/vcs-root-instances/{vcsRootInstanceLocator}/files/latest/{path} | +*VcsRootInstanceApi* | [**get_content**](docs/VcsRootInstanceApi.md#get_content) | **GET** /app/rest/vcs-root-instances/{vcsRootInstanceLocator}/files/latest/content{path} | +*VcsRootInstanceApi* | [**get_content_alias**](docs/VcsRootInstanceApi.md#get_content_alias) | **GET** /app/rest/vcs-root-instances/{vcsRootInstanceLocator}/files/latest/files{path} | +*VcsRootInstanceApi* | [**get_metadata**](docs/VcsRootInstanceApi.md#get_metadata) | **GET** /app/rest/vcs-root-instances/{vcsRootInstanceLocator}/files/latest/metadata{path} | +*VcsRootInstanceApi* | [**get_repository_state**](docs/VcsRootInstanceApi.md#get_repository_state) | **GET** /app/rest/vcs-root-instances/{vcsRootInstanceLocator}/repositoryState | +*VcsRootInstanceApi* | [**get_repository_state_creation_date**](docs/VcsRootInstanceApi.md#get_repository_state_creation_date) | **GET** /app/rest/vcs-root-instances/{vcsRootInstanceLocator}/repositoryState/creationDate | +*VcsRootInstanceApi* | [**get_root**](docs/VcsRootInstanceApi.md#get_root) | **GET** /app/rest/vcs-root-instances/{vcsRootInstanceLocator}/files/latest | +*VcsRootInstanceApi* | [**get_zipped**](docs/VcsRootInstanceApi.md#get_zipped) | **GET** /app/rest/vcs-root-instances/{vcsRootInstanceLocator}/files/latest/archived{path} | +*VcsRootInstanceApi* | [**schedule_checking_for_changes**](docs/VcsRootInstanceApi.md#schedule_checking_for_changes) | **POST** /app/rest/vcs-root-instances/checkingForChangesQueue | +*VcsRootInstanceApi* | [**schedule_checking_for_changes_0**](docs/VcsRootInstanceApi.md#schedule_checking_for_changes_0) | **POST** /app/rest/vcs-root-instances/commitHookNotification | +*VcsRootInstanceApi* | [**serve_instance**](docs/VcsRootInstanceApi.md#serve_instance) | **GET** /app/rest/vcs-root-instances/{vcsRootInstanceLocator} | +*VcsRootInstanceApi* | [**serve_instance_field**](docs/VcsRootInstanceApi.md#serve_instance_field) | **GET** /app/rest/vcs-root-instances/{vcsRootInstanceLocator}/{field} | +*VcsRootInstanceApi* | [**serve_instances**](docs/VcsRootInstanceApi.md#serve_instances) | **GET** /app/rest/vcs-root-instances | +*VcsRootInstanceApi* | [**serve_root_instance_properties**](docs/VcsRootInstanceApi.md#serve_root_instance_properties) | **GET** /app/rest/vcs-root-instances/{vcsRootInstanceLocator}/properties | +*VcsRootInstanceApi* | [**set_instance_field**](docs/VcsRootInstanceApi.md#set_instance_field) | **PUT** /app/rest/vcs-root-instances/{vcsRootInstanceLocator}/{field} | +*VcsRootInstanceApi* | [**set_repository_state**](docs/VcsRootInstanceApi.md#set_repository_state) | **PUT** /app/rest/vcs-root-instances/{vcsRootInstanceLocator}/repositoryState | +*DefaultApi* | [**serve_api_version**](docs/DefaultApi.md#serve_api_version) | **GET** /app/rest/apiVersion | +*DefaultApi* | [**serve_build_field_short**](docs/DefaultApi.md#serve_build_field_short) | **GET** /app/rest/{projectLocator}/{btLocator}/{buildLocator}/{field} | +*DefaultApi* | [**serve_plugin_info**](docs/DefaultApi.md#serve_plugin_info) | **GET** /app/rest/info | +*DefaultApi* | [**serve_root**](docs/DefaultApi.md#serve_root) | **GET** /app/rest | +*DefaultApi* | [**serve_version**](docs/DefaultApi.md#serve_version) | **GET** /app/rest/version | + + +## Documentation For Models + + - [Agent](docs/Agent.md) + - [AgentPool](docs/AgentPool.md) + - [AgentPools](docs/AgentPools.md) + - [AgentRequirement](docs/AgentRequirement.md) + - [AgentRequirements](docs/AgentRequirements.md) + - [Agents](docs/Agents.md) + - [ArtifactDependencies](docs/ArtifactDependencies.md) + - [ArtifactDependency](docs/ArtifactDependency.md) + - [AuthorizedInfo](docs/AuthorizedInfo.md) + - [BackupProcess](docs/BackupProcess.md) + - [BackupProcessInfo](docs/BackupProcessInfo.md) + - [BackupProcessManager](docs/BackupProcessManager.md) + - [Branch](docs/Branch.md) + - [BranchVersion](docs/BranchVersion.md) + - [Branches](docs/Branches.md) + - [Build](docs/Build.md) + - [BuildCancelRequest](docs/BuildCancelRequest.md) + - [BuildTriggeringOptions](docs/BuildTriggeringOptions.md) + - [BuildType](docs/BuildType.md) + - [BuildTypes](docs/BuildTypes.md) + - [Builds](docs/Builds.md) + - [Change](docs/Change.md) + - [Changes](docs/Changes.md) + - [Comment](docs/Comment.md) + - [Compatibilities](docs/Compatibilities.md) + - [Compatibility](docs/Compatibility.md) + - [Datas](docs/Datas.md) + - [EnabledInfo](docs/EnabledInfo.md) + - [Entries](docs/Entries.md) + - [Entry](docs/Entry.md) + - [Exception](docs/Exception.md) + - [Feature](docs/Feature.md) + - [Features](docs/Features.md) + - [FederationServer](docs/FederationServer.md) + - [File](docs/File.md) + - [FileChange](docs/FileChange.md) + - [FileChanges](docs/FileChanges.md) + - [Files](docs/Files.md) + - [Group](docs/Group.md) + - [Groups](docs/Groups.md) + - [Href](docs/Href.md) + - [Investigation](docs/Investigation.md) + - [Investigations](docs/Investigations.md) + - [Issue](docs/Issue.md) + - [IssueUsage](docs/IssueUsage.md) + - [Issues](docs/Issues.md) + - [IssuesUsages](docs/IssuesUsages.md) + - [Items](docs/Items.md) + - [LicenseKey](docs/LicenseKey.md) + - [LicenseKeys](docs/LicenseKeys.md) + - [LicensingData](docs/LicensingData.md) + - [Link](docs/Link.md) + - [Links](docs/Links.md) + - [MetaData](docs/MetaData.md) + - [ModelProperty](docs/ModelProperty.md) + - [Mute](docs/Mute.md) + - [Mutes](docs/Mutes.md) + - [NewBuildTypeDescription](docs/NewBuildTypeDescription.md) + - [NewProjectDescription](docs/NewProjectDescription.md) + - [Plugin](docs/Plugin.md) + - [Plugins](docs/Plugins.md) + - [Problem](docs/Problem.md) + - [ProblemOccurrence](docs/ProblemOccurrence.md) + - [ProblemOccurrences](docs/ProblemOccurrences.md) + - [ProblemScope](docs/ProblemScope.md) + - [ProblemTarget](docs/ProblemTarget.md) + - [Problems](docs/Problems.md) + - [ProgressInfo](docs/ProgressInfo.md) + - [Project](docs/Project.md) + - [ProjectFeature](docs/ProjectFeature.md) + - [ProjectFeatures](docs/ProjectFeatures.md) + - [Projects](docs/Projects.md) + - [Properties](docs/Properties.md) + - [RepositoryState](docs/RepositoryState.md) + - [Requirements](docs/Requirements.md) + - [Resolution](docs/Resolution.md) + - [Revision](docs/Revision.md) + - [Revisions](docs/Revisions.md) + - [Role](docs/Role.md) + - [Roles](docs/Roles.md) + - [Server](docs/Server.md) + - [Servers](docs/Servers.md) + - [Session](docs/Session.md) + - [Sessions](docs/Sessions.md) + - [SnapshotDependencies](docs/SnapshotDependencies.md) + - [SnapshotDependency](docs/SnapshotDependency.md) + - [StackTraceElement](docs/StackTraceElement.md) + - [StateField](docs/StateField.md) + - [Step](docs/Step.md) + - [Steps](docs/Steps.md) + - [Tag](docs/Tag.md) + - [Tags](docs/Tags.md) + - [Test](docs/Test.md) + - [TestOccurrence](docs/TestOccurrence.md) + - [TestOccurrences](docs/TestOccurrences.md) + - [Tests](docs/Tests.md) + - [Throwable](docs/Throwable.md) + - [Trigger](docs/Trigger.md) + - [TriggeredBy](docs/TriggeredBy.md) + - [Triggers](docs/Triggers.md) + - [Type](docs/Type.md) + - [User](docs/User.md) + - [Users](docs/Users.md) + - [VcsCheckStatus](docs/VcsCheckStatus.md) + - [VcsLabeling](docs/VcsLabeling.md) + - [VcsRoot](docs/VcsRoot.md) + - [VcsRootEntries](docs/VcsRootEntries.md) + - [VcsRootEntry](docs/VcsRootEntry.md) + - [VcsRootInstance](docs/VcsRootInstance.md) + - [VcsRootInstances](docs/VcsRootInstances.md) + - [VcsRoots](docs/VcsRoots.md) + - [VcsStatus](docs/VcsStatus.md) + + +## Documentation For Authorization + + +## Basic + +- **Type**: HTTP basic authentication + + +## Author + + + diff --git a/docs/Agent.md b/docs/Agent.md new file mode 100644 index 0000000..13f2b81 --- /dev/null +++ b/docs/Agent.md @@ -0,0 +1,26 @@ +# Agent + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**authorized** | **bool** | | [optional] [default to False] +**authorized_info** | [**AuthorizedInfo**](AuthorizedInfo.md) | | [optional] +**compatible_build_types** | [**BuildTypes**](BuildTypes.md) | | [optional] +**connected** | **bool** | | [optional] [default to False] +**enabled** | **bool** | | [optional] [default to False] +**enabled_info** | [**EnabledInfo**](EnabledInfo.md) | | [optional] +**href** | **str** | | [optional] +**id** | **int** | | [optional] +**incompatible_build_types** | [**Compatibilities**](Compatibilities.md) | | [optional] +**ip** | **str** | | [optional] +**locator** | **str** | | [optional] +**name** | **str** | | [optional] +**pool** | [**AgentPool**](AgentPool.md) | | [optional] +**properties** | [**Properties**](Properties.md) | | [optional] +**protocol** | **str** | | [optional] +**type_id** | **int** | | [optional] +**uptodate** | **bool** | | [optional] [default to False] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AgentApi.md b/docs/AgentApi.md new file mode 100644 index 0000000..d142ea2 --- /dev/null +++ b/docs/AgentApi.md @@ -0,0 +1,641 @@ +# swagger_client.AgentApi + +All URIs are relative to *https://teamcity.ptsecurity.ru* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**delete_agent**](AgentApi.md#delete_agent) | **DELETE** /app/rest/agents/{agentLocator} | +[**ge_incompatible_build_types**](AgentApi.md#ge_incompatible_build_types) | **GET** /app/rest/agents/{agentLocator}/incompatibleBuildTypes | +[**get_agent_pool**](AgentApi.md#get_agent_pool) | **GET** /app/rest/agents/{agentLocator}/pool | +[**get_authorized_info**](AgentApi.md#get_authorized_info) | **GET** /app/rest/agents/{agentLocator}/authorizedInfo | +[**get_compatible_build_types**](AgentApi.md#get_compatible_build_types) | **GET** /app/rest/agents/{agentLocator}/compatibleBuildTypes | +[**get_enabled_info**](AgentApi.md#get_enabled_info) | **GET** /app/rest/agents/{agentLocator}/enabledInfo | +[**serve_agent**](AgentApi.md#serve_agent) | **GET** /app/rest/agents/{agentLocator} | +[**serve_agent_field**](AgentApi.md#serve_agent_field) | **GET** /app/rest/agents/{agentLocator}/{field} | +[**serve_agents**](AgentApi.md#serve_agents) | **GET** /app/rest/agents | +[**set_agent_field**](AgentApi.md#set_agent_field) | **PUT** /app/rest/agents/{agentLocator}/{field} | +[**set_agent_pool**](AgentApi.md#set_agent_pool) | **PUT** /app/rest/agents/{agentLocator}/pool | +[**set_authorized_info**](AgentApi.md#set_authorized_info) | **PUT** /app/rest/agents/{agentLocator}/authorizedInfo | +[**set_enabled_info**](AgentApi.md#set_enabled_info) | **PUT** /app/rest/agents/{agentLocator}/enabledInfo | + + +# **delete_agent** +> delete_agent(agent_locator) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.AgentApi() +agent_locator = 'agent_locator_example' # str | + +try: + api_instance.delete_agent(agent_locator) +except ApiException as e: + print("Exception when calling AgentApi->delete_agent: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **agent_locator** | **str**| | + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ge_incompatible_build_types** +> Compatibilities ge_incompatible_build_types(agent_locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.AgentApi() +agent_locator = 'agent_locator_example' # str | +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.ge_incompatible_build_types(agent_locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling AgentApi->ge_incompatible_build_types: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **agent_locator** | **str**| | + **fields** | **str**| | [optional] + +### Return type + +[**Compatibilities**](Compatibilities.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_agent_pool** +> AgentPool get_agent_pool(agent_locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.AgentApi() +agent_locator = 'agent_locator_example' # str | +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.get_agent_pool(agent_locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling AgentApi->get_agent_pool: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **agent_locator** | **str**| | + **fields** | **str**| | [optional] + +### Return type + +[**AgentPool**](AgentPool.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_authorized_info** +> AuthorizedInfo get_authorized_info(agent_locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.AgentApi() +agent_locator = 'agent_locator_example' # str | +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.get_authorized_info(agent_locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling AgentApi->get_authorized_info: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **agent_locator** | **str**| | + **fields** | **str**| | [optional] + +### Return type + +[**AuthorizedInfo**](AuthorizedInfo.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_compatible_build_types** +> BuildTypes get_compatible_build_types(agent_locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.AgentApi() +agent_locator = 'agent_locator_example' # str | +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.get_compatible_build_types(agent_locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling AgentApi->get_compatible_build_types: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **agent_locator** | **str**| | + **fields** | **str**| | [optional] + +### Return type + +[**BuildTypes**](BuildTypes.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_enabled_info** +> EnabledInfo get_enabled_info(agent_locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.AgentApi() +agent_locator = 'agent_locator_example' # str | +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.get_enabled_info(agent_locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling AgentApi->get_enabled_info: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **agent_locator** | **str**| | + **fields** | **str**| | [optional] + +### Return type + +[**EnabledInfo**](EnabledInfo.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **serve_agent** +> Agent serve_agent(agent_locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.AgentApi() +agent_locator = 'agent_locator_example' # str | +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.serve_agent(agent_locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling AgentApi->serve_agent: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **agent_locator** | **str**| | + **fields** | **str**| | [optional] + +### Return type + +[**Agent**](Agent.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **serve_agent_field** +> str serve_agent_field(agent_locator, field) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.AgentApi() +agent_locator = 'agent_locator_example' # str | +field = 'field_example' # str | + +try: + api_response = api_instance.serve_agent_field(agent_locator, field) + pprint(api_response) +except ApiException as e: + print("Exception when calling AgentApi->serve_agent_field: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **agent_locator** | **str**| | + **field** | **str**| | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **serve_agents** +> Agents serve_agents(include_disconnected=include_disconnected, include_unauthorized=include_unauthorized, locator=locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.AgentApi() +include_disconnected = true # bool | (optional) +include_unauthorized = true # bool | (optional) +locator = 'locator_example' # str | (optional) +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.serve_agents(include_disconnected=include_disconnected, include_unauthorized=include_unauthorized, locator=locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling AgentApi->serve_agents: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **include_disconnected** | **bool**| | [optional] + **include_unauthorized** | **bool**| | [optional] + **locator** | **str**| | [optional] + **fields** | **str**| | [optional] + +### Return type + +[**Agents**](Agents.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **set_agent_field** +> str set_agent_field(agent_locator, field, body=body) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.AgentApi() +agent_locator = 'agent_locator_example' # str | +field = 'field_example' # str | +body = 'body_example' # str | (optional) + +try: + api_response = api_instance.set_agent_field(agent_locator, field, body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling AgentApi->set_agent_field: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **agent_locator** | **str**| | + **field** | **str**| | + **body** | **str**| | [optional] + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **set_agent_pool** +> AgentPool set_agent_pool(agent_locator, body=body, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.AgentApi() +agent_locator = 'agent_locator_example' # str | +body = swagger_client.AgentPool() # AgentPool | (optional) +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.set_agent_pool(agent_locator, body=body, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling AgentApi->set_agent_pool: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **agent_locator** | **str**| | + **body** | [**AgentPool**](AgentPool.md)| | [optional] + **fields** | **str**| | [optional] + +### Return type + +[**AgentPool**](AgentPool.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **set_authorized_info** +> AuthorizedInfo set_authorized_info(agent_locator, body=body, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.AgentApi() +agent_locator = 'agent_locator_example' # str | +body = swagger_client.AuthorizedInfo() # AuthorizedInfo | (optional) +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.set_authorized_info(agent_locator, body=body, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling AgentApi->set_authorized_info: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **agent_locator** | **str**| | + **body** | [**AuthorizedInfo**](AuthorizedInfo.md)| | [optional] + **fields** | **str**| | [optional] + +### Return type + +[**AuthorizedInfo**](AuthorizedInfo.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **set_enabled_info** +> EnabledInfo set_enabled_info(agent_locator, body=body, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.AgentApi() +agent_locator = 'agent_locator_example' # str | +body = swagger_client.EnabledInfo() # EnabledInfo | (optional) +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.set_enabled_info(agent_locator, body=body, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling AgentApi->set_enabled_info: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **agent_locator** | **str**| | + **body** | [**EnabledInfo**](EnabledInfo.md)| | [optional] + **fields** | **str**| | [optional] + +### Return type + +[**EnabledInfo**](EnabledInfo.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/AgentPool.md b/docs/AgentPool.md new file mode 100644 index 0000000..9b241d0 --- /dev/null +++ b/docs/AgentPool.md @@ -0,0 +1,16 @@ +# AgentPool + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**agents** | [**Agents**](Agents.md) | | [optional] +**href** | **str** | | [optional] +**id** | **int** | | [optional] +**locator** | **str** | | [optional] +**max_agents** | **int** | | [optional] +**name** | **str** | | [optional] +**projects** | [**Projects**](Projects.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AgentPoolApi.md b/docs/AgentPoolApi.md new file mode 100644 index 0000000..3b8d3ab --- /dev/null +++ b/docs/AgentPoolApi.md @@ -0,0 +1,679 @@ +# swagger_client.AgentPoolApi + +All URIs are relative to *https://teamcity.ptsecurity.ru* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**add_agent**](AgentPoolApi.md#add_agent) | **POST** /app/rest/agentPools/{agentPoolLocator}/agents | +[**add_project**](AgentPoolApi.md#add_project) | **POST** /app/rest/agentPools/{agentPoolLocator}/projects | +[**create_pool**](AgentPoolApi.md#create_pool) | **POST** /app/rest/agentPools | +[**delete_pool**](AgentPoolApi.md#delete_pool) | **DELETE** /app/rest/agentPools/{agentPoolLocator} | +[**delete_pool_project**](AgentPoolApi.md#delete_pool_project) | **DELETE** /app/rest/agentPools/{agentPoolLocator}/projects/{projectLocator} | +[**delete_projects**](AgentPoolApi.md#delete_projects) | **DELETE** /app/rest/agentPools/{agentPoolLocator}/projects | +[**get_field**](AgentPoolApi.md#get_field) | **GET** /app/rest/agentPools/{agentPoolLocator}/{field} | +[**get_pool**](AgentPoolApi.md#get_pool) | **GET** /app/rest/agentPools/{agentPoolLocator} | +[**get_pool_agents**](AgentPoolApi.md#get_pool_agents) | **GET** /app/rest/agentPools/{agentPoolLocator}/agents | +[**get_pool_project**](AgentPoolApi.md#get_pool_project) | **GET** /app/rest/agentPools/{agentPoolLocator}/projects/{projectLocator} | +[**get_pool_projects**](AgentPoolApi.md#get_pool_projects) | **GET** /app/rest/agentPools/{agentPoolLocator}/projects | +[**get_pools**](AgentPoolApi.md#get_pools) | **GET** /app/rest/agentPools | +[**replace_projects**](AgentPoolApi.md#replace_projects) | **PUT** /app/rest/agentPools/{agentPoolLocator}/projects | +[**set_field**](AgentPoolApi.md#set_field) | **PUT** /app/rest/agentPools/{agentPoolLocator}/{field} | + + +# **add_agent** +> Agent add_agent(agent_pool_locator, body=body, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.AgentPoolApi() +agent_pool_locator = 'agent_pool_locator_example' # str | +body = swagger_client.Agent() # Agent | (optional) +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.add_agent(agent_pool_locator, body=body, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling AgentPoolApi->add_agent: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **agent_pool_locator** | **str**| | + **body** | [**Agent**](Agent.md)| | [optional] + **fields** | **str**| | [optional] + +### Return type + +[**Agent**](Agent.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **add_project** +> Project add_project(agent_pool_locator, body=body) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.AgentPoolApi() +agent_pool_locator = 'agent_pool_locator_example' # str | +body = swagger_client.Project() # Project | (optional) + +try: + api_response = api_instance.add_project(agent_pool_locator, body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling AgentPoolApi->add_project: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **agent_pool_locator** | **str**| | + **body** | [**Project**](Project.md)| | [optional] + +### Return type + +[**Project**](Project.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_pool** +> AgentPool create_pool(body=body) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.AgentPoolApi() +body = swagger_client.AgentPool() # AgentPool | (optional) + +try: + api_response = api_instance.create_pool(body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling AgentPoolApi->create_pool: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**AgentPool**](AgentPool.md)| | [optional] + +### Return type + +[**AgentPool**](AgentPool.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_pool** +> delete_pool(agent_pool_locator) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.AgentPoolApi() +agent_pool_locator = 'agent_pool_locator_example' # str | + +try: + api_instance.delete_pool(agent_pool_locator) +except ApiException as e: + print("Exception when calling AgentPoolApi->delete_pool: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **agent_pool_locator** | **str**| | + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_pool_project** +> delete_pool_project(agent_pool_locator, project_locator) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.AgentPoolApi() +agent_pool_locator = 'agent_pool_locator_example' # str | +project_locator = 'project_locator_example' # str | + +try: + api_instance.delete_pool_project(agent_pool_locator, project_locator) +except ApiException as e: + print("Exception when calling AgentPoolApi->delete_pool_project: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **agent_pool_locator** | **str**| | + **project_locator** | **str**| | + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_projects** +> delete_projects(agent_pool_locator) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.AgentPoolApi() +agent_pool_locator = 'agent_pool_locator_example' # str | + +try: + api_instance.delete_projects(agent_pool_locator) +except ApiException as e: + print("Exception when calling AgentPoolApi->delete_projects: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **agent_pool_locator** | **str**| | + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_field** +> str get_field(agent_pool_locator, field) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.AgentPoolApi() +agent_pool_locator = 'agent_pool_locator_example' # str | +field = 'field_example' # str | + +try: + api_response = api_instance.get_field(agent_pool_locator, field) + pprint(api_response) +except ApiException as e: + print("Exception when calling AgentPoolApi->get_field: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **agent_pool_locator** | **str**| | + **field** | **str**| | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_pool** +> AgentPool get_pool(agent_pool_locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.AgentPoolApi() +agent_pool_locator = 'agent_pool_locator_example' # str | +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.get_pool(agent_pool_locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling AgentPoolApi->get_pool: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **agent_pool_locator** | **str**| | + **fields** | **str**| | [optional] + +### Return type + +[**AgentPool**](AgentPool.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_pool_agents** +> Agents get_pool_agents(agent_pool_locator, locator=locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.AgentPoolApi() +agent_pool_locator = 'agent_pool_locator_example' # str | +locator = 'locator_example' # str | (optional) +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.get_pool_agents(agent_pool_locator, locator=locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling AgentPoolApi->get_pool_agents: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **agent_pool_locator** | **str**| | + **locator** | **str**| | [optional] + **fields** | **str**| | [optional] + +### Return type + +[**Agents**](Agents.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_pool_project** +> Project get_pool_project(agent_pool_locator, project_locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.AgentPoolApi() +agent_pool_locator = 'agent_pool_locator_example' # str | +project_locator = 'project_locator_example' # str | +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.get_pool_project(agent_pool_locator, project_locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling AgentPoolApi->get_pool_project: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **agent_pool_locator** | **str**| | + **project_locator** | **str**| | + **fields** | **str**| | [optional] + +### Return type + +[**Project**](Project.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_pool_projects** +> Projects get_pool_projects(agent_pool_locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.AgentPoolApi() +agent_pool_locator = 'agent_pool_locator_example' # str | +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.get_pool_projects(agent_pool_locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling AgentPoolApi->get_pool_projects: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **agent_pool_locator** | **str**| | + **fields** | **str**| | [optional] + +### Return type + +[**Projects**](Projects.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_pools** +> AgentPools get_pools(locator=locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.AgentPoolApi() +locator = 'locator_example' # str | (optional) +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.get_pools(locator=locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling AgentPoolApi->get_pools: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **locator** | **str**| | [optional] + **fields** | **str**| | [optional] + +### Return type + +[**AgentPools**](AgentPools.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_projects** +> Projects replace_projects(agent_pool_locator, body=body) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.AgentPoolApi() +agent_pool_locator = 'agent_pool_locator_example' # str | +body = swagger_client.Projects() # Projects | (optional) + +try: + api_response = api_instance.replace_projects(agent_pool_locator, body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling AgentPoolApi->replace_projects: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **agent_pool_locator** | **str**| | + **body** | [**Projects**](Projects.md)| | [optional] + +### Return type + +[**Projects**](Projects.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **set_field** +> str set_field(agent_pool_locator, field, body=body) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.AgentPoolApi() +agent_pool_locator = 'agent_pool_locator_example' # str | +field = 'field_example' # str | +body = 'body_example' # str | (optional) + +try: + api_response = api_instance.set_field(agent_pool_locator, field, body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling AgentPoolApi->set_field: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **agent_pool_locator** | **str**| | + **field** | **str**| | + **body** | **str**| | [optional] + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/AgentPools.md b/docs/AgentPools.md new file mode 100644 index 0000000..3c45f1a --- /dev/null +++ b/docs/AgentPools.md @@ -0,0 +1,14 @@ +# AgentPools + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**agent_pool** | [**list[AgentPool]**](AgentPool.md) | | [optional] +**count** | **int** | | [optional] +**href** | **str** | | [optional] +**next_href** | **str** | | [optional] +**prev_href** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AgentRequirement.md b/docs/AgentRequirement.md new file mode 100644 index 0000000..d20e675 --- /dev/null +++ b/docs/AgentRequirement.md @@ -0,0 +1,16 @@ +# AgentRequirement + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**disabled** | **bool** | | [optional] [default to False] +**href** | **str** | | [optional] +**id** | **str** | | [optional] +**inherited** | **bool** | | [optional] [default to False] +**name** | **str** | | [optional] +**properties** | [**Properties**](Properties.md) | | [optional] +**type** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AgentRequirements.md b/docs/AgentRequirements.md new file mode 100644 index 0000000..229dc60 --- /dev/null +++ b/docs/AgentRequirements.md @@ -0,0 +1,11 @@ +# AgentRequirements + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**agent_requirement** | [**list[AgentRequirement]**](AgentRequirement.md) | | [optional] +**count** | **int** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Agents.md b/docs/Agents.md new file mode 100644 index 0000000..4055484 --- /dev/null +++ b/docs/Agents.md @@ -0,0 +1,14 @@ +# Agents + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**agent** | [**list[Agent]**](Agent.md) | | [optional] +**count** | **int** | | [optional] +**href** | **str** | | [optional] +**next_href** | **str** | | [optional] +**prev_href** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ArtifactDependencies.md b/docs/ArtifactDependencies.md new file mode 100644 index 0000000..2909fbb --- /dev/null +++ b/docs/ArtifactDependencies.md @@ -0,0 +1,12 @@ +# ArtifactDependencies + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**artifact_dependency** | [**list[ArtifactDependency]**](ArtifactDependency.md) | | [optional] +**count** | **int** | | [optional] +**replace** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ArtifactDependency.md b/docs/ArtifactDependency.md new file mode 100644 index 0000000..ddd2d7c --- /dev/null +++ b/docs/ArtifactDependency.md @@ -0,0 +1,17 @@ +# ArtifactDependency + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**disabled** | **bool** | | [optional] [default to False] +**href** | **str** | | [optional] +**id** | **str** | | [optional] +**inherited** | **bool** | | [optional] [default to False] +**name** | **str** | | [optional] +**properties** | [**Properties**](Properties.md) | | [optional] +**source_build_type** | [**BuildType**](BuildType.md) | | [optional] +**type** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AuthorizedInfo.md b/docs/AuthorizedInfo.md new file mode 100644 index 0000000..0a9ecb9 --- /dev/null +++ b/docs/AuthorizedInfo.md @@ -0,0 +1,11 @@ +# AuthorizedInfo + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**comment** | [**Comment**](Comment.md) | | [optional] +**status** | **bool** | | [optional] [default to False] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BackupProcess.md b/docs/BackupProcess.md new file mode 100644 index 0000000..aac2258 --- /dev/null +++ b/docs/BackupProcess.md @@ -0,0 +1,16 @@ +# BackupProcess + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**brief_info** | [**BackupProcessInfo**](BackupProcessInfo.md) | | [optional] +**exceptions** | [**list[Exception]**](Exception.md) | | [optional] +**finished** | **bool** | | [optional] [default to False] +**process_id** | **int** | | [optional] +**process_kind** | **str** | | [optional] +**progress_info** | [**ProgressInfo**](ProgressInfo.md) | | [optional] +**progress_status** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BackupProcessInfo.md b/docs/BackupProcessInfo.md new file mode 100644 index 0000000..72c2495 --- /dev/null +++ b/docs/BackupProcessInfo.md @@ -0,0 +1,15 @@ +# BackupProcessInfo + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**file_name** | **str** | | [optional] +**file_size** | **int** | | [optional] +**finish_timestamp** | **datetime** | | [optional] +**id** | **int** | | [optional] +**start_timestamp** | **datetime** | | [optional] +**status** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BackupProcessManager.md b/docs/BackupProcessManager.md new file mode 100644 index 0000000..abb63ad --- /dev/null +++ b/docs/BackupProcessManager.md @@ -0,0 +1,10 @@ +# BackupProcessManager + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**current_backup_process** | [**BackupProcess**](BackupProcess.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Branch.md b/docs/Branch.md new file mode 100644 index 0000000..47fc560 --- /dev/null +++ b/docs/Branch.md @@ -0,0 +1,12 @@ +# Branch + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**default** | **bool** | | [optional] [default to False] +**name** | **str** | | [optional] +**unspecified** | **bool** | | [optional] [default to False] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BranchVersion.md b/docs/BranchVersion.md new file mode 100644 index 0000000..49ebb10 --- /dev/null +++ b/docs/BranchVersion.md @@ -0,0 +1,13 @@ +# BranchVersion + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**default** | **bool** | | [optional] [default to False] +**name** | **str** | | [optional] +**unspecified** | **bool** | | [optional] [default to False] +**version** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Branches.md b/docs/Branches.md new file mode 100644 index 0000000..3ecc891 --- /dev/null +++ b/docs/Branches.md @@ -0,0 +1,11 @@ +# Branches + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**branch** | [**list[Branch]**](Branch.md) | | [optional] +**count** | **int** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Build.md b/docs/Build.md new file mode 100644 index 0000000..c134c06 --- /dev/null +++ b/docs/Build.md @@ -0,0 +1,66 @@ +# Build + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**agent** | [**Agent**](Agent.md) | | [optional] +**artifact_dependencies** | [**Builds**](Builds.md) | | [optional] +**artifacts** | [**Files**](Files.md) | | [optional] +**attributes** | [**Entries**](Entries.md) | | [optional] +**branch_name** | **str** | | [optional] +**build_type** | [**BuildType**](BuildType.md) | | [optional] +**build_type_id** | **str** | | [optional] +**build_type_internal_id** | **str** | | [optional] +**canceled_info** | [**Comment**](Comment.md) | | [optional] +**chain_modification_id** | **str** | | [optional] +**changes** | [**Changes**](Changes.md) | | [optional] +**comment** | [**Comment**](Comment.md) | | [optional] +**compatible_agents** | [**Agents**](Agents.md) | | [optional] +**current_settings_hash** | **str** | | [optional] +**custom_artifact_dependencies** | [**ArtifactDependencies**](ArtifactDependencies.md) | | [optional] +**default_branch** | **bool** | | [optional] [default to False] +**failed_to_start** | **bool** | | [optional] [default to False] +**finish_date** | **str** | | [optional] +**history** | **bool** | | [optional] [default to False] +**href** | **str** | | [optional] +**id** | **int** | | [optional] +**last_changes** | [**Changes**](Changes.md) | | [optional] +**locator** | **str** | | [optional] +**metadata** | [**Datas**](Datas.md) | | [optional] +**modification_id** | **str** | | [optional] +**number** | **str** | | [optional] +**percentage_complete** | **int** | | [optional] +**personal** | **bool** | | [optional] [default to False] +**pin_info** | [**Comment**](Comment.md) | | [optional] +**pinned** | **bool** | | [optional] [default to False] +**problem_occurrences** | [**ProblemOccurrences**](ProblemOccurrences.md) | | [optional] +**properties** | [**Properties**](Properties.md) | | [optional] +**queued_date** | **str** | | [optional] +**related_issues** | [**IssuesUsages**](IssuesUsages.md) | | [optional] +**replacement_ids** | [**Items**](Items.md) | | [optional] +**resulting_properties** | [**Properties**](Properties.md) | | [optional] +**revisions** | [**Revisions**](Revisions.md) | | [optional] +**running** | **bool** | | [optional] [default to False] +**running_info** | [**ProgressInfo**](ProgressInfo.md) | | [optional] +**settings_hash** | **str** | | [optional] +**snapshot_dependencies** | [**Builds**](Builds.md) | | [optional] +**start_date** | **str** | | [optional] +**start_estimate** | **str** | | [optional] +**state** | **str** | | [optional] +**statistics** | [**Properties**](Properties.md) | | [optional] +**status** | **str** | | [optional] +**status_text** | **str** | | [optional] +**tags** | [**Tags**](Tags.md) | | [optional] +**task_id** | **int** | | [optional] +**test_occurrences** | [**TestOccurrences**](TestOccurrences.md) | | [optional] +**triggered** | [**TriggeredBy**](TriggeredBy.md) | | [optional] +**triggering_options** | [**BuildTriggeringOptions**](BuildTriggeringOptions.md) | | [optional] +**unspecified_branch** | **bool** | | [optional] [default to False] +**user** | [**User**](User.md) | | [optional] +**versioned_settings_revision** | [**Revision**](Revision.md) | | [optional] +**wait_reason** | **str** | | [optional] +**web_url** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BuildApi.md b/docs/BuildApi.md new file mode 100644 index 0000000..6fa3cee --- /dev/null +++ b/docs/BuildApi.md @@ -0,0 +1,1796 @@ +# swagger_client.BuildApi + +All URIs are relative to *https://teamcity.ptsecurity.ru* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**add_tags**](BuildApi.md#add_tags) | **POST** /app/rest/builds/{buildLocator}/tags | +[**cancel_build**](BuildApi.md#cancel_build) | **POST** /app/rest/builds/{buildLocator} | +[**cancel_build_0**](BuildApi.md#cancel_build_0) | **GET** /app/rest/builds/{buildLocator}/example/buildCancelRequest | +[**delete_build**](BuildApi.md#delete_build) | **DELETE** /app/rest/builds/{buildLocator} | +[**delete_builds**](BuildApi.md#delete_builds) | **DELETE** /app/rest/builds | +[**delete_comment**](BuildApi.md#delete_comment) | **DELETE** /app/rest/builds/{buildLocator}/comment | +[**get_artifacts_directory**](BuildApi.md#get_artifacts_directory) | **GET** /app/rest/builds/{buildLocator}/artifactsDirectory | +[**get_canceled_info**](BuildApi.md#get_canceled_info) | **GET** /app/rest/builds/{buildLocator}/canceledInfo | +[**get_children**](BuildApi.md#get_children) | **GET** /app/rest/builds/{buildLocator}/artifacts/children{path} | +[**get_children_alias**](BuildApi.md#get_children_alias) | **GET** /app/rest/builds/{buildLocator}/artifacts/{path} | +[**get_content**](BuildApi.md#get_content) | **GET** /app/rest/builds/{buildLocator}/artifacts/content{path} | +[**get_content_alias**](BuildApi.md#get_content_alias) | **GET** /app/rest/builds/{buildLocator}/artifacts/files{path} | +[**get_metadata**](BuildApi.md#get_metadata) | **GET** /app/rest/builds/{buildLocator}/artifacts/metadata{path} | +[**get_parameter**](BuildApi.md#get_parameter) | **GET** /app/rest/builds/{buildLocator}/resulting-properties/{propertyName} | +[**get_pinned**](BuildApi.md#get_pinned) | **GET** /app/rest/builds/{buildLocator}/pin | +[**get_problems**](BuildApi.md#get_problems) | **GET** /app/rest/builds/{buildLocator}/problemOccurrences | +[**get_root**](BuildApi.md#get_root) | **GET** /app/rest/builds/{buildLocator}/artifacts | +[**get_tests**](BuildApi.md#get_tests) | **GET** /app/rest/builds/{buildLocator}/testOccurrences | +[**get_zipped**](BuildApi.md#get_zipped) | **GET** /app/rest/builds/{buildLocator}/artifacts/archived{path} | +[**pin_build**](BuildApi.md#pin_build) | **PUT** /app/rest/builds/{buildLocator}/pin | +[**replace_comment**](BuildApi.md#replace_comment) | **PUT** /app/rest/builds/{buildLocator}/comment | +[**replace_tags**](BuildApi.md#replace_tags) | **PUT** /app/rest/builds/{buildLocator}/tags | +[**serve_aggregated_build_status**](BuildApi.md#serve_aggregated_build_status) | **GET** /app/rest/builds/aggregated/{buildLocator}/status | +[**serve_aggregated_build_status_icon**](BuildApi.md#serve_aggregated_build_status_icon) | **GET** /app/rest/builds/aggregated/{buildLocator}/statusIcon{suffix} | +[**serve_all_builds**](BuildApi.md#serve_all_builds) | **GET** /app/rest/builds | +[**serve_build**](BuildApi.md#serve_build) | **GET** /app/rest/builds/{buildLocator} | +[**serve_build_actual_parameters**](BuildApi.md#serve_build_actual_parameters) | **GET** /app/rest/builds/{buildLocator}/resulting-properties | +[**serve_build_field_by_build_only**](BuildApi.md#serve_build_field_by_build_only) | **GET** /app/rest/builds/{buildLocator}/{field} | +[**serve_build_related_issues**](BuildApi.md#serve_build_related_issues) | **GET** /app/rest/builds/{buildLocator}/relatedIssues | +[**serve_build_related_issues_old**](BuildApi.md#serve_build_related_issues_old) | **GET** /app/rest/builds/{buildLocator}/related-issues | +[**serve_build_statistic_value**](BuildApi.md#serve_build_statistic_value) | **GET** /app/rest/builds/{buildLocator}/statistics/{name} | +[**serve_build_statistic_values**](BuildApi.md#serve_build_statistic_values) | **GET** /app/rest/builds/{buildLocator}/statistics | +[**serve_build_status_icon**](BuildApi.md#serve_build_status_icon) | **GET** /app/rest/builds/{buildLocator}/statusIcon{suffix} | +[**serve_source_file**](BuildApi.md#serve_source_file) | **GET** /app/rest/builds/{buildLocator}/sources/files/{fileName} | +[**serve_tags**](BuildApi.md#serve_tags) | **GET** /app/rest/builds/{buildLocator}/tags | +[**unpin_build**](BuildApi.md#unpin_build) | **DELETE** /app/rest/builds/{buildLocator}/pin | + + +# **add_tags** +> Tags add_tags(build_locator, body=body, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildApi() +build_locator = 'build_locator_example' # str | +body = swagger_client.Tags() # Tags | (optional) +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.add_tags(build_locator, body=body, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildApi->add_tags: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **build_locator** | **str**| | + **body** | [**Tags**](Tags.md)| | [optional] + **fields** | **str**| | [optional] + +### Return type + +[**Tags**](Tags.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **cancel_build** +> Build cancel_build(build_locator, body=body, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildApi() +build_locator = 'build_locator_example' # str | +body = swagger_client.BuildCancelRequest() # BuildCancelRequest | (optional) +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.cancel_build(build_locator, body=body, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildApi->cancel_build: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **build_locator** | **str**| | + **body** | [**BuildCancelRequest**](BuildCancelRequest.md)| | [optional] + **fields** | **str**| | [optional] + +### Return type + +[**Build**](Build.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **cancel_build_0** +> BuildCancelRequest cancel_build_0(build_locator) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildApi() +build_locator = 'build_locator_example' # str | + +try: + api_response = api_instance.cancel_build_0(build_locator) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildApi->cancel_build_0: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **build_locator** | **str**| | + +### Return type + +[**BuildCancelRequest**](BuildCancelRequest.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_build** +> delete_build(build_locator) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildApi() +build_locator = 'build_locator_example' # str | + +try: + api_instance.delete_build(build_locator) +except ApiException as e: + print("Exception when calling BuildApi->delete_build: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **build_locator** | **str**| | + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_builds** +> delete_builds(locator=locator) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildApi() +locator = 'locator_example' # str | (optional) + +try: + api_instance.delete_builds(locator=locator) +except ApiException as e: + print("Exception when calling BuildApi->delete_builds: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **locator** | **str**| | [optional] + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_comment** +> delete_comment(build_locator) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildApi() +build_locator = 'build_locator_example' # str | + +try: + api_instance.delete_comment(build_locator) +except ApiException as e: + print("Exception when calling BuildApi->delete_comment: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **build_locator** | **str**| | + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_artifacts_directory** +> str get_artifacts_directory(build_locator) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildApi() +build_locator = 'build_locator_example' # str | + +try: + api_response = api_instance.get_artifacts_directory(build_locator) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildApi->get_artifacts_directory: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **build_locator** | **str**| | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_canceled_info** +> Comment get_canceled_info(build_locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildApi() +build_locator = 'build_locator_example' # str | +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.get_canceled_info(build_locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildApi->get_canceled_info: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **build_locator** | **str**| | + **fields** | **str**| | [optional] + +### Return type + +[**Comment**](Comment.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_children** +> Files get_children(path, build_locator, base_path=base_path, locator=locator, fields=fields, resolve_parameters=resolve_parameters, log_build_usage=log_build_usage) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildApi() +path = 'path_example' # str | +build_locator = 'build_locator_example' # str | +base_path = 'base_path_example' # str | (optional) +locator = 'locator_example' # str | (optional) +fields = 'fields_example' # str | (optional) +resolve_parameters = true # bool | (optional) +log_build_usage = true # bool | (optional) + +try: + api_response = api_instance.get_children(path, build_locator, base_path=base_path, locator=locator, fields=fields, resolve_parameters=resolve_parameters, log_build_usage=log_build_usage) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildApi->get_children: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **path** | **str**| | + **build_locator** | **str**| | + **base_path** | **str**| | [optional] + **locator** | **str**| | [optional] + **fields** | **str**| | [optional] + **resolve_parameters** | **bool**| | [optional] + **log_build_usage** | **bool**| | [optional] + +### Return type + +[**Files**](Files.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_children_alias** +> Files get_children_alias(path, build_locator, base_path=base_path, locator=locator, fields=fields, resolve_parameters=resolve_parameters, log_build_usage=log_build_usage) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildApi() +path = 'path_example' # str | +build_locator = 'build_locator_example' # str | +base_path = 'base_path_example' # str | (optional) +locator = 'locator_example' # str | (optional) +fields = 'fields_example' # str | (optional) +resolve_parameters = true # bool | (optional) +log_build_usage = true # bool | (optional) + +try: + api_response = api_instance.get_children_alias(path, build_locator, base_path=base_path, locator=locator, fields=fields, resolve_parameters=resolve_parameters, log_build_usage=log_build_usage) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildApi->get_children_alias: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **path** | **str**| | + **build_locator** | **str**| | + **base_path** | **str**| | [optional] + **locator** | **str**| | [optional] + **fields** | **str**| | [optional] + **resolve_parameters** | **bool**| | [optional] + **log_build_usage** | **bool**| | [optional] + +### Return type + +[**Files**](Files.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_content** +> get_content(path, build_locator, resolve_parameters=resolve_parameters, log_build_usage=log_build_usage) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildApi() +path = 'path_example' # str | +build_locator = 'build_locator_example' # str | +resolve_parameters = true # bool | (optional) +log_build_usage = true # bool | (optional) + +try: + api_instance.get_content(path, build_locator, resolve_parameters=resolve_parameters, log_build_usage=log_build_usage) +except ApiException as e: + print("Exception when calling BuildApi->get_content: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **path** | **str**| | + **build_locator** | **str**| | + **resolve_parameters** | **bool**| | [optional] + **log_build_usage** | **bool**| | [optional] + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_content_alias** +> get_content_alias(path, build_locator, resolve_parameters=resolve_parameters, log_build_usage=log_build_usage) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildApi() +path = 'path_example' # str | +build_locator = 'build_locator_example' # str | +resolve_parameters = true # bool | (optional) +log_build_usage = true # bool | (optional) + +try: + api_instance.get_content_alias(path, build_locator, resolve_parameters=resolve_parameters, log_build_usage=log_build_usage) +except ApiException as e: + print("Exception when calling BuildApi->get_content_alias: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **path** | **str**| | + **build_locator** | **str**| | + **resolve_parameters** | **bool**| | [optional] + **log_build_usage** | **bool**| | [optional] + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_metadata** +> file get_metadata(path, build_locator, fields=fields, resolve_parameters=resolve_parameters, log_build_usage=log_build_usage) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildApi() +path = 'path_example' # str | +build_locator = 'build_locator_example' # str | +fields = 'fields_example' # str | (optional) +resolve_parameters = true # bool | (optional) +log_build_usage = true # bool | (optional) + +try: + api_response = api_instance.get_metadata(path, build_locator, fields=fields, resolve_parameters=resolve_parameters, log_build_usage=log_build_usage) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildApi->get_metadata: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **path** | **str**| | + **build_locator** | **str**| | + **fields** | **str**| | [optional] + **resolve_parameters** | **bool**| | [optional] + **log_build_usage** | **bool**| | [optional] + +### Return type + +[**file**](file.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_parameter** +> str get_parameter(build_locator, property_name) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildApi() +build_locator = 'build_locator_example' # str | +property_name = 'property_name_example' # str | + +try: + api_response = api_instance.get_parameter(build_locator, property_name) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildApi->get_parameter: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **build_locator** | **str**| | + **property_name** | **str**| | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_pinned** +> str get_pinned(build_locator) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildApi() +build_locator = 'build_locator_example' # str | + +try: + api_response = api_instance.get_pinned(build_locator) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildApi->get_pinned: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **build_locator** | **str**| | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_problems** +> ProblemOccurrences get_problems(build_locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildApi() +build_locator = 'build_locator_example' # str | +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.get_problems(build_locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildApi->get_problems: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **build_locator** | **str**| | + **fields** | **str**| | [optional] + +### Return type + +[**ProblemOccurrences**](ProblemOccurrences.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_root** +> Files get_root(build_locator, base_path=base_path, locator=locator, fields=fields, resolve_parameters=resolve_parameters, log_build_usage=log_build_usage) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildApi() +build_locator = 'build_locator_example' # str | +base_path = 'base_path_example' # str | (optional) +locator = 'locator_example' # str | (optional) +fields = 'fields_example' # str | (optional) +resolve_parameters = true # bool | (optional) +log_build_usage = true # bool | (optional) + +try: + api_response = api_instance.get_root(build_locator, base_path=base_path, locator=locator, fields=fields, resolve_parameters=resolve_parameters, log_build_usage=log_build_usage) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildApi->get_root: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **build_locator** | **str**| | + **base_path** | **str**| | [optional] + **locator** | **str**| | [optional] + **fields** | **str**| | [optional] + **resolve_parameters** | **bool**| | [optional] + **log_build_usage** | **bool**| | [optional] + +### Return type + +[**Files**](Files.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_tests** +> TestOccurrences get_tests(build_locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildApi() +build_locator = 'build_locator_example' # str | +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.get_tests(build_locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildApi->get_tests: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **build_locator** | **str**| | + **fields** | **str**| | [optional] + +### Return type + +[**TestOccurrences**](TestOccurrences.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_zipped** +> get_zipped(path, build_locator, base_path=base_path, locator=locator, name=name, resolve_parameters=resolve_parameters, log_build_usage=log_build_usage) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildApi() +path = 'path_example' # str | +build_locator = 'build_locator_example' # str | +base_path = 'base_path_example' # str | (optional) +locator = 'locator_example' # str | (optional) +name = 'name_example' # str | (optional) +resolve_parameters = true # bool | (optional) +log_build_usage = true # bool | (optional) + +try: + api_instance.get_zipped(path, build_locator, base_path=base_path, locator=locator, name=name, resolve_parameters=resolve_parameters, log_build_usage=log_build_usage) +except ApiException as e: + print("Exception when calling BuildApi->get_zipped: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **path** | **str**| | + **build_locator** | **str**| | + **base_path** | **str**| | [optional] + **locator** | **str**| | [optional] + **name** | **str**| | [optional] + **resolve_parameters** | **bool**| | [optional] + **log_build_usage** | **bool**| | [optional] + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **pin_build** +> pin_build(build_locator, body=body) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildApi() +build_locator = 'build_locator_example' # str | +body = 'body_example' # str | (optional) + +try: + api_instance.pin_build(build_locator, body=body) +except ApiException as e: + print("Exception when calling BuildApi->pin_build: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **build_locator** | **str**| | + **body** | **str**| | [optional] + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_comment** +> replace_comment(build_locator, body=body) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildApi() +build_locator = 'build_locator_example' # str | +body = 'body_example' # str | (optional) + +try: + api_instance.replace_comment(build_locator, body=body) +except ApiException as e: + print("Exception when calling BuildApi->replace_comment: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **build_locator** | **str**| | + **body** | **str**| | [optional] + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_tags** +> Tags replace_tags(build_locator, locator=locator, body=body, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildApi() +build_locator = 'build_locator_example' # str | +locator = 'locator_example' # str | (optional) +body = swagger_client.Tags() # Tags | (optional) +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.replace_tags(build_locator, locator=locator, body=body, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildApi->replace_tags: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **build_locator** | **str**| | + **locator** | **str**| | [optional] + **body** | [**Tags**](Tags.md)| | [optional] + **fields** | **str**| | [optional] + +### Return type + +[**Tags**](Tags.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **serve_aggregated_build_status** +> str serve_aggregated_build_status(build_locator) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildApi() +build_locator = 'build_locator_example' # str | + +try: + api_response = api_instance.serve_aggregated_build_status(build_locator) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildApi->serve_aggregated_build_status: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **build_locator** | **str**| | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **serve_aggregated_build_status_icon** +> serve_aggregated_build_status_icon(build_locator, suffix) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildApi() +build_locator = 'build_locator_example' # str | +suffix = 'suffix_example' # str | + +try: + api_instance.serve_aggregated_build_status_icon(build_locator, suffix) +except ApiException as e: + print("Exception when calling BuildApi->serve_aggregated_build_status_icon: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **build_locator** | **str**| | + **suffix** | **str**| | + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **serve_all_builds** +> Builds serve_all_builds(build_type=build_type, status=status, triggered_by_user=triggered_by_user, include_personal=include_personal, include_canceled=include_canceled, only_pinned=only_pinned, tag=tag, agent_name=agent_name, since_build=since_build, since_date=since_date, start=start, count=count, locator=locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildApi() +build_type = 'build_type_example' # str | (optional) +status = 'status_example' # str | (optional) +triggered_by_user = 'triggered_by_user_example' # str | (optional) +include_personal = true # bool | (optional) +include_canceled = true # bool | (optional) +only_pinned = true # bool | (optional) +tag = ['tag_example'] # list[str] | (optional) +agent_name = 'agent_name_example' # str | (optional) +since_build = 'since_build_example' # str | (optional) +since_date = 'since_date_example' # str | (optional) +start = 789 # int | (optional) +count = 56 # int | (optional) +locator = 'locator_example' # str | (optional) +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.serve_all_builds(build_type=build_type, status=status, triggered_by_user=triggered_by_user, include_personal=include_personal, include_canceled=include_canceled, only_pinned=only_pinned, tag=tag, agent_name=agent_name, since_build=since_build, since_date=since_date, start=start, count=count, locator=locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildApi->serve_all_builds: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **build_type** | **str**| | [optional] + **status** | **str**| | [optional] + **triggered_by_user** | **str**| | [optional] + **include_personal** | **bool**| | [optional] + **include_canceled** | **bool**| | [optional] + **only_pinned** | **bool**| | [optional] + **tag** | [**list[str]**](str.md)| | [optional] + **agent_name** | **str**| | [optional] + **since_build** | **str**| | [optional] + **since_date** | **str**| | [optional] + **start** | **int**| | [optional] + **count** | **int**| | [optional] + **locator** | **str**| | [optional] + **fields** | **str**| | [optional] + +### Return type + +[**Builds**](Builds.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **serve_build** +> Build serve_build(build_locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildApi() +build_locator = 'build_locator_example' # str | +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.serve_build(build_locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildApi->serve_build: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **build_locator** | **str**| | + **fields** | **str**| | [optional] + +### Return type + +[**Build**](Build.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **serve_build_actual_parameters** +> Properties serve_build_actual_parameters(build_locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildApi() +build_locator = 'build_locator_example' # str | +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.serve_build_actual_parameters(build_locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildApi->serve_build_actual_parameters: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **build_locator** | **str**| | + **fields** | **str**| | [optional] + +### Return type + +[**Properties**](Properties.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **serve_build_field_by_build_only** +> str serve_build_field_by_build_only(build_locator, field) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildApi() +build_locator = 'build_locator_example' # str | +field = 'field_example' # str | + +try: + api_response = api_instance.serve_build_field_by_build_only(build_locator, field) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildApi->serve_build_field_by_build_only: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **build_locator** | **str**| | + **field** | **str**| | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **serve_build_related_issues** +> IssuesUsages serve_build_related_issues(build_locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildApi() +build_locator = 'build_locator_example' # str | +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.serve_build_related_issues(build_locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildApi->serve_build_related_issues: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **build_locator** | **str**| | + **fields** | **str**| | [optional] + +### Return type + +[**IssuesUsages**](IssuesUsages.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **serve_build_related_issues_old** +> IssuesUsages serve_build_related_issues_old(build_locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildApi() +build_locator = 'build_locator_example' # str | +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.serve_build_related_issues_old(build_locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildApi->serve_build_related_issues_old: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **build_locator** | **str**| | + **fields** | **str**| | [optional] + +### Return type + +[**IssuesUsages**](IssuesUsages.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **serve_build_statistic_value** +> str serve_build_statistic_value(build_locator, name) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildApi() +build_locator = 'build_locator_example' # str | +name = 'name_example' # str | + +try: + api_response = api_instance.serve_build_statistic_value(build_locator, name) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildApi->serve_build_statistic_value: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **build_locator** | **str**| | + **name** | **str**| | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **serve_build_statistic_values** +> Properties serve_build_statistic_values(build_locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildApi() +build_locator = 'build_locator_example' # str | +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.serve_build_statistic_values(build_locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildApi->serve_build_statistic_values: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **build_locator** | **str**| | + **fields** | **str**| | [optional] + +### Return type + +[**Properties**](Properties.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **serve_build_status_icon** +> serve_build_status_icon(build_locator, suffix) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildApi() +build_locator = 'build_locator_example' # str | +suffix = 'suffix_example' # str | + +try: + api_instance.serve_build_status_icon(build_locator, suffix) +except ApiException as e: + print("Exception when calling BuildApi->serve_build_status_icon: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **build_locator** | **str**| | + **suffix** | **str**| | + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **serve_source_file** +> serve_source_file(build_locator, file_name) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildApi() +build_locator = 'build_locator_example' # str | +file_name = 'file_name_example' # str | + +try: + api_instance.serve_source_file(build_locator, file_name) +except ApiException as e: + print("Exception when calling BuildApi->serve_source_file: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **build_locator** | **str**| | + **file_name** | **str**| | + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **serve_tags** +> Tags serve_tags(build_locator, locator=locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildApi() +build_locator = 'build_locator_example' # str | +locator = 'locator_example' # str | (optional) +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.serve_tags(build_locator, locator=locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildApi->serve_tags: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **build_locator** | **str**| | + **locator** | **str**| | [optional] + **fields** | **str**| | [optional] + +### Return type + +[**Tags**](Tags.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **unpin_build** +> unpin_build(build_locator, body=body) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildApi() +build_locator = 'build_locator_example' # str | +body = 'body_example' # str | (optional) + +try: + api_instance.unpin_build(build_locator, body=body) +except ApiException as e: + print("Exception when calling BuildApi->unpin_build: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **build_locator** | **str**| | + **body** | **str**| | [optional] + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/BuildCancelRequest.md b/docs/BuildCancelRequest.md new file mode 100644 index 0000000..f7b8e63 --- /dev/null +++ b/docs/BuildCancelRequest.md @@ -0,0 +1,11 @@ +# BuildCancelRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**comment** | **str** | | [optional] +**readd_into_queue** | **bool** | | [optional] [default to False] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BuildQueueApi.md b/docs/BuildQueueApi.md new file mode 100644 index 0000000..297d1b1 --- /dev/null +++ b/docs/BuildQueueApi.md @@ -0,0 +1,679 @@ +# swagger_client.BuildQueueApi + +All URIs are relative to *https://teamcity.ptsecurity.ru* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**add_tags**](BuildQueueApi.md#add_tags) | **POST** /app/rest/buildQueue/{buildLocator}/tags | +[**cancel_build**](BuildQueueApi.md#cancel_build) | **GET** /app/rest/buildQueue/{buildLocator}/example/buildCancelRequest | +[**cancel_build_0**](BuildQueueApi.md#cancel_build_0) | **POST** /app/rest/buildQueue/{queuedBuildLocator} | +[**delete_build**](BuildQueueApi.md#delete_build) | **DELETE** /app/rest/buildQueue/{queuedBuildLocator} | +[**delete_builds_experimental**](BuildQueueApi.md#delete_builds_experimental) | **DELETE** /app/rest/buildQueue | +[**get_build**](BuildQueueApi.md#get_build) | **GET** /app/rest/buildQueue/{queuedBuildLocator} | +[**get_builds**](BuildQueueApi.md#get_builds) | **GET** /app/rest/buildQueue | +[**queue_new_build**](BuildQueueApi.md#queue_new_build) | **POST** /app/rest/buildQueue | +[**replace_builds**](BuildQueueApi.md#replace_builds) | **PUT** /app/rest/buildQueue | +[**replace_tags**](BuildQueueApi.md#replace_tags) | **PUT** /app/rest/buildQueue/{buildLocator}/tags | +[**serve_build_field_by_build_only**](BuildQueueApi.md#serve_build_field_by_build_only) | **GET** /app/rest/buildQueue/{buildLocator}/{field} | +[**serve_compatible_agents**](BuildQueueApi.md#serve_compatible_agents) | **GET** /app/rest/buildQueue/{queuedBuildLocator}/compatibleAgents | +[**serve_tags**](BuildQueueApi.md#serve_tags) | **GET** /app/rest/buildQueue/{buildLocator}/tags | +[**set_build_queue_order**](BuildQueueApi.md#set_build_queue_order) | **PUT** /app/rest/buildQueue/order | + + +# **add_tags** +> add_tags(build_locator, body=body) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildQueueApi() +build_locator = 'build_locator_example' # str | +body = swagger_client.Tags() # Tags | (optional) + +try: + api_instance.add_tags(build_locator, body=body) +except ApiException as e: + print("Exception when calling BuildQueueApi->add_tags: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **build_locator** | **str**| | + **body** | [**Tags**](Tags.md)| | [optional] + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **cancel_build** +> BuildCancelRequest cancel_build(build_locator) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildQueueApi() +build_locator = 'build_locator_example' # str | + +try: + api_response = api_instance.cancel_build(build_locator) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildQueueApi->cancel_build: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **build_locator** | **str**| | + +### Return type + +[**BuildCancelRequest**](BuildCancelRequest.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **cancel_build_0** +> Build cancel_build_0(queued_build_locator, body=body) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildQueueApi() +queued_build_locator = 'queued_build_locator_example' # str | +body = swagger_client.BuildCancelRequest() # BuildCancelRequest | (optional) + +try: + api_response = api_instance.cancel_build_0(queued_build_locator, body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildQueueApi->cancel_build_0: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **queued_build_locator** | **str**| | + **body** | [**BuildCancelRequest**](BuildCancelRequest.md)| | [optional] + +### Return type + +[**Build**](Build.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_build** +> delete_build(queued_build_locator) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildQueueApi() +queued_build_locator = 'queued_build_locator_example' # str | + +try: + api_instance.delete_build(queued_build_locator) +except ApiException as e: + print("Exception when calling BuildQueueApi->delete_build: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **queued_build_locator** | **str**| | + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_builds_experimental** +> delete_builds_experimental(locator=locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildQueueApi() +locator = 'locator_example' # str | (optional) +fields = 'fields_example' # str | (optional) + +try: + api_instance.delete_builds_experimental(locator=locator, fields=fields) +except ApiException as e: + print("Exception when calling BuildQueueApi->delete_builds_experimental: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **locator** | **str**| | [optional] + **fields** | **str**| | [optional] + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_build** +> Build get_build(queued_build_locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildQueueApi() +queued_build_locator = 'queued_build_locator_example' # str | +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.get_build(queued_build_locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildQueueApi->get_build: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **queued_build_locator** | **str**| | + **fields** | **str**| | [optional] + +### Return type + +[**Build**](Build.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_builds** +> Builds get_builds(locator=locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildQueueApi() +locator = 'locator_example' # str | (optional) +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.get_builds(locator=locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildQueueApi->get_builds: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **locator** | **str**| | [optional] + **fields** | **str**| | [optional] + +### Return type + +[**Builds**](Builds.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **queue_new_build** +> Build queue_new_build(body=body, move_to_top=move_to_top) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildQueueApi() +body = swagger_client.Build() # Build | (optional) +move_to_top = true # bool | (optional) + +try: + api_response = api_instance.queue_new_build(body=body, move_to_top=move_to_top) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildQueueApi->queue_new_build: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**Build**](Build.md)| | [optional] + **move_to_top** | **bool**| | [optional] + +### Return type + +[**Build**](Build.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_builds** +> Builds replace_builds(body=body, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildQueueApi() +body = swagger_client.Builds() # Builds | (optional) +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.replace_builds(body=body, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildQueueApi->replace_builds: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**Builds**](Builds.md)| | [optional] + **fields** | **str**| | [optional] + +### Return type + +[**Builds**](Builds.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_tags** +> Tags replace_tags(build_locator, locator=locator, body=body, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildQueueApi() +build_locator = 'build_locator_example' # str | +locator = 'locator_example' # str | (optional) +body = swagger_client.Tags() # Tags | (optional) +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.replace_tags(build_locator, locator=locator, body=body, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildQueueApi->replace_tags: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **build_locator** | **str**| | + **locator** | **str**| | [optional] + **body** | [**Tags**](Tags.md)| | [optional] + **fields** | **str**| | [optional] + +### Return type + +[**Tags**](Tags.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **serve_build_field_by_build_only** +> str serve_build_field_by_build_only(build_locator, field) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildQueueApi() +build_locator = 'build_locator_example' # str | +field = 'field_example' # str | + +try: + api_response = api_instance.serve_build_field_by_build_only(build_locator, field) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildQueueApi->serve_build_field_by_build_only: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **build_locator** | **str**| | + **field** | **str**| | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **serve_compatible_agents** +> Agents serve_compatible_agents(queued_build_locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildQueueApi() +queued_build_locator = 'queued_build_locator_example' # str | +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.serve_compatible_agents(queued_build_locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildQueueApi->serve_compatible_agents: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **queued_build_locator** | **str**| | + **fields** | **str**| | [optional] + +### Return type + +[**Agents**](Agents.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **serve_tags** +> Tags serve_tags(build_locator, locator=locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildQueueApi() +build_locator = 'build_locator_example' # str | +locator = 'locator_example' # str | (optional) +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.serve_tags(build_locator, locator=locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildQueueApi->serve_tags: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **build_locator** | **str**| | + **locator** | **str**| | [optional] + **fields** | **str**| | [optional] + +### Return type + +[**Tags**](Tags.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **set_build_queue_order** +> Builds set_build_queue_order(fields, body=body) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildQueueApi() +fields = 'fields_example' # str | +body = swagger_client.Builds() # Builds | (optional) + +try: + api_response = api_instance.set_build_queue_order(fields, body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildQueueApi->set_build_queue_order: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **fields** | **str**| | + **body** | [**Builds**](Builds.md)| | [optional] + +### Return type + +[**Builds**](Builds.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/BuildTriggeringOptions.md b/docs/BuildTriggeringOptions.md new file mode 100644 index 0000000..6bab638 --- /dev/null +++ b/docs/BuildTriggeringOptions.md @@ -0,0 +1,13 @@ +# BuildTriggeringOptions + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**clean_sources** | **bool** | | [optional] [default to False] +**queue_at_top** | **bool** | | [optional] [default to False] +**rebuild_all_dependencies** | **bool** | | [optional] [default to False] +**rebuild_dependencies** | [**BuildTypes**](BuildTypes.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BuildType.md b/docs/BuildType.md new file mode 100644 index 0000000..34df486 --- /dev/null +++ b/docs/BuildType.md @@ -0,0 +1,37 @@ +# BuildType + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**agent_requirements** | [**AgentRequirements**](AgentRequirements.md) | | [optional] +**artifact_dependencies** | [**ArtifactDependencies**](ArtifactDependencies.md) | | [optional] +**builds** | [**Builds**](Builds.md) | | [optional] +**compatible_agents** | [**Agents**](Agents.md) | | [optional] +**description** | **str** | | [optional] +**features** | [**Features**](Features.md) | | [optional] +**href** | **str** | | [optional] +**id** | **str** | | [optional] +**internal_id** | **str** | | [optional] +**investigations** | [**Investigations**](Investigations.md) | | [optional] +**links** | [**Links**](Links.md) | | [optional] +**locator** | **str** | | [optional] +**name** | **str** | | [optional] +**parameters** | [**Properties**](Properties.md) | | [optional] +**paused** | **bool** | | [optional] [default to False] +**project** | [**Project**](Project.md) | | [optional] +**project_id** | **str** | | [optional] +**project_internal_id** | **str** | | [optional] +**project_name** | **str** | | [optional] +**settings** | [**Properties**](Properties.md) | | [optional] +**snapshot_dependencies** | [**SnapshotDependencies**](SnapshotDependencies.md) | | [optional] +**steps** | [**Steps**](Steps.md) | | [optional] +**template** | [**BuildType**](BuildType.md) | | [optional] +**template_flag** | **bool** | | [optional] [default to False] +**triggers** | [**Triggers**](Triggers.md) | | [optional] +**uuid** | **str** | | [optional] +**vcs_root_entries** | [**VcsRootEntries**](VcsRootEntries.md) | | [optional] +**web_url** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BuildTypeApi.md b/docs/BuildTypeApi.md new file mode 100644 index 0000000..67c70de --- /dev/null +++ b/docs/BuildTypeApi.md @@ -0,0 +1,5630 @@ +# swagger_client.BuildTypeApi + +All URIs are relative to *https://teamcity.ptsecurity.ru* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**add_agent_requirement**](BuildTypeApi.md#add_agent_requirement) | **POST** /app/rest/buildTypes/{btLocator}/agent-requirements | +[**add_artifact_dep**](BuildTypeApi.md#add_artifact_dep) | **POST** /app/rest/buildTypes/{btLocator}/artifact-dependencies | +[**add_build_type**](BuildTypeApi.md#add_build_type) | **POST** /app/rest/buildTypes | +[**add_feature**](BuildTypeApi.md#add_feature) | **POST** /app/rest/buildTypes/{btLocator}/features | +[**add_feature_parameter**](BuildTypeApi.md#add_feature_parameter) | **PUT** /app/rest/buildTypes/{btLocator}/features/{featureId}/parameters/{parameterName} | +[**add_snapshot_dep**](BuildTypeApi.md#add_snapshot_dep) | **POST** /app/rest/buildTypes/{btLocator}/snapshot-dependencies | +[**add_step**](BuildTypeApi.md#add_step) | **POST** /app/rest/buildTypes/{btLocator}/steps | +[**add_step_parameter**](BuildTypeApi.md#add_step_parameter) | **PUT** /app/rest/buildTypes/{btLocator}/steps/{stepId}/parameters/{parameterName} | +[**add_trigger**](BuildTypeApi.md#add_trigger) | **POST** /app/rest/buildTypes/{btLocator}/triggers | +[**add_vcs_root_entry**](BuildTypeApi.md#add_vcs_root_entry) | **POST** /app/rest/buildTypes/{btLocator}/vcs-root-entries | +[**change_artifact_dep_setting**](BuildTypeApi.md#change_artifact_dep_setting) | **PUT** /app/rest/buildTypes/{btLocator}/artifact-dependencies/{artifactDepLocator}/{fieldName} | +[**change_feature_setting**](BuildTypeApi.md#change_feature_setting) | **PUT** /app/rest/buildTypes/{btLocator}/features/{featureId}/{name} | +[**change_requirement_setting**](BuildTypeApi.md#change_requirement_setting) | **PUT** /app/rest/buildTypes/{btLocator}/agent-requirements/{agentRequirementLocator}/{fieldName} | +[**change_step_setting**](BuildTypeApi.md#change_step_setting) | **PUT** /app/rest/buildTypes/{btLocator}/steps/{stepId}/{fieldName} | +[**change_trigger_setting**](BuildTypeApi.md#change_trigger_setting) | **PUT** /app/rest/buildTypes/{btLocator}/triggers/{triggerLocator}/{fieldName} | +[**delete_agent_requirement**](BuildTypeApi.md#delete_agent_requirement) | **DELETE** /app/rest/buildTypes/{btLocator}/agent-requirements/{agentRequirementLocator} | +[**delete_all_parameters**](BuildTypeApi.md#delete_all_parameters) | **DELETE** /app/rest/buildTypes/{btLocator}/parameters | +[**delete_all_parameters_0**](BuildTypeApi.md#delete_all_parameters_0) | **DELETE** /app/rest/buildTypes/{btLocator}/settings | +[**delete_artifact_dep**](BuildTypeApi.md#delete_artifact_dep) | **DELETE** /app/rest/buildTypes/{btLocator}/artifact-dependencies/{artifactDepLocator} | +[**delete_build_type**](BuildTypeApi.md#delete_build_type) | **DELETE** /app/rest/buildTypes/{btLocator} | +[**delete_feature**](BuildTypeApi.md#delete_feature) | **DELETE** /app/rest/buildTypes/{btLocator}/features/{featureId} | +[**delete_parameter**](BuildTypeApi.md#delete_parameter) | **DELETE** /app/rest/buildTypes/{btLocator}/parameters/{name} | +[**delete_parameter_0**](BuildTypeApi.md#delete_parameter_0) | **DELETE** /app/rest/buildTypes/{btLocator}/settings/{name} | +[**delete_snapshot_dep**](BuildTypeApi.md#delete_snapshot_dep) | **DELETE** /app/rest/buildTypes/{btLocator}/snapshot-dependencies/{snapshotDepLocator} | +[**delete_step**](BuildTypeApi.md#delete_step) | **DELETE** /app/rest/buildTypes/{btLocator}/steps/{stepId} | +[**delete_template_association**](BuildTypeApi.md#delete_template_association) | **DELETE** /app/rest/buildTypes/{btLocator}/template | +[**delete_trigger**](BuildTypeApi.md#delete_trigger) | **DELETE** /app/rest/buildTypes/{btLocator}/triggers/{triggerLocator} | +[**delete_vcs_root_entry**](BuildTypeApi.md#delete_vcs_root_entry) | **DELETE** /app/rest/buildTypes/{btLocator}/vcs-root-entries/{vcsRootLocator} | +[**get_agent_requirement**](BuildTypeApi.md#get_agent_requirement) | **GET** /app/rest/buildTypes/{btLocator}/agent-requirements/{agentRequirementLocator} | +[**get_agent_requirements**](BuildTypeApi.md#get_agent_requirements) | **GET** /app/rest/buildTypes/{btLocator}/agent-requirements | +[**get_aliases**](BuildTypeApi.md#get_aliases) | **GET** /app/rest/buildTypes/{btLocator}/aliases | +[**get_artifact_dep**](BuildTypeApi.md#get_artifact_dep) | **GET** /app/rest/buildTypes/{btLocator}/artifact-dependencies/{artifactDepLocator} | +[**get_artifact_dep_setting**](BuildTypeApi.md#get_artifact_dep_setting) | **GET** /app/rest/buildTypes/{btLocator}/artifact-dependencies/{artifactDepLocator}/{fieldName} | +[**get_artifact_deps**](BuildTypeApi.md#get_artifact_deps) | **GET** /app/rest/buildTypes/{btLocator}/artifact-dependencies | +[**get_build_types**](BuildTypeApi.md#get_build_types) | **GET** /app/rest/buildTypes | +[**get_children**](BuildTypeApi.md#get_children) | **GET** /app/rest/buildTypes/{btLocator}/vcs/files/latest/children{path} | +[**get_children_alias**](BuildTypeApi.md#get_children_alias) | **GET** /app/rest/buildTypes/{btLocator}/vcs/files/latest/{path} | +[**get_content**](BuildTypeApi.md#get_content) | **GET** /app/rest/buildTypes/{btLocator}/vcs/files/latest/content{path} | +[**get_content_alias**](BuildTypeApi.md#get_content_alias) | **GET** /app/rest/buildTypes/{btLocator}/vcs/files/latest/files{path} | +[**get_current_vcs_instances**](BuildTypeApi.md#get_current_vcs_instances) | **GET** /app/rest/buildTypes/{btLocator}/vcs-root-instances | +[**get_example_new_project_description**](BuildTypeApi.md#get_example_new_project_description) | **GET** /app/rest/buildTypes/{btLocator}/example/newBuildTypeDescription | +[**get_example_new_project_description_compatibility_version1**](BuildTypeApi.md#get_example_new_project_description_compatibility_version1) | **GET** /app/rest/buildTypes/{btLocator}/newBuildTypeDescription | +[**get_feature**](BuildTypeApi.md#get_feature) | **GET** /app/rest/buildTypes/{btLocator}/features/{featureId} | +[**get_feature_parameter**](BuildTypeApi.md#get_feature_parameter) | **GET** /app/rest/buildTypes/{btLocator}/features/{featureId}/parameters/{parameterName} | +[**get_feature_parameters**](BuildTypeApi.md#get_feature_parameters) | **GET** /app/rest/buildTypes/{btLocator}/features/{featureId}/parameters | +[**get_feature_setting**](BuildTypeApi.md#get_feature_setting) | **GET** /app/rest/buildTypes/{btLocator}/features/{featureId}/{name} | +[**get_features**](BuildTypeApi.md#get_features) | **GET** /app/rest/buildTypes/{btLocator}/features | +[**get_investigations**](BuildTypeApi.md#get_investigations) | **GET** /app/rest/buildTypes/{btLocator}/investigations | +[**get_metadata**](BuildTypeApi.md#get_metadata) | **GET** /app/rest/buildTypes/{btLocator}/vcs/files/latest/metadata{path} | +[**get_parameter**](BuildTypeApi.md#get_parameter) | **GET** /app/rest/buildTypes/{btLocator}/parameters/{name} | +[**get_parameter_0**](BuildTypeApi.md#get_parameter_0) | **GET** /app/rest/buildTypes/{btLocator}/settings/{name} | +[**get_parameter_type**](BuildTypeApi.md#get_parameter_type) | **GET** /app/rest/buildTypes/{btLocator}/parameters/{name}/type | +[**get_parameter_type_raw_value**](BuildTypeApi.md#get_parameter_type_raw_value) | **GET** /app/rest/buildTypes/{btLocator}/parameters/{name}/type/rawValue | +[**get_parameter_value_long**](BuildTypeApi.md#get_parameter_value_long) | **GET** /app/rest/buildTypes/{btLocator}/parameters/{name}/value | +[**get_parameter_value_long_0**](BuildTypeApi.md#get_parameter_value_long_0) | **GET** /app/rest/buildTypes/{btLocator}/settings/{name}/value | +[**get_parameters**](BuildTypeApi.md#get_parameters) | **GET** /app/rest/buildTypes/{btLocator}/parameters | +[**get_parameters_0**](BuildTypeApi.md#get_parameters_0) | **GET** /app/rest/buildTypes/{btLocator}/settings | +[**get_requirement_setting**](BuildTypeApi.md#get_requirement_setting) | **GET** /app/rest/buildTypes/{btLocator}/agent-requirements/{agentRequirementLocator}/{fieldName} | +[**get_root**](BuildTypeApi.md#get_root) | **GET** /app/rest/buildTypes/{btLocator}/vcs/files/latest | +[**get_settings_file**](BuildTypeApi.md#get_settings_file) | **GET** /app/rest/buildTypes/{btLocator}/settingsFile | +[**get_snapshot_dep**](BuildTypeApi.md#get_snapshot_dep) | **GET** /app/rest/buildTypes/{btLocator}/snapshot-dependencies/{snapshotDepLocator} | +[**get_snapshot_deps**](BuildTypeApi.md#get_snapshot_deps) | **GET** /app/rest/buildTypes/{btLocator}/snapshot-dependencies | +[**get_step**](BuildTypeApi.md#get_step) | **GET** /app/rest/buildTypes/{btLocator}/steps/{stepId} | +[**get_step_parameter**](BuildTypeApi.md#get_step_parameter) | **GET** /app/rest/buildTypes/{btLocator}/steps/{stepId}/parameters/{parameterName} | +[**get_step_parameters**](BuildTypeApi.md#get_step_parameters) | **GET** /app/rest/buildTypes/{btLocator}/steps/{stepId}/parameters | +[**get_step_setting**](BuildTypeApi.md#get_step_setting) | **GET** /app/rest/buildTypes/{btLocator}/steps/{stepId}/{fieldName} | +[**get_steps**](BuildTypeApi.md#get_steps) | **GET** /app/rest/buildTypes/{btLocator}/steps | +[**get_template_association**](BuildTypeApi.md#get_template_association) | **PUT** /app/rest/buildTypes/{btLocator}/template | +[**get_trigger**](BuildTypeApi.md#get_trigger) | **GET** /app/rest/buildTypes/{btLocator}/triggers/{triggerLocator} | +[**get_trigger_setting**](BuildTypeApi.md#get_trigger_setting) | **GET** /app/rest/buildTypes/{btLocator}/triggers/{triggerLocator}/{fieldName} | +[**get_triggers**](BuildTypeApi.md#get_triggers) | **GET** /app/rest/buildTypes/{btLocator}/triggers | +[**get_vcs_labeling_options**](BuildTypeApi.md#get_vcs_labeling_options) | **GET** /app/rest/buildTypes/{btLocator}/vcsLabeling | +[**get_vcs_root_entries**](BuildTypeApi.md#get_vcs_root_entries) | **GET** /app/rest/buildTypes/{btLocator}/vcs-root-entries | +[**get_vcs_root_entry**](BuildTypeApi.md#get_vcs_root_entry) | **GET** /app/rest/buildTypes/{btLocator}/vcs-root-entries/{vcsRootLocator} | +[**get_vcs_root_entry_checkout_rules**](BuildTypeApi.md#get_vcs_root_entry_checkout_rules) | **GET** /app/rest/buildTypes/{btLocator}/vcs-root-entries/{vcsRootLocator}/checkout-rules | +[**get_zipped**](BuildTypeApi.md#get_zipped) | **GET** /app/rest/buildTypes/{btLocator}/vcs/files/latest/archived{path} | +[**replace_agent_requirement**](BuildTypeApi.md#replace_agent_requirement) | **PUT** /app/rest/buildTypes/{btLocator}/agent-requirements/{agentRequirementLocator} | +[**replace_agent_requirements**](BuildTypeApi.md#replace_agent_requirements) | **PUT** /app/rest/buildTypes/{btLocator}/agent-requirements | +[**replace_artifact_dep**](BuildTypeApi.md#replace_artifact_dep) | **PUT** /app/rest/buildTypes/{btLocator}/artifact-dependencies/{artifactDepLocator} | +[**replace_artifact_deps**](BuildTypeApi.md#replace_artifact_deps) | **PUT** /app/rest/buildTypes/{btLocator}/artifact-dependencies | +[**replace_feature**](BuildTypeApi.md#replace_feature) | **PUT** /app/rest/buildTypes/{btLocator}/features/{featureId} | +[**replace_feature_parameters**](BuildTypeApi.md#replace_feature_parameters) | **PUT** /app/rest/buildTypes/{btLocator}/features/{featureId}/parameters | +[**replace_features**](BuildTypeApi.md#replace_features) | **PUT** /app/rest/buildTypes/{btLocator}/features | +[**replace_snapshot_dep**](BuildTypeApi.md#replace_snapshot_dep) | **PUT** /app/rest/buildTypes/{btLocator}/snapshot-dependencies/{snapshotDepLocator} | +[**replace_snapshot_deps**](BuildTypeApi.md#replace_snapshot_deps) | **PUT** /app/rest/buildTypes/{btLocator}/snapshot-dependencies | +[**replace_step**](BuildTypeApi.md#replace_step) | **PUT** /app/rest/buildTypes/{btLocator}/steps/{stepId} | +[**replace_step_parameters**](BuildTypeApi.md#replace_step_parameters) | **PUT** /app/rest/buildTypes/{btLocator}/steps/{stepId}/parameters | +[**replace_steps**](BuildTypeApi.md#replace_steps) | **PUT** /app/rest/buildTypes/{btLocator}/steps | +[**replace_trigger**](BuildTypeApi.md#replace_trigger) | **PUT** /app/rest/buildTypes/{btLocator}/triggers/{triggerLocator} | +[**replace_triggers**](BuildTypeApi.md#replace_triggers) | **PUT** /app/rest/buildTypes/{btLocator}/triggers | +[**replace_vcs_root_entries**](BuildTypeApi.md#replace_vcs_root_entries) | **PUT** /app/rest/buildTypes/{btLocator}/vcs-root-entries | +[**serve_branches**](BuildTypeApi.md#serve_branches) | **GET** /app/rest/buildTypes/{btLocator}/branches | +[**serve_build_field**](BuildTypeApi.md#serve_build_field) | **GET** /app/rest/buildTypes/{btLocator}/builds/{buildLocator}/{field} | +[**serve_build_type_builds_tags**](BuildTypeApi.md#serve_build_type_builds_tags) | **GET** /app/rest/buildTypes/{btLocator}/buildTags | +[**serve_build_type_field**](BuildTypeApi.md#serve_build_type_field) | **GET** /app/rest/buildTypes/{btLocator}/{field} | +[**serve_build_type_template**](BuildTypeApi.md#serve_build_type_template) | **GET** /app/rest/buildTypes/{btLocator}/template | +[**serve_build_type_xml**](BuildTypeApi.md#serve_build_type_xml) | **GET** /app/rest/buildTypes/{btLocator} | +[**serve_build_with_project**](BuildTypeApi.md#serve_build_with_project) | **GET** /app/rest/buildTypes/{btLocator}/builds/{buildLocator} | +[**serve_builds**](BuildTypeApi.md#serve_builds) | **GET** /app/rest/buildTypes/{btLocator}/builds | +[**set_build_type_field**](BuildTypeApi.md#set_build_type_field) | **PUT** /app/rest/buildTypes/{btLocator}/{field} | +[**set_parameter**](BuildTypeApi.md#set_parameter) | **POST** /app/rest/buildTypes/{btLocator}/parameters | +[**set_parameter_0**](BuildTypeApi.md#set_parameter_0) | **PUT** /app/rest/buildTypes/{btLocator}/parameters/{name} | +[**set_parameter_1**](BuildTypeApi.md#set_parameter_1) | **POST** /app/rest/buildTypes/{btLocator}/settings | +[**set_parameter_2**](BuildTypeApi.md#set_parameter_2) | **PUT** /app/rest/buildTypes/{btLocator}/settings/{name} | +[**set_parameter_type**](BuildTypeApi.md#set_parameter_type) | **PUT** /app/rest/buildTypes/{btLocator}/parameters/{name}/type | +[**set_parameter_type_raw_value**](BuildTypeApi.md#set_parameter_type_raw_value) | **PUT** /app/rest/buildTypes/{btLocator}/parameters/{name}/type/rawValue | +[**set_parameter_value_long**](BuildTypeApi.md#set_parameter_value_long) | **PUT** /app/rest/buildTypes/{btLocator}/parameters/{name}/value | +[**set_parameter_value_long_0**](BuildTypeApi.md#set_parameter_value_long_0) | **PUT** /app/rest/buildTypes/{btLocator}/settings/{name}/value | +[**set_parameters**](BuildTypeApi.md#set_parameters) | **PUT** /app/rest/buildTypes/{btLocator}/parameters | +[**set_parameters_0**](BuildTypeApi.md#set_parameters_0) | **PUT** /app/rest/buildTypes/{btLocator}/settings | +[**set_vcs_labeling_options**](BuildTypeApi.md#set_vcs_labeling_options) | **PUT** /app/rest/buildTypes/{btLocator}/vcsLabeling | +[**update_vcs_root_entry**](BuildTypeApi.md#update_vcs_root_entry) | **PUT** /app/rest/buildTypes/{btLocator}/vcs-root-entries/{vcsRootLocator} | +[**update_vcs_root_entry_checkout_rules**](BuildTypeApi.md#update_vcs_root_entry_checkout_rules) | **PUT** /app/rest/buildTypes/{btLocator}/vcs-root-entries/{vcsRootLocator}/checkout-rules | + + +# **add_agent_requirement** +> AgentRequirement add_agent_requirement(bt_locator, fields=fields, body=body) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | +fields = 'fields_example' # str | (optional) +body = swagger_client.AgentRequirement() # AgentRequirement | (optional) + +try: + api_response = api_instance.add_agent_requirement(bt_locator, fields=fields, body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->add_agent_requirement: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + **fields** | **str**| | [optional] + **body** | [**AgentRequirement**](AgentRequirement.md)| | [optional] + +### Return type + +[**AgentRequirement**](AgentRequirement.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **add_artifact_dep** +> ArtifactDependency add_artifact_dep(bt_locator, fields=fields, body=body) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | +fields = 'fields_example' # str | (optional) +body = swagger_client.ArtifactDependency() # ArtifactDependency | (optional) + +try: + api_response = api_instance.add_artifact_dep(bt_locator, fields=fields, body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->add_artifact_dep: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + **fields** | **str**| | [optional] + **body** | [**ArtifactDependency**](ArtifactDependency.md)| | [optional] + +### Return type + +[**ArtifactDependency**](ArtifactDependency.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **add_build_type** +> BuildType add_build_type(body=body, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +body = swagger_client.BuildType() # BuildType | (optional) +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.add_build_type(body=body, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->add_build_type: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**BuildType**](BuildType.md)| | [optional] + **fields** | **str**| | [optional] + +### Return type + +[**BuildType**](BuildType.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **add_feature** +> Feature add_feature(bt_locator, fields=fields, body=body) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | +fields = 'fields_example' # str | (optional) +body = swagger_client.Feature() # Feature | (optional) + +try: + api_response = api_instance.add_feature(bt_locator, fields=fields, body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->add_feature: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + **fields** | **str**| | [optional] + **body** | [**Feature**](Feature.md)| | [optional] + +### Return type + +[**Feature**](Feature.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **add_feature_parameter** +> str add_feature_parameter(bt_locator, feature_id, parameter_name, body=body) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | +feature_id = 'feature_id_example' # str | +parameter_name = 'parameter_name_example' # str | +body = 'body_example' # str | (optional) + +try: + api_response = api_instance.add_feature_parameter(bt_locator, feature_id, parameter_name, body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->add_feature_parameter: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + **feature_id** | **str**| | + **parameter_name** | **str**| | + **body** | **str**| | [optional] + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **add_snapshot_dep** +> SnapshotDependency add_snapshot_dep(bt_locator, fields=fields, body=body) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | +fields = 'fields_example' # str | (optional) +body = swagger_client.SnapshotDependency() # SnapshotDependency | (optional) + +try: + api_response = api_instance.add_snapshot_dep(bt_locator, fields=fields, body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->add_snapshot_dep: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + **fields** | **str**| | [optional] + **body** | [**SnapshotDependency**](SnapshotDependency.md)| | [optional] + +### Return type + +[**SnapshotDependency**](SnapshotDependency.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **add_step** +> Step add_step(bt_locator, fields=fields, body=body) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | +fields = 'fields_example' # str | (optional) +body = swagger_client.Step() # Step | (optional) + +try: + api_response = api_instance.add_step(bt_locator, fields=fields, body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->add_step: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + **fields** | **str**| | [optional] + **body** | [**Step**](Step.md)| | [optional] + +### Return type + +[**Step**](Step.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **add_step_parameter** +> str add_step_parameter(bt_locator, step_id, parameter_name, body=body) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | +step_id = 'step_id_example' # str | +parameter_name = 'parameter_name_example' # str | +body = 'body_example' # str | (optional) + +try: + api_response = api_instance.add_step_parameter(bt_locator, step_id, parameter_name, body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->add_step_parameter: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + **step_id** | **str**| | + **parameter_name** | **str**| | + **body** | **str**| | [optional] + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **add_trigger** +> Trigger add_trigger(bt_locator, fields=fields, body=body) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | +fields = 'fields_example' # str | (optional) +body = swagger_client.Trigger() # Trigger | (optional) + +try: + api_response = api_instance.add_trigger(bt_locator, fields=fields, body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->add_trigger: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + **fields** | **str**| | [optional] + **body** | [**Trigger**](Trigger.md)| | [optional] + +### Return type + +[**Trigger**](Trigger.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **add_vcs_root_entry** +> VcsRootEntry add_vcs_root_entry(bt_locator, body=body, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | +body = swagger_client.VcsRootEntry() # VcsRootEntry | (optional) +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.add_vcs_root_entry(bt_locator, body=body, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->add_vcs_root_entry: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + **body** | [**VcsRootEntry**](VcsRootEntry.md)| | [optional] + **fields** | **str**| | [optional] + +### Return type + +[**VcsRootEntry**](VcsRootEntry.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **change_artifact_dep_setting** +> str change_artifact_dep_setting(bt_locator, artifact_dep_locator, field_name, body=body) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | +artifact_dep_locator = 'artifact_dep_locator_example' # str | +field_name = 'field_name_example' # str | +body = 'body_example' # str | (optional) + +try: + api_response = api_instance.change_artifact_dep_setting(bt_locator, artifact_dep_locator, field_name, body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->change_artifact_dep_setting: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + **artifact_dep_locator** | **str**| | + **field_name** | **str**| | + **body** | **str**| | [optional] + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **change_feature_setting** +> str change_feature_setting(bt_locator, feature_id, name, body=body) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | +feature_id = 'feature_id_example' # str | +name = 'name_example' # str | +body = 'body_example' # str | (optional) + +try: + api_response = api_instance.change_feature_setting(bt_locator, feature_id, name, body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->change_feature_setting: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + **feature_id** | **str**| | + **name** | **str**| | + **body** | **str**| | [optional] + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **change_requirement_setting** +> str change_requirement_setting(bt_locator, agent_requirement_locator, field_name, body=body) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | +agent_requirement_locator = 'agent_requirement_locator_example' # str | +field_name = 'field_name_example' # str | +body = 'body_example' # str | (optional) + +try: + api_response = api_instance.change_requirement_setting(bt_locator, agent_requirement_locator, field_name, body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->change_requirement_setting: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + **agent_requirement_locator** | **str**| | + **field_name** | **str**| | + **body** | **str**| | [optional] + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **change_step_setting** +> str change_step_setting(bt_locator, step_id, field_name, body=body) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | +step_id = 'step_id_example' # str | +field_name = 'field_name_example' # str | +body = 'body_example' # str | (optional) + +try: + api_response = api_instance.change_step_setting(bt_locator, step_id, field_name, body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->change_step_setting: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + **step_id** | **str**| | + **field_name** | **str**| | + **body** | **str**| | [optional] + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **change_trigger_setting** +> str change_trigger_setting(bt_locator, trigger_locator, field_name, body=body) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | +trigger_locator = 'trigger_locator_example' # str | +field_name = 'field_name_example' # str | +body = 'body_example' # str | (optional) + +try: + api_response = api_instance.change_trigger_setting(bt_locator, trigger_locator, field_name, body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->change_trigger_setting: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + **trigger_locator** | **str**| | + **field_name** | **str**| | + **body** | **str**| | [optional] + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_agent_requirement** +> delete_agent_requirement(bt_locator, agent_requirement_locator) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | +agent_requirement_locator = 'agent_requirement_locator_example' # str | + +try: + api_instance.delete_agent_requirement(bt_locator, agent_requirement_locator) +except ApiException as e: + print("Exception when calling BuildTypeApi->delete_agent_requirement: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + **agent_requirement_locator** | **str**| | + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_all_parameters** +> delete_all_parameters(bt_locator) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | + +try: + api_instance.delete_all_parameters(bt_locator) +except ApiException as e: + print("Exception when calling BuildTypeApi->delete_all_parameters: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_all_parameters_0** +> delete_all_parameters_0(bt_locator) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | + +try: + api_instance.delete_all_parameters_0(bt_locator) +except ApiException as e: + print("Exception when calling BuildTypeApi->delete_all_parameters_0: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_artifact_dep** +> delete_artifact_dep(bt_locator, artifact_dep_locator) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | +artifact_dep_locator = 'artifact_dep_locator_example' # str | + +try: + api_instance.delete_artifact_dep(bt_locator, artifact_dep_locator) +except ApiException as e: + print("Exception when calling BuildTypeApi->delete_artifact_dep: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + **artifact_dep_locator** | **str**| | + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_build_type** +> delete_build_type(bt_locator) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | + +try: + api_instance.delete_build_type(bt_locator) +except ApiException as e: + print("Exception when calling BuildTypeApi->delete_build_type: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_feature** +> delete_feature(bt_locator, feature_id) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | +feature_id = 'feature_id_example' # str | + +try: + api_instance.delete_feature(bt_locator, feature_id) +except ApiException as e: + print("Exception when calling BuildTypeApi->delete_feature: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + **feature_id** | **str**| | + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_parameter** +> delete_parameter(name, bt_locator) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +name = 'name_example' # str | +bt_locator = 'bt_locator_example' # str | + +try: + api_instance.delete_parameter(name, bt_locator) +except ApiException as e: + print("Exception when calling BuildTypeApi->delete_parameter: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| | + **bt_locator** | **str**| | + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_parameter_0** +> delete_parameter_0(name, bt_locator) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +name = 'name_example' # str | +bt_locator = 'bt_locator_example' # str | + +try: + api_instance.delete_parameter_0(name, bt_locator) +except ApiException as e: + print("Exception when calling BuildTypeApi->delete_parameter_0: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| | + **bt_locator** | **str**| | + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_snapshot_dep** +> delete_snapshot_dep(bt_locator, snapshot_dep_locator) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | +snapshot_dep_locator = 'snapshot_dep_locator_example' # str | + +try: + api_instance.delete_snapshot_dep(bt_locator, snapshot_dep_locator) +except ApiException as e: + print("Exception when calling BuildTypeApi->delete_snapshot_dep: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + **snapshot_dep_locator** | **str**| | + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_step** +> delete_step(bt_locator, step_id) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | +step_id = 'step_id_example' # str | + +try: + api_instance.delete_step(bt_locator, step_id) +except ApiException as e: + print("Exception when calling BuildTypeApi->delete_step: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + **step_id** | **str**| | + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_template_association** +> delete_template_association(bt_locator) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | + +try: + api_instance.delete_template_association(bt_locator) +except ApiException as e: + print("Exception when calling BuildTypeApi->delete_template_association: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_trigger** +> delete_trigger(bt_locator, trigger_locator) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | +trigger_locator = 'trigger_locator_example' # str | + +try: + api_instance.delete_trigger(bt_locator, trigger_locator) +except ApiException as e: + print("Exception when calling BuildTypeApi->delete_trigger: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + **trigger_locator** | **str**| | + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_vcs_root_entry** +> delete_vcs_root_entry(bt_locator, vcs_root_locator) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | +vcs_root_locator = 'vcs_root_locator_example' # str | + +try: + api_instance.delete_vcs_root_entry(bt_locator, vcs_root_locator) +except ApiException as e: + print("Exception when calling BuildTypeApi->delete_vcs_root_entry: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + **vcs_root_locator** | **str**| | + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_agent_requirement** +> AgentRequirement get_agent_requirement(bt_locator, agent_requirement_locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | +agent_requirement_locator = 'agent_requirement_locator_example' # str | +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.get_agent_requirement(bt_locator, agent_requirement_locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->get_agent_requirement: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + **agent_requirement_locator** | **str**| | + **fields** | **str**| | [optional] + +### Return type + +[**AgentRequirement**](AgentRequirement.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_agent_requirements** +> AgentRequirements get_agent_requirements(bt_locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.get_agent_requirements(bt_locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->get_agent_requirements: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + **fields** | **str**| | [optional] + +### Return type + +[**AgentRequirements**](AgentRequirements.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_aliases** +> Items get_aliases(bt_locator, field) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | +field = 'field_example' # str | + +try: + api_response = api_instance.get_aliases(bt_locator, field) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->get_aliases: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + **field** | **str**| | + +### Return type + +[**Items**](Items.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_artifact_dep** +> ArtifactDependency get_artifact_dep(bt_locator, artifact_dep_locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | +artifact_dep_locator = 'artifact_dep_locator_example' # str | +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.get_artifact_dep(bt_locator, artifact_dep_locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->get_artifact_dep: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + **artifact_dep_locator** | **str**| | + **fields** | **str**| | [optional] + +### Return type + +[**ArtifactDependency**](ArtifactDependency.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_artifact_dep_setting** +> str get_artifact_dep_setting(bt_locator, artifact_dep_locator, field_name) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | +artifact_dep_locator = 'artifact_dep_locator_example' # str | +field_name = 'field_name_example' # str | + +try: + api_response = api_instance.get_artifact_dep_setting(bt_locator, artifact_dep_locator, field_name) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->get_artifact_dep_setting: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + **artifact_dep_locator** | **str**| | + **field_name** | **str**| | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_artifact_deps** +> ArtifactDependencies get_artifact_deps(bt_locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.get_artifact_deps(bt_locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->get_artifact_deps: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + **fields** | **str**| | [optional] + +### Return type + +[**ArtifactDependencies**](ArtifactDependencies.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_build_types** +> BuildTypes get_build_types(locator=locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +locator = 'locator_example' # str | (optional) +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.get_build_types(locator=locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->get_build_types: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **locator** | **str**| | [optional] + **fields** | **str**| | [optional] + +### Return type + +[**BuildTypes**](BuildTypes.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_children** +> Files get_children(path, bt_locator, base_path=base_path, locator=locator, fields=fields, resolve_parameters=resolve_parameters) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +path = 'path_example' # str | +bt_locator = 'bt_locator_example' # str | +base_path = 'base_path_example' # str | (optional) +locator = 'locator_example' # str | (optional) +fields = 'fields_example' # str | (optional) +resolve_parameters = true # bool | (optional) + +try: + api_response = api_instance.get_children(path, bt_locator, base_path=base_path, locator=locator, fields=fields, resolve_parameters=resolve_parameters) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->get_children: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **path** | **str**| | + **bt_locator** | **str**| | + **base_path** | **str**| | [optional] + **locator** | **str**| | [optional] + **fields** | **str**| | [optional] + **resolve_parameters** | **bool**| | [optional] + +### Return type + +[**Files**](Files.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_children_alias** +> Files get_children_alias(path, bt_locator, base_path=base_path, locator=locator, fields=fields, resolve_parameters=resolve_parameters) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +path = 'path_example' # str | +bt_locator = 'bt_locator_example' # str | +base_path = 'base_path_example' # str | (optional) +locator = 'locator_example' # str | (optional) +fields = 'fields_example' # str | (optional) +resolve_parameters = true # bool | (optional) + +try: + api_response = api_instance.get_children_alias(path, bt_locator, base_path=base_path, locator=locator, fields=fields, resolve_parameters=resolve_parameters) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->get_children_alias: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **path** | **str**| | + **bt_locator** | **str**| | + **base_path** | **str**| | [optional] + **locator** | **str**| | [optional] + **fields** | **str**| | [optional] + **resolve_parameters** | **bool**| | [optional] + +### Return type + +[**Files**](Files.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_content** +> get_content(path, bt_locator, resolve_parameters=resolve_parameters) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +path = 'path_example' # str | +bt_locator = 'bt_locator_example' # str | +resolve_parameters = true # bool | (optional) + +try: + api_instance.get_content(path, bt_locator, resolve_parameters=resolve_parameters) +except ApiException as e: + print("Exception when calling BuildTypeApi->get_content: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **path** | **str**| | + **bt_locator** | **str**| | + **resolve_parameters** | **bool**| | [optional] + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_content_alias** +> get_content_alias(path, bt_locator, resolve_parameters=resolve_parameters) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +path = 'path_example' # str | +bt_locator = 'bt_locator_example' # str | +resolve_parameters = true # bool | (optional) + +try: + api_instance.get_content_alias(path, bt_locator, resolve_parameters=resolve_parameters) +except ApiException as e: + print("Exception when calling BuildTypeApi->get_content_alias: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **path** | **str**| | + **bt_locator** | **str**| | + **resolve_parameters** | **bool**| | [optional] + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_current_vcs_instances** +> VcsRootInstances get_current_vcs_instances(bt_locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.get_current_vcs_instances(bt_locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->get_current_vcs_instances: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + **fields** | **str**| | [optional] + +### Return type + +[**VcsRootInstances**](VcsRootInstances.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_example_new_project_description** +> NewBuildTypeDescription get_example_new_project_description(bt_locator) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | + +try: + api_response = api_instance.get_example_new_project_description(bt_locator) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->get_example_new_project_description: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + +### Return type + +[**NewBuildTypeDescription**](NewBuildTypeDescription.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_example_new_project_description_compatibility_version1** +> NewBuildTypeDescription get_example_new_project_description_compatibility_version1(bt_locator) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | + +try: + api_response = api_instance.get_example_new_project_description_compatibility_version1(bt_locator) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->get_example_new_project_description_compatibility_version1: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + +### Return type + +[**NewBuildTypeDescription**](NewBuildTypeDescription.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_feature** +> Feature get_feature(bt_locator, feature_id, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | +feature_id = 'feature_id_example' # str | +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.get_feature(bt_locator, feature_id, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->get_feature: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + **feature_id** | **str**| | + **fields** | **str**| | [optional] + +### Return type + +[**Feature**](Feature.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_feature_parameter** +> str get_feature_parameter(bt_locator, feature_id, parameter_name) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | +feature_id = 'feature_id_example' # str | +parameter_name = 'parameter_name_example' # str | + +try: + api_response = api_instance.get_feature_parameter(bt_locator, feature_id, parameter_name) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->get_feature_parameter: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + **feature_id** | **str**| | + **parameter_name** | **str**| | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_feature_parameters** +> Properties get_feature_parameters(bt_locator, feature_id, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | +feature_id = 'feature_id_example' # str | +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.get_feature_parameters(bt_locator, feature_id, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->get_feature_parameters: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + **feature_id** | **str**| | + **fields** | **str**| | [optional] + +### Return type + +[**Properties**](Properties.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_feature_setting** +> str get_feature_setting(bt_locator, feature_id, name) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | +feature_id = 'feature_id_example' # str | +name = 'name_example' # str | + +try: + api_response = api_instance.get_feature_setting(bt_locator, feature_id, name) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->get_feature_setting: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + **feature_id** | **str**| | + **name** | **str**| | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_features** +> Features get_features(bt_locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.get_features(bt_locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->get_features: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + **fields** | **str**| | [optional] + +### Return type + +[**Features**](Features.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_investigations** +> Investigations get_investigations(bt_locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.get_investigations(bt_locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->get_investigations: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + **fields** | **str**| | [optional] + +### Return type + +[**Investigations**](Investigations.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_metadata** +> file get_metadata(path, bt_locator, fields=fields, resolve_parameters=resolve_parameters) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +path = 'path_example' # str | +bt_locator = 'bt_locator_example' # str | +fields = 'fields_example' # str | (optional) +resolve_parameters = true # bool | (optional) + +try: + api_response = api_instance.get_metadata(path, bt_locator, fields=fields, resolve_parameters=resolve_parameters) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->get_metadata: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **path** | **str**| | + **bt_locator** | **str**| | + **fields** | **str**| | [optional] + **resolve_parameters** | **bool**| | [optional] + +### Return type + +[**file**](file.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_parameter** +> ModelProperty get_parameter(name, bt_locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +name = 'name_example' # str | +bt_locator = 'bt_locator_example' # str | +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.get_parameter(name, bt_locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->get_parameter: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| | + **bt_locator** | **str**| | + **fields** | **str**| | [optional] + +### Return type + +[**ModelProperty**](ModelProperty.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_parameter_0** +> ModelProperty get_parameter_0(name, bt_locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +name = 'name_example' # str | +bt_locator = 'bt_locator_example' # str | +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.get_parameter_0(name, bt_locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->get_parameter_0: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| | + **bt_locator** | **str**| | + **fields** | **str**| | [optional] + +### Return type + +[**ModelProperty**](ModelProperty.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_parameter_type** +> Type get_parameter_type(name, bt_locator) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +name = 'name_example' # str | +bt_locator = 'bt_locator_example' # str | + +try: + api_response = api_instance.get_parameter_type(name, bt_locator) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->get_parameter_type: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| | + **bt_locator** | **str**| | + +### Return type + +[**Type**](Type.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_parameter_type_raw_value** +> str get_parameter_type_raw_value(name, bt_locator) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +name = 'name_example' # str | +bt_locator = 'bt_locator_example' # str | + +try: + api_response = api_instance.get_parameter_type_raw_value(name, bt_locator) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->get_parameter_type_raw_value: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| | + **bt_locator** | **str**| | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_parameter_value_long** +> str get_parameter_value_long(name, bt_locator) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +name = 'name_example' # str | +bt_locator = 'bt_locator_example' # str | + +try: + api_response = api_instance.get_parameter_value_long(name, bt_locator) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->get_parameter_value_long: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| | + **bt_locator** | **str**| | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_parameter_value_long_0** +> str get_parameter_value_long_0(name, bt_locator) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +name = 'name_example' # str | +bt_locator = 'bt_locator_example' # str | + +try: + api_response = api_instance.get_parameter_value_long_0(name, bt_locator) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->get_parameter_value_long_0: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| | + **bt_locator** | **str**| | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_parameters** +> Properties get_parameters(bt_locator, locator=locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | +locator = 'locator_example' # str | (optional) +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.get_parameters(bt_locator, locator=locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->get_parameters: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + **locator** | **str**| | [optional] + **fields** | **str**| | [optional] + +### Return type + +[**Properties**](Properties.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_parameters_0** +> Properties get_parameters_0(bt_locator, locator=locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | +locator = 'locator_example' # str | (optional) +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.get_parameters_0(bt_locator, locator=locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->get_parameters_0: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + **locator** | **str**| | [optional] + **fields** | **str**| | [optional] + +### Return type + +[**Properties**](Properties.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_requirement_setting** +> str get_requirement_setting(bt_locator, agent_requirement_locator, field_name) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | +agent_requirement_locator = 'agent_requirement_locator_example' # str | +field_name = 'field_name_example' # str | + +try: + api_response = api_instance.get_requirement_setting(bt_locator, agent_requirement_locator, field_name) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->get_requirement_setting: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + **agent_requirement_locator** | **str**| | + **field_name** | **str**| | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_root** +> Files get_root(bt_locator, base_path=base_path, locator=locator, fields=fields, resolve_parameters=resolve_parameters) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | +base_path = 'base_path_example' # str | (optional) +locator = 'locator_example' # str | (optional) +fields = 'fields_example' # str | (optional) +resolve_parameters = true # bool | (optional) + +try: + api_response = api_instance.get_root(bt_locator, base_path=base_path, locator=locator, fields=fields, resolve_parameters=resolve_parameters) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->get_root: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + **base_path** | **str**| | [optional] + **locator** | **str**| | [optional] + **fields** | **str**| | [optional] + **resolve_parameters** | **bool**| | [optional] + +### Return type + +[**Files**](Files.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_settings_file** +> str get_settings_file(bt_locator) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | + +try: + api_response = api_instance.get_settings_file(bt_locator) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->get_settings_file: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_snapshot_dep** +> SnapshotDependency get_snapshot_dep(bt_locator, snapshot_dep_locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | +snapshot_dep_locator = 'snapshot_dep_locator_example' # str | +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.get_snapshot_dep(bt_locator, snapshot_dep_locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->get_snapshot_dep: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + **snapshot_dep_locator** | **str**| | + **fields** | **str**| | [optional] + +### Return type + +[**SnapshotDependency**](SnapshotDependency.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_snapshot_deps** +> SnapshotDependencies get_snapshot_deps(bt_locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.get_snapshot_deps(bt_locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->get_snapshot_deps: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + **fields** | **str**| | [optional] + +### Return type + +[**SnapshotDependencies**](SnapshotDependencies.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_step** +> Step get_step(bt_locator, step_id, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | +step_id = 'step_id_example' # str | +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.get_step(bt_locator, step_id, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->get_step: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + **step_id** | **str**| | + **fields** | **str**| | [optional] + +### Return type + +[**Step**](Step.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_step_parameter** +> str get_step_parameter(bt_locator, step_id, parameter_name) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | +step_id = 'step_id_example' # str | +parameter_name = 'parameter_name_example' # str | + +try: + api_response = api_instance.get_step_parameter(bt_locator, step_id, parameter_name) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->get_step_parameter: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + **step_id** | **str**| | + **parameter_name** | **str**| | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_step_parameters** +> Properties get_step_parameters(bt_locator, step_id, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | +step_id = 'step_id_example' # str | +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.get_step_parameters(bt_locator, step_id, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->get_step_parameters: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + **step_id** | **str**| | + **fields** | **str**| | [optional] + +### Return type + +[**Properties**](Properties.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_step_setting** +> str get_step_setting(bt_locator, step_id, field_name) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | +step_id = 'step_id_example' # str | +field_name = 'field_name_example' # str | + +try: + api_response = api_instance.get_step_setting(bt_locator, step_id, field_name) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->get_step_setting: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + **step_id** | **str**| | + **field_name** | **str**| | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_steps** +> Steps get_steps(bt_locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.get_steps(bt_locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->get_steps: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + **fields** | **str**| | [optional] + +### Return type + +[**Steps**](Steps.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_template_association** +> BuildType get_template_association(bt_locator, body=body, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | +body = 'body_example' # str | (optional) +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.get_template_association(bt_locator, body=body, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->get_template_association: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + **body** | **str**| | [optional] + **fields** | **str**| | [optional] + +### Return type + +[**BuildType**](BuildType.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_trigger** +> Trigger get_trigger(bt_locator, trigger_locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | +trigger_locator = 'trigger_locator_example' # str | +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.get_trigger(bt_locator, trigger_locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->get_trigger: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + **trigger_locator** | **str**| | + **fields** | **str**| | [optional] + +### Return type + +[**Trigger**](Trigger.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_trigger_setting** +> str get_trigger_setting(bt_locator, trigger_locator, field_name) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | +trigger_locator = 'trigger_locator_example' # str | +field_name = 'field_name_example' # str | + +try: + api_response = api_instance.get_trigger_setting(bt_locator, trigger_locator, field_name) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->get_trigger_setting: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + **trigger_locator** | **str**| | + **field_name** | **str**| | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_triggers** +> Triggers get_triggers(bt_locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.get_triggers(bt_locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->get_triggers: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + **fields** | **str**| | [optional] + +### Return type + +[**Triggers**](Triggers.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_vcs_labeling_options** +> VcsLabeling get_vcs_labeling_options(bt_locator) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | + +try: + api_response = api_instance.get_vcs_labeling_options(bt_locator) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->get_vcs_labeling_options: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + +### Return type + +[**VcsLabeling**](VcsLabeling.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_vcs_root_entries** +> VcsRootEntries get_vcs_root_entries(bt_locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.get_vcs_root_entries(bt_locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->get_vcs_root_entries: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + **fields** | **str**| | [optional] + +### Return type + +[**VcsRootEntries**](VcsRootEntries.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_vcs_root_entry** +> VcsRootEntry get_vcs_root_entry(bt_locator, vcs_root_locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | +vcs_root_locator = 'vcs_root_locator_example' # str | +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.get_vcs_root_entry(bt_locator, vcs_root_locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->get_vcs_root_entry: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + **vcs_root_locator** | **str**| | + **fields** | **str**| | [optional] + +### Return type + +[**VcsRootEntry**](VcsRootEntry.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_vcs_root_entry_checkout_rules** +> str get_vcs_root_entry_checkout_rules(bt_locator, vcs_root_locator) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | +vcs_root_locator = 'vcs_root_locator_example' # str | + +try: + api_response = api_instance.get_vcs_root_entry_checkout_rules(bt_locator, vcs_root_locator) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->get_vcs_root_entry_checkout_rules: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + **vcs_root_locator** | **str**| | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_zipped** +> get_zipped(path, bt_locator, base_path=base_path, locator=locator, name=name, resolve_parameters=resolve_parameters) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +path = 'path_example' # str | +bt_locator = 'bt_locator_example' # str | +base_path = 'base_path_example' # str | (optional) +locator = 'locator_example' # str | (optional) +name = 'name_example' # str | (optional) +resolve_parameters = true # bool | (optional) + +try: + api_instance.get_zipped(path, bt_locator, base_path=base_path, locator=locator, name=name, resolve_parameters=resolve_parameters) +except ApiException as e: + print("Exception when calling BuildTypeApi->get_zipped: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **path** | **str**| | + **bt_locator** | **str**| | + **base_path** | **str**| | [optional] + **locator** | **str**| | [optional] + **name** | **str**| | [optional] + **resolve_parameters** | **bool**| | [optional] + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_agent_requirement** +> AgentRequirement replace_agent_requirement(bt_locator, agent_requirement_locator, fields=fields, body=body) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | +agent_requirement_locator = 'agent_requirement_locator_example' # str | +fields = 'fields_example' # str | (optional) +body = swagger_client.AgentRequirement() # AgentRequirement | (optional) + +try: + api_response = api_instance.replace_agent_requirement(bt_locator, agent_requirement_locator, fields=fields, body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->replace_agent_requirement: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + **agent_requirement_locator** | **str**| | + **fields** | **str**| | [optional] + **body** | [**AgentRequirement**](AgentRequirement.md)| | [optional] + +### Return type + +[**AgentRequirement**](AgentRequirement.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_agent_requirements** +> AgentRequirements replace_agent_requirements(bt_locator, fields=fields, body=body) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | +fields = 'fields_example' # str | (optional) +body = swagger_client.AgentRequirements() # AgentRequirements | (optional) + +try: + api_response = api_instance.replace_agent_requirements(bt_locator, fields=fields, body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->replace_agent_requirements: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + **fields** | **str**| | [optional] + **body** | [**AgentRequirements**](AgentRequirements.md)| | [optional] + +### Return type + +[**AgentRequirements**](AgentRequirements.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_artifact_dep** +> ArtifactDependency replace_artifact_dep(bt_locator, artifact_dep_locator, fields=fields, body=body) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | +artifact_dep_locator = 'artifact_dep_locator_example' # str | +fields = 'fields_example' # str | (optional) +body = swagger_client.ArtifactDependency() # ArtifactDependency | (optional) + +try: + api_response = api_instance.replace_artifact_dep(bt_locator, artifact_dep_locator, fields=fields, body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->replace_artifact_dep: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + **artifact_dep_locator** | **str**| | + **fields** | **str**| | [optional] + **body** | [**ArtifactDependency**](ArtifactDependency.md)| | [optional] + +### Return type + +[**ArtifactDependency**](ArtifactDependency.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_artifact_deps** +> ArtifactDependencies replace_artifact_deps(bt_locator, fields=fields, body=body) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | +fields = 'fields_example' # str | (optional) +body = swagger_client.ArtifactDependencies() # ArtifactDependencies | (optional) + +try: + api_response = api_instance.replace_artifact_deps(bt_locator, fields=fields, body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->replace_artifact_deps: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + **fields** | **str**| | [optional] + **body** | [**ArtifactDependencies**](ArtifactDependencies.md)| | [optional] + +### Return type + +[**ArtifactDependencies**](ArtifactDependencies.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_feature** +> Feature replace_feature(bt_locator, feature_id, fields=fields, body=body) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | +feature_id = 'feature_id_example' # str | +fields = 'fields_example' # str | (optional) +body = swagger_client.Feature() # Feature | (optional) + +try: + api_response = api_instance.replace_feature(bt_locator, feature_id, fields=fields, body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->replace_feature: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + **feature_id** | **str**| | + **fields** | **str**| | [optional] + **body** | [**Feature**](Feature.md)| | [optional] + +### Return type + +[**Feature**](Feature.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_feature_parameters** +> Properties replace_feature_parameters(bt_locator, feature_id, body=body, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | +feature_id = 'feature_id_example' # str | +body = swagger_client.Properties() # Properties | (optional) +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.replace_feature_parameters(bt_locator, feature_id, body=body, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->replace_feature_parameters: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + **feature_id** | **str**| | + **body** | [**Properties**](Properties.md)| | [optional] + **fields** | **str**| | [optional] + +### Return type + +[**Properties**](Properties.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_features** +> Features replace_features(bt_locator, fields=fields, body=body) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | +fields = 'fields_example' # str | (optional) +body = swagger_client.Features() # Features | (optional) + +try: + api_response = api_instance.replace_features(bt_locator, fields=fields, body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->replace_features: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + **fields** | **str**| | [optional] + **body** | [**Features**](Features.md)| | [optional] + +### Return type + +[**Features**](Features.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_snapshot_dep** +> SnapshotDependency replace_snapshot_dep(bt_locator, snapshot_dep_locator, fields=fields, body=body) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | +snapshot_dep_locator = 'snapshot_dep_locator_example' # str | +fields = 'fields_example' # str | (optional) +body = swagger_client.SnapshotDependency() # SnapshotDependency | (optional) + +try: + api_response = api_instance.replace_snapshot_dep(bt_locator, snapshot_dep_locator, fields=fields, body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->replace_snapshot_dep: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + **snapshot_dep_locator** | **str**| | + **fields** | **str**| | [optional] + **body** | [**SnapshotDependency**](SnapshotDependency.md)| | [optional] + +### Return type + +[**SnapshotDependency**](SnapshotDependency.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_snapshot_deps** +> SnapshotDependencies replace_snapshot_deps(bt_locator, fields=fields, body=body) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | +fields = 'fields_example' # str | (optional) +body = swagger_client.SnapshotDependencies() # SnapshotDependencies | (optional) + +try: + api_response = api_instance.replace_snapshot_deps(bt_locator, fields=fields, body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->replace_snapshot_deps: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + **fields** | **str**| | [optional] + **body** | [**SnapshotDependencies**](SnapshotDependencies.md)| | [optional] + +### Return type + +[**SnapshotDependencies**](SnapshotDependencies.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_step** +> Step replace_step(bt_locator, step_id, fields=fields, body=body) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | +step_id = 'step_id_example' # str | +fields = 'fields_example' # str | (optional) +body = swagger_client.Step() # Step | (optional) + +try: + api_response = api_instance.replace_step(bt_locator, step_id, fields=fields, body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->replace_step: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + **step_id** | **str**| | + **fields** | **str**| | [optional] + **body** | [**Step**](Step.md)| | [optional] + +### Return type + +[**Step**](Step.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_step_parameters** +> Properties replace_step_parameters(bt_locator, step_id, body=body, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | +step_id = 'step_id_example' # str | +body = swagger_client.Properties() # Properties | (optional) +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.replace_step_parameters(bt_locator, step_id, body=body, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->replace_step_parameters: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + **step_id** | **str**| | + **body** | [**Properties**](Properties.md)| | [optional] + **fields** | **str**| | [optional] + +### Return type + +[**Properties**](Properties.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_steps** +> Steps replace_steps(bt_locator, fields=fields, body=body) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | +fields = 'fields_example' # str | (optional) +body = swagger_client.Steps() # Steps | (optional) + +try: + api_response = api_instance.replace_steps(bt_locator, fields=fields, body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->replace_steps: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + **fields** | **str**| | [optional] + **body** | [**Steps**](Steps.md)| | [optional] + +### Return type + +[**Steps**](Steps.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_trigger** +> Trigger replace_trigger(bt_locator, trigger_locator, fields=fields, body=body) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | +trigger_locator = 'trigger_locator_example' # str | +fields = 'fields_example' # str | (optional) +body = swagger_client.Trigger() # Trigger | (optional) + +try: + api_response = api_instance.replace_trigger(bt_locator, trigger_locator, fields=fields, body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->replace_trigger: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + **trigger_locator** | **str**| | + **fields** | **str**| | [optional] + **body** | [**Trigger**](Trigger.md)| | [optional] + +### Return type + +[**Trigger**](Trigger.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_triggers** +> Triggers replace_triggers(bt_locator, fields=fields, body=body) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | +fields = 'fields_example' # str | (optional) +body = swagger_client.Triggers() # Triggers | (optional) + +try: + api_response = api_instance.replace_triggers(bt_locator, fields=fields, body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->replace_triggers: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + **fields** | **str**| | [optional] + **body** | [**Triggers**](Triggers.md)| | [optional] + +### Return type + +[**Triggers**](Triggers.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_vcs_root_entries** +> VcsRootEntries replace_vcs_root_entries(bt_locator, body=body, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | +body = swagger_client.VcsRootEntries() # VcsRootEntries | (optional) +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.replace_vcs_root_entries(bt_locator, body=body, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->replace_vcs_root_entries: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + **body** | [**VcsRootEntries**](VcsRootEntries.md)| | [optional] + **fields** | **str**| | [optional] + +### Return type + +[**VcsRootEntries**](VcsRootEntries.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **serve_branches** +> Branches serve_branches(bt_locator, locator=locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | +locator = 'locator_example' # str | (optional) +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.serve_branches(bt_locator, locator=locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->serve_branches: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + **locator** | **str**| | [optional] + **fields** | **str**| | [optional] + +### Return type + +[**Branches**](Branches.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **serve_build_field** +> str serve_build_field(bt_locator, build_locator, field) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | +build_locator = 'build_locator_example' # str | +field = 'field_example' # str | + +try: + api_response = api_instance.serve_build_field(bt_locator, build_locator, field) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->serve_build_field: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + **build_locator** | **str**| | + **field** | **str**| | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **serve_build_type_builds_tags** +> Tags serve_build_type_builds_tags(bt_locator, field) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | +field = 'field_example' # str | + +try: + api_response = api_instance.serve_build_type_builds_tags(bt_locator, field) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->serve_build_type_builds_tags: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + **field** | **str**| | + +### Return type + +[**Tags**](Tags.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **serve_build_type_field** +> str serve_build_type_field(bt_locator, field) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | +field = 'field_example' # str | + +try: + api_response = api_instance.serve_build_type_field(bt_locator, field) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->serve_build_type_field: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + **field** | **str**| | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **serve_build_type_template** +> BuildType serve_build_type_template(bt_locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.serve_build_type_template(bt_locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->serve_build_type_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + **fields** | **str**| | [optional] + +### Return type + +[**BuildType**](BuildType.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **serve_build_type_xml** +> BuildType serve_build_type_xml(bt_locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.serve_build_type_xml(bt_locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->serve_build_type_xml: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + **fields** | **str**| | [optional] + +### Return type + +[**BuildType**](BuildType.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **serve_build_with_project** +> Build serve_build_with_project(bt_locator, build_locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | +build_locator = 'build_locator_example' # str | +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.serve_build_with_project(bt_locator, build_locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->serve_build_with_project: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + **build_locator** | **str**| | + **fields** | **str**| | [optional] + +### Return type + +[**Build**](Build.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **serve_builds** +> Builds serve_builds(bt_locator, status=status, triggered_by_user=triggered_by_user, include_personal=include_personal, include_canceled=include_canceled, only_pinned=only_pinned, tag=tag, agent_name=agent_name, since_build=since_build, since_date=since_date, start=start, count=count, locator=locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | +status = 'status_example' # str | (optional) +triggered_by_user = 'triggered_by_user_example' # str | (optional) +include_personal = true # bool | (optional) +include_canceled = true # bool | (optional) +only_pinned = true # bool | (optional) +tag = ['tag_example'] # list[str] | (optional) +agent_name = 'agent_name_example' # str | (optional) +since_build = 'since_build_example' # str | (optional) +since_date = 'since_date_example' # str | (optional) +start = 789 # int | (optional) +count = 56 # int | (optional) +locator = 'locator_example' # str | (optional) +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.serve_builds(bt_locator, status=status, triggered_by_user=triggered_by_user, include_personal=include_personal, include_canceled=include_canceled, only_pinned=only_pinned, tag=tag, agent_name=agent_name, since_build=since_build, since_date=since_date, start=start, count=count, locator=locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->serve_builds: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + **status** | **str**| | [optional] + **triggered_by_user** | **str**| | [optional] + **include_personal** | **bool**| | [optional] + **include_canceled** | **bool**| | [optional] + **only_pinned** | **bool**| | [optional] + **tag** | [**list[str]**](str.md)| | [optional] + **agent_name** | **str**| | [optional] + **since_build** | **str**| | [optional] + **since_date** | **str**| | [optional] + **start** | **int**| | [optional] + **count** | **int**| | [optional] + **locator** | **str**| | [optional] + **fields** | **str**| | [optional] + +### Return type + +[**Builds**](Builds.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **set_build_type_field** +> str set_build_type_field(bt_locator, field, body=body) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | +field = 'field_example' # str | +body = 'body_example' # str | (optional) + +try: + api_response = api_instance.set_build_type_field(bt_locator, field, body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->set_build_type_field: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + **field** | **str**| | + **body** | **str**| | [optional] + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **set_parameter** +> ModelProperty set_parameter(bt_locator, body=body, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | +body = swagger_client.ModelProperty() # ModelProperty | (optional) +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.set_parameter(bt_locator, body=body, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->set_parameter: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + **body** | [**ModelProperty**](ModelProperty.md)| | [optional] + **fields** | **str**| | [optional] + +### Return type + +[**ModelProperty**](ModelProperty.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **set_parameter_0** +> ModelProperty set_parameter_0(name, bt_locator, body=body, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +name = 'name_example' # str | +bt_locator = 'bt_locator_example' # str | +body = swagger_client.ModelProperty() # ModelProperty | (optional) +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.set_parameter_0(name, bt_locator, body=body, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->set_parameter_0: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| | + **bt_locator** | **str**| | + **body** | [**ModelProperty**](ModelProperty.md)| | [optional] + **fields** | **str**| | [optional] + +### Return type + +[**ModelProperty**](ModelProperty.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **set_parameter_1** +> ModelProperty set_parameter_1(bt_locator, body=body, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | +body = swagger_client.ModelProperty() # ModelProperty | (optional) +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.set_parameter_1(bt_locator, body=body, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->set_parameter_1: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + **body** | [**ModelProperty**](ModelProperty.md)| | [optional] + **fields** | **str**| | [optional] + +### Return type + +[**ModelProperty**](ModelProperty.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **set_parameter_2** +> ModelProperty set_parameter_2(name, bt_locator, body=body, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +name = 'name_example' # str | +bt_locator = 'bt_locator_example' # str | +body = swagger_client.ModelProperty() # ModelProperty | (optional) +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.set_parameter_2(name, bt_locator, body=body, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->set_parameter_2: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| | + **bt_locator** | **str**| | + **body** | [**ModelProperty**](ModelProperty.md)| | [optional] + **fields** | **str**| | [optional] + +### Return type + +[**ModelProperty**](ModelProperty.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **set_parameter_type** +> Type set_parameter_type(name, bt_locator, body=body) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +name = 'name_example' # str | +bt_locator = 'bt_locator_example' # str | +body = swagger_client.Type() # Type | (optional) + +try: + api_response = api_instance.set_parameter_type(name, bt_locator, body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->set_parameter_type: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| | + **bt_locator** | **str**| | + **body** | [**Type**](Type.md)| | [optional] + +### Return type + +[**Type**](Type.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **set_parameter_type_raw_value** +> str set_parameter_type_raw_value(name, bt_locator, body=body) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +name = 'name_example' # str | +bt_locator = 'bt_locator_example' # str | +body = 'body_example' # str | (optional) + +try: + api_response = api_instance.set_parameter_type_raw_value(name, bt_locator, body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->set_parameter_type_raw_value: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| | + **bt_locator** | **str**| | + **body** | **str**| | [optional] + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **set_parameter_value_long** +> str set_parameter_value_long(name, bt_locator, body=body) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +name = 'name_example' # str | +bt_locator = 'bt_locator_example' # str | +body = 'body_example' # str | (optional) + +try: + api_response = api_instance.set_parameter_value_long(name, bt_locator, body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->set_parameter_value_long: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| | + **bt_locator** | **str**| | + **body** | **str**| | [optional] + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **set_parameter_value_long_0** +> str set_parameter_value_long_0(name, bt_locator, body=body) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +name = 'name_example' # str | +bt_locator = 'bt_locator_example' # str | +body = 'body_example' # str | (optional) + +try: + api_response = api_instance.set_parameter_value_long_0(name, bt_locator, body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->set_parameter_value_long_0: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| | + **bt_locator** | **str**| | + **body** | **str**| | [optional] + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **set_parameters** +> Properties set_parameters(bt_locator, body=body, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | +body = swagger_client.Properties() # Properties | (optional) +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.set_parameters(bt_locator, body=body, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->set_parameters: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + **body** | [**Properties**](Properties.md)| | [optional] + **fields** | **str**| | [optional] + +### Return type + +[**Properties**](Properties.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **set_parameters_0** +> Properties set_parameters_0(bt_locator, body=body, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | +body = swagger_client.Properties() # Properties | (optional) +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.set_parameters_0(bt_locator, body=body, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->set_parameters_0: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + **body** | [**Properties**](Properties.md)| | [optional] + **fields** | **str**| | [optional] + +### Return type + +[**Properties**](Properties.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **set_vcs_labeling_options** +> VcsLabeling set_vcs_labeling_options(bt_locator, body=body) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | +body = swagger_client.VcsLabeling() # VcsLabeling | (optional) + +try: + api_response = api_instance.set_vcs_labeling_options(bt_locator, body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->set_vcs_labeling_options: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + **body** | [**VcsLabeling**](VcsLabeling.md)| | [optional] + +### Return type + +[**VcsLabeling**](VcsLabeling.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_vcs_root_entry** +> VcsRootEntry update_vcs_root_entry(bt_locator, vcs_root_locator, body=body, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | +vcs_root_locator = 'vcs_root_locator_example' # str | +body = swagger_client.VcsRootEntry() # VcsRootEntry | (optional) +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.update_vcs_root_entry(bt_locator, vcs_root_locator, body=body, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->update_vcs_root_entry: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + **vcs_root_locator** | **str**| | + **body** | [**VcsRootEntry**](VcsRootEntry.md)| | [optional] + **fields** | **str**| | [optional] + +### Return type + +[**VcsRootEntry**](VcsRootEntry.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_vcs_root_entry_checkout_rules** +> str update_vcs_root_entry_checkout_rules(bt_locator, vcs_root_locator, body=body) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.BuildTypeApi() +bt_locator = 'bt_locator_example' # str | +vcs_root_locator = 'vcs_root_locator_example' # str | +body = 'body_example' # str | (optional) + +try: + api_response = api_instance.update_vcs_root_entry_checkout_rules(bt_locator, vcs_root_locator, body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling BuildTypeApi->update_vcs_root_entry_checkout_rules: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bt_locator** | **str**| | + **vcs_root_locator** | **str**| | + **body** | **str**| | [optional] + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/BuildTypes.md b/docs/BuildTypes.md new file mode 100644 index 0000000..9a5f5cc --- /dev/null +++ b/docs/BuildTypes.md @@ -0,0 +1,14 @@ +# BuildTypes + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**build_type** | [**list[BuildType]**](BuildType.md) | | [optional] +**count** | **int** | | [optional] +**href** | **str** | | [optional] +**next_href** | **str** | | [optional] +**prev_href** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Builds.md b/docs/Builds.md new file mode 100644 index 0000000..1ed8fb2 --- /dev/null +++ b/docs/Builds.md @@ -0,0 +1,14 @@ +# Builds + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**build** | [**list[Build]**](Build.md) | | [optional] +**count** | **int** | | [optional] +**href** | **str** | | [optional] +**next_href** | **str** | | [optional] +**prev_href** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Change.md b/docs/Change.md new file mode 100644 index 0000000..15ec806 --- /dev/null +++ b/docs/Change.md @@ -0,0 +1,25 @@ +# Change + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**comment** | **str** | | [optional] +**_date** | **str** | | [optional] +**files** | [**FileChanges**](FileChanges.md) | | [optional] +**href** | **str** | | [optional] +**id** | **int** | | [optional] +**internal_version** | **str** | | [optional] +**locator** | **str** | | [optional] +**parent_changes** | [**Changes**](Changes.md) | | [optional] +**parent_revisions** | [**Items**](Items.md) | | [optional] +**personal** | **bool** | | [optional] [default to False] +**registration_date** | **str** | | [optional] +**user** | [**User**](User.md) | | [optional] +**username** | **str** | | [optional] +**vcs_root_instance** | [**VcsRootInstance**](VcsRootInstance.md) | | [optional] +**version** | **str** | | [optional] +**web_url** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ChangeApi.md b/docs/ChangeApi.md new file mode 100644 index 0000000..03b4b6c --- /dev/null +++ b/docs/ChangeApi.md @@ -0,0 +1,594 @@ +# swagger_client.ChangeApi + +All URIs are relative to *https://teamcity.ptsecurity.ru* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_change_attributes**](ChangeApi.md#get_change_attributes) | **GET** /app/rest/changes/{changeLocator}/attributes | +[**get_change_duplicates**](ChangeApi.md#get_change_duplicates) | **GET** /app/rest/changes/{changeLocator}/duplicates | +[**get_change_field**](ChangeApi.md#get_change_field) | **GET** /app/rest/changes/{changeLocator}/{field} | +[**get_change_first_builds**](ChangeApi.md#get_change_first_builds) | **GET** /app/rest/changes/{changeLocator}/firstBuilds | +[**get_change_issue**](ChangeApi.md#get_change_issue) | **GET** /app/rest/changes/{changeLocator}/issues | +[**get_change_parent_revisions**](ChangeApi.md#get_change_parent_revisions) | **GET** /app/rest/changes/{changeLocator}/parentRevisions | +[**get_change_vcs_root**](ChangeApi.md#get_change_vcs_root) | **GET** /app/rest/changes/{changeLocator}/vcsRoot | +[**get_change_vcs_root_instance**](ChangeApi.md#get_change_vcs_root_instance) | **GET** /app/rest/changes/{changeLocator}/vcsRootInstance | +[**get_parent_changes**](ChangeApi.md#get_parent_changes) | **GET** /app/rest/changes/{changeLocator}/parentChanges | +[**get_related_build_types**](ChangeApi.md#get_related_build_types) | **GET** /app/rest/changes/{changeLocator}/buildTypes | +[**serve_change**](ChangeApi.md#serve_change) | **GET** /app/rest/changes/{changeLocator} | +[**serve_changes**](ChangeApi.md#serve_changes) | **GET** /app/rest/changes | + + +# **get_change_attributes** +> Entries get_change_attributes(change_locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ChangeApi() +change_locator = 'change_locator_example' # str | +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.get_change_attributes(change_locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling ChangeApi->get_change_attributes: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **change_locator** | **str**| | + **fields** | **str**| | [optional] + +### Return type + +[**Entries**](Entries.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_change_duplicates** +> Changes get_change_duplicates(change_locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ChangeApi() +change_locator = 'change_locator_example' # str | +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.get_change_duplicates(change_locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling ChangeApi->get_change_duplicates: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **change_locator** | **str**| | + **fields** | **str**| | [optional] + +### Return type + +[**Changes**](Changes.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_change_field** +> str get_change_field(change_locator, field) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ChangeApi() +change_locator = 'change_locator_example' # str | +field = 'field_example' # str | + +try: + api_response = api_instance.get_change_field(change_locator, field) + pprint(api_response) +except ApiException as e: + print("Exception when calling ChangeApi->get_change_field: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **change_locator** | **str**| | + **field** | **str**| | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_change_first_builds** +> Builds get_change_first_builds(change_locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ChangeApi() +change_locator = 'change_locator_example' # str | +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.get_change_first_builds(change_locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling ChangeApi->get_change_first_builds: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **change_locator** | **str**| | + **fields** | **str**| | [optional] + +### Return type + +[**Builds**](Builds.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_change_issue** +> Issues get_change_issue(change_locator) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ChangeApi() +change_locator = 'change_locator_example' # str | + +try: + api_response = api_instance.get_change_issue(change_locator) + pprint(api_response) +except ApiException as e: + print("Exception when calling ChangeApi->get_change_issue: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **change_locator** | **str**| | + +### Return type + +[**Issues**](Issues.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_change_parent_revisions** +> Items get_change_parent_revisions(change_locator) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ChangeApi() +change_locator = 'change_locator_example' # str | + +try: + api_response = api_instance.get_change_parent_revisions(change_locator) + pprint(api_response) +except ApiException as e: + print("Exception when calling ChangeApi->get_change_parent_revisions: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **change_locator** | **str**| | + +### Return type + +[**Items**](Items.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_change_vcs_root** +> VcsRootInstance get_change_vcs_root(change_locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ChangeApi() +change_locator = 'change_locator_example' # str | +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.get_change_vcs_root(change_locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling ChangeApi->get_change_vcs_root: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **change_locator** | **str**| | + **fields** | **str**| | [optional] + +### Return type + +[**VcsRootInstance**](VcsRootInstance.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_change_vcs_root_instance** +> VcsRootInstance get_change_vcs_root_instance(change_locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ChangeApi() +change_locator = 'change_locator_example' # str | +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.get_change_vcs_root_instance(change_locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling ChangeApi->get_change_vcs_root_instance: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **change_locator** | **str**| | + **fields** | **str**| | [optional] + +### Return type + +[**VcsRootInstance**](VcsRootInstance.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_parent_changes** +> Changes get_parent_changes(change_locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ChangeApi() +change_locator = 'change_locator_example' # str | +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.get_parent_changes(change_locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling ChangeApi->get_parent_changes: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **change_locator** | **str**| | + **fields** | **str**| | [optional] + +### Return type + +[**Changes**](Changes.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_related_build_types** +> BuildTypes get_related_build_types(change_locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ChangeApi() +change_locator = 'change_locator_example' # str | +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.get_related_build_types(change_locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling ChangeApi->get_related_build_types: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **change_locator** | **str**| | + **fields** | **str**| | [optional] + +### Return type + +[**BuildTypes**](BuildTypes.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **serve_change** +> Change serve_change(change_locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ChangeApi() +change_locator = 'change_locator_example' # str | +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.serve_change(change_locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling ChangeApi->serve_change: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **change_locator** | **str**| | + **fields** | **str**| | [optional] + +### Return type + +[**Change**](Change.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **serve_changes** +> Changes serve_changes(project=project, build_type=build_type, build=build, vcs_root=vcs_root, since_change=since_change, start=start, count=count, locator=locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ChangeApi() +project = 'project_example' # str | (optional) +build_type = 'build_type_example' # str | (optional) +build = 'build_example' # str | (optional) +vcs_root = 'vcs_root_example' # str | (optional) +since_change = 'since_change_example' # str | (optional) +start = 789 # int | (optional) +count = 56 # int | (optional) +locator = 'locator_example' # str | (optional) +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.serve_changes(project=project, build_type=build_type, build=build, vcs_root=vcs_root, since_change=since_change, start=start, count=count, locator=locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling ChangeApi->serve_changes: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **project** | **str**| | [optional] + **build_type** | **str**| | [optional] + **build** | **str**| | [optional] + **vcs_root** | **str**| | [optional] + **since_change** | **str**| | [optional] + **start** | **int**| | [optional] + **count** | **int**| | [optional] + **locator** | **str**| | [optional] + **fields** | **str**| | [optional] + +### Return type + +[**Changes**](Changes.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/Changes.md b/docs/Changes.md new file mode 100644 index 0000000..98f5a38 --- /dev/null +++ b/docs/Changes.md @@ -0,0 +1,14 @@ +# Changes + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**change** | [**list[Change]**](Change.md) | | [optional] +**count** | **int** | | [optional] +**href** | **str** | | [optional] +**next_href** | **str** | | [optional] +**prev_href** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Comment.md b/docs/Comment.md new file mode 100644 index 0000000..309ebd6 --- /dev/null +++ b/docs/Comment.md @@ -0,0 +1,12 @@ +# Comment + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**text** | **str** | | [optional] +**timestamp** | **str** | | [optional] +**user** | [**User**](User.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Compatibilities.md b/docs/Compatibilities.md new file mode 100644 index 0000000..114d8d8 --- /dev/null +++ b/docs/Compatibilities.md @@ -0,0 +1,11 @@ +# Compatibilities + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**compatibility** | [**list[Compatibility]**](Compatibility.md) | | [optional] +**count** | **int** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Compatibility.md b/docs/Compatibility.md new file mode 100644 index 0000000..8677655 --- /dev/null +++ b/docs/Compatibility.md @@ -0,0 +1,13 @@ +# Compatibility + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**agent** | [**Agent**](Agent.md) | | [optional] +**build_type** | [**BuildType**](BuildType.md) | | [optional] +**compatible** | **bool** | | [optional] [default to False] +**unmet_requirements** | [**Requirements**](Requirements.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Datas.md b/docs/Datas.md new file mode 100644 index 0000000..6767e62 --- /dev/null +++ b/docs/Datas.md @@ -0,0 +1,11 @@ +# Datas + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **int** | | [optional] +**data** | [**list[MetaData]**](MetaData.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DebugApi.md b/docs/DebugApi.md new file mode 100644 index 0000000..d0dcffc --- /dev/null +++ b/docs/DebugApi.md @@ -0,0 +1,968 @@ +# swagger_client.DebugApi + +All URIs are relative to *https://teamcity.ptsecurity.ru* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**delete_current_remember_me**](DebugApi.md#delete_current_remember_me) | **DELETE** /app/rest/debug/currentRequest/rememberMe | +[**empty_task**](DebugApi.md#empty_task) | **POST** /app/rest/debug/emptyTask | +[**execute_db_query**](DebugApi.md#execute_db_query) | **GET** /app/rest/debug/database/query/{query} | +[**get_current_session**](DebugApi.md#get_current_session) | **GET** /app/rest/debug/currentRequest/session | +[**get_current_session_max_inactive_interval**](DebugApi.md#get_current_session_max_inactive_interval) | **GET** /app/rest/debug/currentRequest/session/maxInactiveSeconds | +[**get_current_user_permissions**](DebugApi.md#get_current_user_permissions) | **GET** /app/rest/debug/currentUserPermissions | +[**get_date**](DebugApi.md#get_date) | **GET** /app/rest/debug/date/{dateLocator} | +[**get_environment_variables**](DebugApi.md#get_environment_variables) | **GET** /app/rest/debug/jvm/environmentVariables | +[**get_hashed**](DebugApi.md#get_hashed) | **GET** /app/rest/debug/values/transform/{method} | +[**get_request_details**](DebugApi.md#get_request_details) | **GET** /app/rest/debug/currentRequest/details | +[**get_scrambled**](DebugApi.md#get_scrambled) | **GET** /app/rest/debug/values/password/scrambled | +[**get_sessions**](DebugApi.md#get_sessions) | **GET** /app/rest/debug/sessions | +[**get_system_properties**](DebugApi.md#get_system_properties) | **GET** /app/rest/debug/jvm/systemProperties | +[**get_thread_dump**](DebugApi.md#get_thread_dump) | **GET** /app/rest/debug/threadDump | +[**get_unscrambled**](DebugApi.md#get_unscrambled) | **GET** /app/rest/debug/values/password/unscrambled | +[**invalidate_current_session**](DebugApi.md#invalidate_current_session) | **DELETE** /app/rest/debug/currentRequest/session | +[**list_db_tables**](DebugApi.md#list_db_tables) | **GET** /app/rest/debug/database/tables | +[**new_remember_me**](DebugApi.md#new_remember_me) | **POST** /app/rest/debug/currentRequest/rememberMe | +[**save_memory_dump**](DebugApi.md#save_memory_dump) | **POST** /app/rest/debug/memory/dumps | +[**schedule_checking_for_changes**](DebugApi.md#schedule_checking_for_changes) | **POST** /app/rest/debug/vcsCheckingForChangesQueue | +[**set_current_session_max_inactive_interval**](DebugApi.md#set_current_session_max_inactive_interval) | **PUT** /app/rest/debug/currentRequest/session/maxInactiveSeconds | + + +# **delete_current_remember_me** +> delete_current_remember_me() + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.DebugApi() + +try: + api_instance.delete_current_remember_me() +except ApiException as e: + print("Exception when calling DebugApi->delete_current_remember_me: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **empty_task** +> str empty_task(time=time, load=load) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.DebugApi() +time = 'time_example' # str | (optional) +load = 56 # int | (optional) + +try: + api_response = api_instance.empty_task(time=time, load=load) + pprint(api_response) +except ApiException as e: + print("Exception when calling DebugApi->empty_task: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **time** | **str**| | [optional] + **load** | **int**| | [optional] + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **execute_db_query** +> str execute_db_query(query, field_delimiter=field_delimiter, data_retrieve_query=data_retrieve_query, count=count) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.DebugApi() +query = 'query_example' # str | +field_delimiter = ', ' # str | (optional) (default to , ) +data_retrieve_query = 'data_retrieve_query_example' # str | (optional) +count = 1000 # int | (optional) (default to 1000) + +try: + api_response = api_instance.execute_db_query(query, field_delimiter=field_delimiter, data_retrieve_query=data_retrieve_query, count=count) + pprint(api_response) +except ApiException as e: + print("Exception when calling DebugApi->execute_db_query: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **query** | **str**| | + **field_delimiter** | **str**| | [optional] [default to , ] + **data_retrieve_query** | **str**| | [optional] + **count** | **int**| | [optional] [default to 1000] + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_current_session** +> Session get_current_session(fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.DebugApi() +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.get_current_session(fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling DebugApi->get_current_session: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **fields** | **str**| | [optional] + +### Return type + +[**Session**](Session.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_current_session_max_inactive_interval** +> str get_current_session_max_inactive_interval() + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.DebugApi() + +try: + api_response = api_instance.get_current_session_max_inactive_interval() + pprint(api_response) +except ApiException as e: + print("Exception when calling DebugApi->get_current_session_max_inactive_interval: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_current_user_permissions** +> str get_current_user_permissions() + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.DebugApi() + +try: + api_response = api_instance.get_current_user_permissions() + pprint(api_response) +except ApiException as e: + print("Exception when calling DebugApi->get_current_user_permissions: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_date** +> str get_date(date_locator, format=format, timezone=timezone) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.DebugApi() +date_locator = 'date_locator_example' # str | +format = 'format_example' # str | (optional) +timezone = 'timezone_example' # str | (optional) + +try: + api_response = api_instance.get_date(date_locator, format=format, timezone=timezone) + pprint(api_response) +except ApiException as e: + print("Exception when calling DebugApi->get_date: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **date_locator** | **str**| | + **format** | **str**| | [optional] + **timezone** | **str**| | [optional] + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_environment_variables** +> Properties get_environment_variables(fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.DebugApi() +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.get_environment_variables(fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling DebugApi->get_environment_variables: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **fields** | **str**| | [optional] + +### Return type + +[**Properties**](Properties.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_hashed** +> str get_hashed(method, value=value) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.DebugApi() +method = 'method_example' # str | +value = 'value_example' # str | (optional) + +try: + api_response = api_instance.get_hashed(method, value=value) + pprint(api_response) +except ApiException as e: + print("Exception when calling DebugApi->get_hashed: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **method** | **str**| | + **value** | **str**| | [optional] + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_request_details** +> str get_request_details() + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.DebugApi() + +try: + api_response = api_instance.get_request_details() + pprint(api_response) +except ApiException as e: + print("Exception when calling DebugApi->get_request_details: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_scrambled** +> str get_scrambled(value=value) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.DebugApi() +value = 'value_example' # str | (optional) + +try: + api_response = api_instance.get_scrambled(value=value) + pprint(api_response) +except ApiException as e: + print("Exception when calling DebugApi->get_scrambled: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **value** | **str**| | [optional] + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_sessions** +> Sessions get_sessions(manager=manager, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.DebugApi() +manager = 789 # int | (optional) +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.get_sessions(manager=manager, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling DebugApi->get_sessions: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **manager** | **int**| | [optional] + **fields** | **str**| | [optional] + +### Return type + +[**Sessions**](Sessions.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_system_properties** +> Properties get_system_properties(fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.DebugApi() +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.get_system_properties(fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling DebugApi->get_system_properties: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **fields** | **str**| | [optional] + +### Return type + +[**Properties**](Properties.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_thread_dump** +> str get_thread_dump(locked_monitors=locked_monitors, locked_synchronizers=locked_synchronizers, detect_locks=detect_locks) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.DebugApi() +locked_monitors = 'locked_monitors_example' # str | (optional) +locked_synchronizers = 'locked_synchronizers_example' # str | (optional) +detect_locks = 'detect_locks_example' # str | (optional) + +try: + api_response = api_instance.get_thread_dump(locked_monitors=locked_monitors, locked_synchronizers=locked_synchronizers, detect_locks=detect_locks) + pprint(api_response) +except ApiException as e: + print("Exception when calling DebugApi->get_thread_dump: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **locked_monitors** | **str**| | [optional] + **locked_synchronizers** | **str**| | [optional] + **detect_locks** | **str**| | [optional] + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_unscrambled** +> str get_unscrambled(value=value) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.DebugApi() +value = 'value_example' # str | (optional) + +try: + api_response = api_instance.get_unscrambled(value=value) + pprint(api_response) +except ApiException as e: + print("Exception when calling DebugApi->get_unscrambled: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **value** | **str**| | [optional] + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **invalidate_current_session** +> invalidate_current_session() + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.DebugApi() + +try: + api_instance.invalidate_current_session() +except ApiException as e: + print("Exception when calling DebugApi->invalidate_current_session: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_db_tables** +> str list_db_tables() + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.DebugApi() + +try: + api_response = api_instance.list_db_tables() + pprint(api_response) +except ApiException as e: + print("Exception when calling DebugApi->list_db_tables: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **new_remember_me** +> str new_remember_me() + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.DebugApi() + +try: + api_response = api_instance.new_remember_me() + pprint(api_response) +except ApiException as e: + print("Exception when calling DebugApi->new_remember_me: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **save_memory_dump** +> str save_memory_dump(archived=archived) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.DebugApi() +archived = true # bool | (optional) + +try: + api_response = api_instance.save_memory_dump(archived=archived) + pprint(api_response) +except ApiException as e: + print("Exception when calling DebugApi->save_memory_dump: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **archived** | **bool**| | [optional] + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **schedule_checking_for_changes** +> VcsRootInstances schedule_checking_for_changes(locator=locator, requestor=requestor, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.DebugApi() +locator = 'locator_example' # str | (optional) +requestor = 'requestor_example' # str | (optional) +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.schedule_checking_for_changes(locator=locator, requestor=requestor, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling DebugApi->schedule_checking_for_changes: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **locator** | **str**| | [optional] + **requestor** | **str**| | [optional] + **fields** | **str**| | [optional] + +### Return type + +[**VcsRootInstances**](VcsRootInstances.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **set_current_session_max_inactive_interval** +> str set_current_session_max_inactive_interval(body=body) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.DebugApi() +body = 'body_example' # str | (optional) + +try: + api_response = api_instance.set_current_session_max_inactive_interval(body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling DebugApi->set_current_session_max_inactive_interval: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **str**| | [optional] + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md new file mode 100644 index 0000000..b067f0e --- /dev/null +++ b/docs/DefaultApi.md @@ -0,0 +1,232 @@ +# swagger_client.DefaultApi + +All URIs are relative to *https://teamcity.ptsecurity.ru* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**serve_api_version**](DefaultApi.md#serve_api_version) | **GET** /app/rest/apiVersion | +[**serve_build_field_short**](DefaultApi.md#serve_build_field_short) | **GET** /app/rest/{projectLocator}/{btLocator}/{buildLocator}/{field} | +[**serve_plugin_info**](DefaultApi.md#serve_plugin_info) | **GET** /app/rest/info | +[**serve_root**](DefaultApi.md#serve_root) | **GET** /app/rest | +[**serve_version**](DefaultApi.md#serve_version) | **GET** /app/rest/version | + + +# **serve_api_version** +> str serve_api_version() + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.DefaultApi() + +try: + api_response = api_instance.serve_api_version() + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->serve_api_version: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **serve_build_field_short** +> str serve_build_field_short(project_locator, bt_locator, build_locator, field) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.DefaultApi() +project_locator = 'project_locator_example' # str | +bt_locator = 'bt_locator_example' # str | +build_locator = 'build_locator_example' # str | +field = 'field_example' # str | + +try: + api_response = api_instance.serve_build_field_short(project_locator, bt_locator, build_locator, field) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->serve_build_field_short: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **project_locator** | **str**| | + **bt_locator** | **str**| | + **build_locator** | **str**| | + **field** | **str**| | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **serve_plugin_info** +> Plugin serve_plugin_info(fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.DefaultApi() +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.serve_plugin_info(fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->serve_plugin_info: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **fields** | **str**| | [optional] + +### Return type + +[**Plugin**](Plugin.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **serve_root** +> str serve_root() + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.DefaultApi() + +try: + api_response = api_instance.serve_root() + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->serve_root: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **serve_version** +> str serve_version() + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.DefaultApi() + +try: + api_response = api_instance.serve_version() + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->serve_version: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/EnabledInfo.md b/docs/EnabledInfo.md new file mode 100644 index 0000000..9930958 --- /dev/null +++ b/docs/EnabledInfo.md @@ -0,0 +1,12 @@ +# EnabledInfo + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**comment** | [**Comment**](Comment.md) | | [optional] +**status** | **bool** | | [optional] [default to False] +**status_switch_time** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Entries.md b/docs/Entries.md new file mode 100644 index 0000000..904a98d --- /dev/null +++ b/docs/Entries.md @@ -0,0 +1,11 @@ +# Entries + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **int** | | [optional] +**entry** | [**list[Entry]**](Entry.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Entry.md b/docs/Entry.md new file mode 100644 index 0000000..f0d9700 --- /dev/null +++ b/docs/Entry.md @@ -0,0 +1,11 @@ +# Entry + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | | [optional] +**value** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Exception.md b/docs/Exception.md new file mode 100644 index 0000000..27d66a3 --- /dev/null +++ b/docs/Exception.md @@ -0,0 +1,14 @@ +# Exception + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cause** | [**Throwable**](Throwable.md) | | [optional] +**localized_message** | **str** | | [optional] +**message** | **str** | | [optional] +**stack_trace** | [**list[StackTraceElement]**](StackTraceElement.md) | | [optional] +**suppressed** | [**list[Throwable]**](Throwable.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Feature.md b/docs/Feature.md new file mode 100644 index 0000000..95d29d4 --- /dev/null +++ b/docs/Feature.md @@ -0,0 +1,16 @@ +# Feature + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**disabled** | **bool** | | [optional] [default to False] +**href** | **str** | | [optional] +**id** | **str** | | [optional] +**inherited** | **bool** | | [optional] [default to False] +**name** | **str** | | [optional] +**properties** | [**Properties**](Properties.md) | | [optional] +**type** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Features.md b/docs/Features.md new file mode 100644 index 0000000..850cf9b --- /dev/null +++ b/docs/Features.md @@ -0,0 +1,11 @@ +# Features + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **int** | | [optional] +**feature** | [**list[Feature]**](Feature.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/FederationApi.md b/docs/FederationApi.md new file mode 100644 index 0000000..4a6838e --- /dev/null +++ b/docs/FederationApi.md @@ -0,0 +1,100 @@ +# swagger_client.FederationApi + +All URIs are relative to *https://teamcity.ptsecurity.ru* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**add_server**](FederationApi.md#add_server) | **PUT** /app/rest/federation/servers | +[**servers**](FederationApi.md#servers) | **GET** /app/rest/federation/servers | + + +# **add_server** +> Servers add_server(body=body) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.FederationApi() +body = swagger_client.Servers() # Servers | (optional) + +try: + api_response = api_instance.add_server(body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling FederationApi->add_server: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**Servers**](Servers.md)| | [optional] + +### Return type + +[**Servers**](Servers.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **servers** +> Servers servers(fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.FederationApi() +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.servers(fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling FederationApi->servers: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **fields** | **str**| | [optional] + +### Return type + +[**Servers**](Servers.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/FederationServer.md b/docs/FederationServer.md new file mode 100644 index 0000000..8b8919a --- /dev/null +++ b/docs/FederationServer.md @@ -0,0 +1,11 @@ +# FederationServer + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | | [optional] +**url** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/File.md b/docs/File.md new file mode 100644 index 0000000..0ca1ae3 --- /dev/null +++ b/docs/File.md @@ -0,0 +1,17 @@ +# File + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**children** | [**Files**](Files.md) | | [optional] +**content** | [**Href**](Href.md) | | [optional] +**full_name** | **str** | | [optional] +**href** | **str** | | [optional] +**modification_time** | **str** | | [optional] +**name** | **str** | | [optional] +**parent** | [**file**](file.md) | | [optional] +**size** | **int** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/FileChange.md b/docs/FileChange.md new file mode 100644 index 0000000..7191b91 --- /dev/null +++ b/docs/FileChange.md @@ -0,0 +1,16 @@ +# FileChange + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**after_revision** | **str** | | [optional] +**before_revision** | **str** | | [optional] +**change_type** | **str** | | [optional] +**change_type_comment** | **str** | | [optional] +**directory** | **bool** | | [optional] [default to False] +**file** | **str** | | [optional] +**relative_file** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/FileChanges.md b/docs/FileChanges.md new file mode 100644 index 0000000..2c6a96d --- /dev/null +++ b/docs/FileChanges.md @@ -0,0 +1,11 @@ +# FileChanges + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **int** | | [optional] +**file** | [**list[FileChange]**](FileChange.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Files.md b/docs/Files.md new file mode 100644 index 0000000..48aa872 --- /dev/null +++ b/docs/Files.md @@ -0,0 +1,12 @@ +# Files + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **int** | | [optional] +**file** | [**list[file]**](file.md) | | [optional] +**href** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Group.md b/docs/Group.md new file mode 100644 index 0000000..baebfa6 --- /dev/null +++ b/docs/Group.md @@ -0,0 +1,18 @@ +# Group + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**child_groups** | [**Groups**](Groups.md) | | [optional] +**description** | **str** | | [optional] +**href** | **str** | | [optional] +**key** | **str** | | [optional] +**name** | **str** | | [optional] +**parent_groups** | [**Groups**](Groups.md) | | [optional] +**properties** | [**Properties**](Properties.md) | | [optional] +**roles** | [**Roles**](Roles.md) | | [optional] +**users** | [**Users**](Users.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GroupApi.md b/docs/GroupApi.md new file mode 100644 index 0000000..cfe0ab8 --- /dev/null +++ b/docs/GroupApi.md @@ -0,0 +1,725 @@ +# swagger_client.GroupApi + +All URIs are relative to *https://teamcity.ptsecurity.ru* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**add_group**](GroupApi.md#add_group) | **POST** /app/rest/userGroups | +[**add_role**](GroupApi.md#add_role) | **POST** /app/rest/userGroups/{groupLocator}/roles | +[**add_role_put**](GroupApi.md#add_role_put) | **PUT** /app/rest/userGroups/{groupLocator}/roles | +[**add_role_simple**](GroupApi.md#add_role_simple) | **POST** /app/rest/userGroups/{groupLocator}/roles/{roleId}/{scope} | +[**delete_group**](GroupApi.md#delete_group) | **DELETE** /app/rest/userGroups/{groupLocator} | +[**delete_role**](GroupApi.md#delete_role) | **DELETE** /app/rest/userGroups/{groupLocator}/roles/{roleId}/{scope} | +[**get_permissions**](GroupApi.md#get_permissions) | **GET** /app/rest/userGroups/{groupLocator}/debug/permissions | +[**get_properties**](GroupApi.md#get_properties) | **GET** /app/rest/userGroups/{groupLocator}/properties | +[**list_role**](GroupApi.md#list_role) | **GET** /app/rest/userGroups/{groupLocator}/roles/{roleId}/{scope} | +[**list_roles**](GroupApi.md#list_roles) | **GET** /app/rest/userGroups/{groupLocator}/roles | +[**put_user_property**](GroupApi.md#put_user_property) | **PUT** /app/rest/userGroups/{groupLocator}/properties/{name} | +[**remove_user_property**](GroupApi.md#remove_user_property) | **DELETE** /app/rest/userGroups/{groupLocator}/properties/{name} | +[**serve_group**](GroupApi.md#serve_group) | **GET** /app/rest/userGroups/{groupLocator} | +[**serve_groups**](GroupApi.md#serve_groups) | **GET** /app/rest/userGroups | +[**serve_user_properties**](GroupApi.md#serve_user_properties) | **GET** /app/rest/userGroups/{groupLocator}/properties/{name} | + + +# **add_group** +> Group add_group(body=body, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.GroupApi() +body = swagger_client.Group() # Group | (optional) +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.add_group(body=body, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling GroupApi->add_group: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**Group**](Group.md)| | [optional] + **fields** | **str**| | [optional] + +### Return type + +[**Group**](Group.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **add_role** +> Role add_role(group_locator, body=body) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.GroupApi() +group_locator = 'group_locator_example' # str | +body = swagger_client.Role() # Role | (optional) + +try: + api_response = api_instance.add_role(group_locator, body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling GroupApi->add_role: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **group_locator** | **str**| | + **body** | [**Role**](Role.md)| | [optional] + +### Return type + +[**Role**](Role.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **add_role_put** +> Roles add_role_put(group_locator, body=body) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.GroupApi() +group_locator = 'group_locator_example' # str | +body = swagger_client.Roles() # Roles | (optional) + +try: + api_response = api_instance.add_role_put(group_locator, body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling GroupApi->add_role_put: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **group_locator** | **str**| | + **body** | [**Roles**](Roles.md)| | [optional] + +### Return type + +[**Roles**](Roles.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **add_role_simple** +> Role add_role_simple(group_locator, role_id, scope) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.GroupApi() +group_locator = 'group_locator_example' # str | +role_id = 'role_id_example' # str | +scope = 'scope_example' # str | + +try: + api_response = api_instance.add_role_simple(group_locator, role_id, scope) + pprint(api_response) +except ApiException as e: + print("Exception when calling GroupApi->add_role_simple: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **group_locator** | **str**| | + **role_id** | **str**| | + **scope** | **str**| | + +### Return type + +[**Role**](Role.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_group** +> delete_group(group_locator) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.GroupApi() +group_locator = 'group_locator_example' # str | + +try: + api_instance.delete_group(group_locator) +except ApiException as e: + print("Exception when calling GroupApi->delete_group: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **group_locator** | **str**| | + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_role** +> delete_role(group_locator, role_id, scope) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.GroupApi() +group_locator = 'group_locator_example' # str | +role_id = 'role_id_example' # str | +scope = 'scope_example' # str | + +try: + api_instance.delete_role(group_locator, role_id, scope) +except ApiException as e: + print("Exception when calling GroupApi->delete_role: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **group_locator** | **str**| | + **role_id** | **str**| | + **scope** | **str**| | + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_permissions** +> str get_permissions(group_locator) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.GroupApi() +group_locator = 'group_locator_example' # str | + +try: + api_response = api_instance.get_permissions(group_locator) + pprint(api_response) +except ApiException as e: + print("Exception when calling GroupApi->get_permissions: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **group_locator** | **str**| | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_properties** +> Properties get_properties(group_locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.GroupApi() +group_locator = 'group_locator_example' # str | +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.get_properties(group_locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling GroupApi->get_properties: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **group_locator** | **str**| | + **fields** | **str**| | [optional] + +### Return type + +[**Properties**](Properties.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_role** +> Role list_role(group_locator, role_id, scope) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.GroupApi() +group_locator = 'group_locator_example' # str | +role_id = 'role_id_example' # str | +scope = 'scope_example' # str | + +try: + api_response = api_instance.list_role(group_locator, role_id, scope) + pprint(api_response) +except ApiException as e: + print("Exception when calling GroupApi->list_role: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **group_locator** | **str**| | + **role_id** | **str**| | + **scope** | **str**| | + +### Return type + +[**Role**](Role.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_roles** +> Roles list_roles(group_locator) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.GroupApi() +group_locator = 'group_locator_example' # str | + +try: + api_response = api_instance.list_roles(group_locator) + pprint(api_response) +except ApiException as e: + print("Exception when calling GroupApi->list_roles: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **group_locator** | **str**| | + +### Return type + +[**Roles**](Roles.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **put_user_property** +> str put_user_property(group_locator, name, body=body) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.GroupApi() +group_locator = 'group_locator_example' # str | +name = 'name_example' # str | +body = 'body_example' # str | (optional) + +try: + api_response = api_instance.put_user_property(group_locator, name, body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling GroupApi->put_user_property: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **group_locator** | **str**| | + **name** | **str**| | + **body** | **str**| | [optional] + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **remove_user_property** +> remove_user_property(group_locator, name) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.GroupApi() +group_locator = 'group_locator_example' # str | +name = 'name_example' # str | + +try: + api_instance.remove_user_property(group_locator, name) +except ApiException as e: + print("Exception when calling GroupApi->remove_user_property: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **group_locator** | **str**| | + **name** | **str**| | + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **serve_group** +> Group serve_group(group_locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.GroupApi() +group_locator = 'group_locator_example' # str | +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.serve_group(group_locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling GroupApi->serve_group: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **group_locator** | **str**| | + **fields** | **str**| | [optional] + +### Return type + +[**Group**](Group.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **serve_groups** +> Groups serve_groups(fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.GroupApi() +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.serve_groups(fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling GroupApi->serve_groups: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **fields** | **str**| | [optional] + +### Return type + +[**Groups**](Groups.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **serve_user_properties** +> str serve_user_properties(group_locator, name) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.GroupApi() +group_locator = 'group_locator_example' # str | +name = 'name_example' # str | + +try: + api_response = api_instance.serve_user_properties(group_locator, name) + pprint(api_response) +except ApiException as e: + print("Exception when calling GroupApi->serve_user_properties: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **group_locator** | **str**| | + **name** | **str**| | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/Groups.md b/docs/Groups.md new file mode 100644 index 0000000..1de8088 --- /dev/null +++ b/docs/Groups.md @@ -0,0 +1,11 @@ +# Groups + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **int** | | [optional] +**group** | [**list[Group]**](Group.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Href.md b/docs/Href.md new file mode 100644 index 0000000..06471d4 --- /dev/null +++ b/docs/Href.md @@ -0,0 +1,10 @@ +# Href + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**href** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Investigation.md b/docs/Investigation.md new file mode 100644 index 0000000..84d7e6f --- /dev/null +++ b/docs/Investigation.md @@ -0,0 +1,18 @@ +# Investigation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**assignee** | [**User**](User.md) | | [optional] +**assignment** | [**Comment**](Comment.md) | | [optional] +**href** | **str** | | [optional] +**id** | **str** | | [optional] +**resolution** | [**Resolution**](Resolution.md) | | [optional] +**responsible** | [**User**](User.md) | | [optional] +**scope** | [**ProblemScope**](ProblemScope.md) | | [optional] +**state** | **str** | | [optional] +**target** | [**ProblemTarget**](ProblemTarget.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/InvestigationApi.md b/docs/InvestigationApi.md new file mode 100644 index 0000000..0bf9b07 --- /dev/null +++ b/docs/InvestigationApi.md @@ -0,0 +1,104 @@ +# swagger_client.InvestigationApi + +All URIs are relative to *https://teamcity.ptsecurity.ru* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_investigations**](InvestigationApi.md#get_investigations) | **GET** /app/rest/investigations | +[**serve_instance**](InvestigationApi.md#serve_instance) | **GET** /app/rest/investigations/{investigationLocator} | + + +# **get_investigations** +> Investigations get_investigations(locator=locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.InvestigationApi() +locator = 'locator_example' # str | (optional) +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.get_investigations(locator=locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling InvestigationApi->get_investigations: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **locator** | **str**| | [optional] + **fields** | **str**| | [optional] + +### Return type + +[**Investigations**](Investigations.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **serve_instance** +> Investigation serve_instance(investigation_locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.InvestigationApi() +investigation_locator = 'investigation_locator_example' # str | +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.serve_instance(investigation_locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling InvestigationApi->serve_instance: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **investigation_locator** | **str**| | + **fields** | **str**| | [optional] + +### Return type + +[**Investigation**](Investigation.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/Investigations.md b/docs/Investigations.md new file mode 100644 index 0000000..334177c --- /dev/null +++ b/docs/Investigations.md @@ -0,0 +1,14 @@ +# Investigations + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **int** | | [optional] +**href** | **str** | | [optional] +**investigation** | [**list[Investigation]**](Investigation.md) | | [optional] +**next_href** | **str** | | [optional] +**prev_href** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Issue.md b/docs/Issue.md new file mode 100644 index 0000000..22b84db --- /dev/null +++ b/docs/Issue.md @@ -0,0 +1,11 @@ +# Issue + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**url** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/IssueUsage.md b/docs/IssueUsage.md new file mode 100644 index 0000000..2ca92ee --- /dev/null +++ b/docs/IssueUsage.md @@ -0,0 +1,11 @@ +# IssueUsage + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**changes** | [**Changes**](Changes.md) | | [optional] +**issue** | [**Issue**](Issue.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Issues.md b/docs/Issues.md new file mode 100644 index 0000000..423046c --- /dev/null +++ b/docs/Issues.md @@ -0,0 +1,10 @@ +# Issues + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**issues** | [**list[Issue]**](Issue.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/IssuesUsages.md b/docs/IssuesUsages.md new file mode 100644 index 0000000..06c0598 --- /dev/null +++ b/docs/IssuesUsages.md @@ -0,0 +1,12 @@ +# IssuesUsages + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **int** | | [optional] +**href** | **str** | | [optional] +**issue_usage** | [**list[IssueUsage]**](IssueUsage.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Items.md b/docs/Items.md new file mode 100644 index 0000000..97c4c99 --- /dev/null +++ b/docs/Items.md @@ -0,0 +1,10 @@ +# Items + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**item** | **list[str]** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/LicenseKey.md b/docs/LicenseKey.md new file mode 100644 index 0000000..4215dbb --- /dev/null +++ b/docs/LicenseKey.md @@ -0,0 +1,24 @@ +# LicenseKey + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**active** | **bool** | | [optional] [default to False] +**agents** | **int** | | [optional] +**build_types** | **int** | | [optional] +**error_details** | **str** | | [optional] +**expiration_date** | **str** | | [optional] +**expired** | **bool** | | [optional] [default to False] +**key** | **str** | | [optional] +**maintenance_end_date** | **str** | | [optional] +**obsolete** | **bool** | | [optional] [default to False] +**raw_type** | **str** | | [optional] +**servers** | **int** | | [optional] +**type** | **str** | | [optional] +**unlimited_agents** | **bool** | | [optional] [default to False] +**unlimited_build_types** | **bool** | | [optional] [default to False] +**valid** | **bool** | | [optional] [default to False] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/LicenseKeys.md b/docs/LicenseKeys.md new file mode 100644 index 0000000..acd5a79 --- /dev/null +++ b/docs/LicenseKeys.md @@ -0,0 +1,12 @@ +# LicenseKeys + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **int** | | [optional] +**href** | **str** | | [optional] +**license_key** | [**list[LicenseKey]**](LicenseKey.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/LicensingData.md b/docs/LicensingData.md new file mode 100644 index 0000000..69f5f8c --- /dev/null +++ b/docs/LicensingData.md @@ -0,0 +1,19 @@ +# LicensingData + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**agents_left** | **int** | | [optional] +**build_types_left** | **int** | | [optional] +**license_keys** | [**LicenseKeys**](LicenseKeys.md) | | [optional] +**license_use_exceeded** | **bool** | | [optional] [default to False] +**max_agents** | **int** | | [optional] +**max_build_types** | **int** | | [optional] +**server_effective_release_date** | **str** | | [optional] +**server_license_type** | **str** | | [optional] +**unlimited_agents** | **bool** | | [optional] [default to False] +**unlimited_build_types** | **bool** | | [optional] [default to False] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Link.md b/docs/Link.md new file mode 100644 index 0000000..1ab6148 --- /dev/null +++ b/docs/Link.md @@ -0,0 +1,12 @@ +# Link + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**relative_url** | **str** | | [optional] +**type** | **str** | | [optional] +**url** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Links.md b/docs/Links.md new file mode 100644 index 0000000..bd8c47b --- /dev/null +++ b/docs/Links.md @@ -0,0 +1,11 @@ +# Links + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **int** | | [optional] +**link** | [**list[Link]**](Link.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MetaData.md b/docs/MetaData.md new file mode 100644 index 0000000..054ebe7 --- /dev/null +++ b/docs/MetaData.md @@ -0,0 +1,11 @@ +# MetaData + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**entries** | [**Entries**](Entries.md) | | [optional] +**id** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ModelProperty.md b/docs/ModelProperty.md new file mode 100644 index 0000000..060cc68 --- /dev/null +++ b/docs/ModelProperty.md @@ -0,0 +1,13 @@ +# ModelProperty + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**inherited** | **bool** | | [optional] [default to False] +**name** | **str** | | [optional] +**type** | [**Type**](Type.md) | | [optional] +**value** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Mute.md b/docs/Mute.md new file mode 100644 index 0000000..7df7923 --- /dev/null +++ b/docs/Mute.md @@ -0,0 +1,14 @@ +# Mute + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**assignment** | [**Comment**](Comment.md) | | [optional] +**id** | **int** | | [optional] +**resolution** | [**Resolution**](Resolution.md) | | [optional] +**scope** | [**ProblemScope**](ProblemScope.md) | | [optional] +**target** | [**ProblemTarget**](ProblemTarget.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Mutes.md b/docs/Mutes.md new file mode 100644 index 0000000..93e2320 --- /dev/null +++ b/docs/Mutes.md @@ -0,0 +1,15 @@ +# Mutes + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **int** | | [optional] +**default** | **bool** | | [optional] [default to False] +**href** | **str** | | [optional] +**mute** | [**list[Mute]**](Mute.md) | | [optional] +**next_href** | **str** | | [optional] +**prev_href** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NewBuildTypeDescription.md b/docs/NewBuildTypeDescription.md new file mode 100644 index 0000000..e216415 --- /dev/null +++ b/docs/NewBuildTypeDescription.md @@ -0,0 +1,17 @@ +# NewBuildTypeDescription + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**build_types_ids_map** | [**Properties**](Properties.md) | | [optional] +**copy_all_associated_settings** | **bool** | | [optional] [default to False] +**id** | **str** | | [optional] +**name** | **str** | | [optional] +**projects_ids_map** | [**Properties**](Properties.md) | | [optional] +**source_build_type** | [**BuildType**](BuildType.md) | | [optional] +**source_build_type_locator** | **str** | | [optional] +**vcs_roots_ids_map** | [**Properties**](Properties.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NewProjectDescription.md b/docs/NewProjectDescription.md new file mode 100644 index 0000000..4916013 --- /dev/null +++ b/docs/NewProjectDescription.md @@ -0,0 +1,18 @@ +# NewProjectDescription + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**build_types_ids_map** | [**Properties**](Properties.md) | | [optional] +**copy_all_associated_settings** | **bool** | | [optional] [default to False] +**id** | **str** | | [optional] +**name** | **str** | | [optional] +**parent_project** | [**Project**](Project.md) | | [optional] +**projects_ids_map** | [**Properties**](Properties.md) | | [optional] +**source_project** | [**Project**](Project.md) | | [optional] +**source_project_locator** | **str** | | [optional] +**vcs_roots_ids_map** | [**Properties**](Properties.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Plugin.md b/docs/Plugin.md new file mode 100644 index 0000000..7b9ee0f --- /dev/null +++ b/docs/Plugin.md @@ -0,0 +1,14 @@ +# Plugin + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**display_name** | **str** | | [optional] +**load_path** | **str** | | [optional] +**name** | **str** | | [optional] +**parameters** | [**Properties**](Properties.md) | | [optional] +**version** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Plugins.md b/docs/Plugins.md new file mode 100644 index 0000000..f5c6118 --- /dev/null +++ b/docs/Plugins.md @@ -0,0 +1,11 @@ +# Plugins + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **int** | | [optional] +**plugin** | [**list[Plugin]**](Plugin.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Problem.md b/docs/Problem.md new file mode 100644 index 0000000..f9f3ee4 --- /dev/null +++ b/docs/Problem.md @@ -0,0 +1,16 @@ +# Problem + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**href** | **str** | | [optional] +**id** | **str** | | [optional] +**identity** | **str** | | [optional] +**investigations** | [**Investigations**](Investigations.md) | | [optional] +**mutes** | [**Mutes**](Mutes.md) | | [optional] +**problem_occurrences** | [**ProblemOccurrences**](ProblemOccurrences.md) | | [optional] +**type** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ProblemApi.md b/docs/ProblemApi.md new file mode 100644 index 0000000..60bcdc0 --- /dev/null +++ b/docs/ProblemApi.md @@ -0,0 +1,104 @@ +# swagger_client.ProblemApi + +All URIs are relative to *https://teamcity.ptsecurity.ru* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_problems**](ProblemApi.md#get_problems) | **GET** /app/rest/problems | +[**serve_instance**](ProblemApi.md#serve_instance) | **GET** /app/rest/problems/{problemLocator} | + + +# **get_problems** +> Problems get_problems(locator=locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ProblemApi() +locator = 'locator_example' # str | (optional) +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.get_problems(locator=locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling ProblemApi->get_problems: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **locator** | **str**| | [optional] + **fields** | **str**| | [optional] + +### Return type + +[**Problems**](Problems.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **serve_instance** +> Problem serve_instance(problem_locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ProblemApi() +problem_locator = 'problem_locator_example' # str | +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.serve_instance(problem_locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling ProblemApi->serve_instance: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **problem_locator** | **str**| | + **fields** | **str**| | [optional] + +### Return type + +[**Problem**](Problem.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/ProblemOccurrence.md b/docs/ProblemOccurrence.md new file mode 100644 index 0000000..b0a0522 --- /dev/null +++ b/docs/ProblemOccurrence.md @@ -0,0 +1,21 @@ +# ProblemOccurrence + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**additional_data** | **str** | | [optional] +**build** | [**Build**](Build.md) | | [optional] +**currently_investigated** | **bool** | | [optional] [default to False] +**currently_muted** | **bool** | | [optional] [default to False] +**details** | **str** | | [optional] +**href** | **str** | | [optional] +**id** | **str** | | [optional] +**identity** | **str** | | [optional] +**mute** | [**Mute**](Mute.md) | | [optional] +**muted** | **bool** | | [optional] [default to False] +**problem** | [**Problem**](Problem.md) | | [optional] +**type** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ProblemOccurrenceApi.md b/docs/ProblemOccurrenceApi.md new file mode 100644 index 0000000..ae7c98e --- /dev/null +++ b/docs/ProblemOccurrenceApi.md @@ -0,0 +1,104 @@ +# swagger_client.ProblemOccurrenceApi + +All URIs are relative to *https://teamcity.ptsecurity.ru* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_problems**](ProblemOccurrenceApi.md#get_problems) | **GET** /app/rest/problemOccurrences | +[**serve_instance**](ProblemOccurrenceApi.md#serve_instance) | **GET** /app/rest/problemOccurrences/{problemLocator} | + + +# **get_problems** +> ProblemOccurrences get_problems(locator=locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ProblemOccurrenceApi() +locator = 'locator_example' # str | (optional) +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.get_problems(locator=locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling ProblemOccurrenceApi->get_problems: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **locator** | **str**| | [optional] + **fields** | **str**| | [optional] + +### Return type + +[**ProblemOccurrences**](ProblemOccurrences.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **serve_instance** +> ProblemOccurrence serve_instance(problem_locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ProblemOccurrenceApi() +problem_locator = 'problem_locator_example' # str | +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.serve_instance(problem_locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling ProblemOccurrenceApi->serve_instance: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **problem_locator** | **str**| | + **fields** | **str**| | [optional] + +### Return type + +[**ProblemOccurrence**](ProblemOccurrence.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/ProblemOccurrences.md b/docs/ProblemOccurrences.md new file mode 100644 index 0000000..862d714 --- /dev/null +++ b/docs/ProblemOccurrences.md @@ -0,0 +1,20 @@ +# ProblemOccurrences + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **int** | | [optional] +**default** | **bool** | | [optional] [default to False] +**failed** | **int** | | [optional] +**href** | **str** | | [optional] +**ignored** | **int** | | [optional] +**muted** | **int** | | [optional] +**new_failed** | **int** | | [optional] +**next_href** | **str** | | [optional] +**passed** | **int** | | [optional] +**prev_href** | **str** | | [optional] +**problem_occurrence** | [**list[ProblemOccurrence]**](ProblemOccurrence.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ProblemScope.md b/docs/ProblemScope.md new file mode 100644 index 0000000..ac9a5b5 --- /dev/null +++ b/docs/ProblemScope.md @@ -0,0 +1,12 @@ +# ProblemScope + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**build_type** | [**BuildType**](BuildType.md) | | [optional] +**build_types** | [**BuildTypes**](BuildTypes.md) | | [optional] +**project** | [**Project**](Project.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ProblemTarget.md b/docs/ProblemTarget.md new file mode 100644 index 0000000..eeb2eb3 --- /dev/null +++ b/docs/ProblemTarget.md @@ -0,0 +1,12 @@ +# ProblemTarget + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**any_problem** | **bool** | | [optional] [default to False] +**problems** | [**Problems**](Problems.md) | | [optional] +**tests** | [**Tests**](Tests.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Problems.md b/docs/Problems.md new file mode 100644 index 0000000..f115941 --- /dev/null +++ b/docs/Problems.md @@ -0,0 +1,14 @@ +# Problems + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **int** | | [optional] +**default** | **bool** | | [optional] [default to False] +**next_href** | **str** | | [optional] +**prev_href** | **str** | | [optional] +**problem** | [**list[Problem]**](Problem.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ProgressInfo.md b/docs/ProgressInfo.md new file mode 100644 index 0000000..9fa0d6d --- /dev/null +++ b/docs/ProgressInfo.md @@ -0,0 +1,15 @@ +# ProgressInfo + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**current_stage_text** | **str** | | [optional] +**elapsed_seconds** | **int** | | [optional] +**estimated_total_seconds** | **int** | | [optional] +**outdated** | **bool** | | [optional] [default to False] +**percentage_complete** | **int** | | [optional] +**probably_hanging** | **bool** | | [optional] [default to False] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Project.md b/docs/Project.md new file mode 100644 index 0000000..a7a4375 --- /dev/null +++ b/docs/Project.md @@ -0,0 +1,30 @@ +# Project + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**archived** | **bool** | | [optional] [default to False] +**build_types** | [**BuildTypes**](BuildTypes.md) | | [optional] +**description** | **str** | | [optional] +**href** | **str** | | [optional] +**id** | **str** | | [optional] +**internal_id** | **str** | | [optional] +**links** | [**Links**](Links.md) | | [optional] +**locator** | **str** | | [optional] +**name** | **str** | | [optional] +**parameters** | [**Properties**](Properties.md) | | [optional] +**parent_project** | [**Project**](Project.md) | | [optional] +**parent_project_id** | **str** | | [optional] +**parent_project_internal_id** | **str** | | [optional] +**parent_project_name** | **str** | | [optional] +**project_features** | [**ProjectFeatures**](ProjectFeatures.md) | | [optional] +**projects** | [**Projects**](Projects.md) | | [optional] +**read_only_ui** | [**StateField**](StateField.md) | | [optional] +**templates** | [**BuildTypes**](BuildTypes.md) | | [optional] +**uuid** | **str** | | [optional] +**vcs_roots** | [**VcsRoots**](VcsRoots.md) | | [optional] +**web_url** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ProjectApi.md b/docs/ProjectApi.md new file mode 100644 index 0000000..2761c1f --- /dev/null +++ b/docs/ProjectApi.md @@ -0,0 +1,2907 @@ +# swagger_client.ProjectApi + +All URIs are relative to *https://teamcity.ptsecurity.ru* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**add**](ProjectApi.md#add) | **POST** /app/rest/projects/{projectLocator}/projectFeatures | +[**create_build_type**](ProjectApi.md#create_build_type) | **POST** /app/rest/projects/{projectLocator}/buildTypes | +[**create_build_type_template**](ProjectApi.md#create_build_type_template) | **POST** /app/rest/projects/{projectLocator}/templates | +[**create_project**](ProjectApi.md#create_project) | **POST** /app/rest/projects | +[**delete**](ProjectApi.md#delete) | **DELETE** /app/rest/projects/{projectLocator}/projectFeatures/{featureLocator} | +[**delete_all_parameters**](ProjectApi.md#delete_all_parameters) | **DELETE** /app/rest/projects/{projectLocator}/parameters | +[**delete_all_parameters_0**](ProjectApi.md#delete_all_parameters_0) | **DELETE** /app/rest/projects/{projectLocator}/projectFeatures/{featureLocator}/properties | +[**delete_parameter**](ProjectApi.md#delete_parameter) | **DELETE** /app/rest/projects/{projectLocator}/parameters/{name} | +[**delete_parameter_0**](ProjectApi.md#delete_parameter_0) | **DELETE** /app/rest/projects/{projectLocator}/projectFeatures/{featureLocator}/properties/{name} | +[**delete_project**](ProjectApi.md#delete_project) | **DELETE** /app/rest/projects/{projectLocator} | +[**delete_project_agent_pools**](ProjectApi.md#delete_project_agent_pools) | **DELETE** /app/rest/projects/{projectLocator}/agentPools/{agentPoolLocator} | +[**get**](ProjectApi.md#get) | **GET** /app/rest/projects/{projectLocator}/projectFeatures | +[**get_build_types_order**](ProjectApi.md#get_build_types_order) | **GET** /app/rest/projects/{projectLocator}/order/buildTypes | +[**get_example_new_project_description**](ProjectApi.md#get_example_new_project_description) | **GET** /app/rest/projects/{projectLocator}/example/newProjectDescription | +[**get_example_new_project_description_compatibility_version1**](ProjectApi.md#get_example_new_project_description_compatibility_version1) | **GET** /app/rest/projects/{projectLocator}/newProjectDescription | +[**get_parameter**](ProjectApi.md#get_parameter) | **GET** /app/rest/projects/{projectLocator}/parameters/{name} | +[**get_parameter_0**](ProjectApi.md#get_parameter_0) | **GET** /app/rest/projects/{projectLocator}/projectFeatures/{featureLocator}/properties/{name} | +[**get_parameter_type**](ProjectApi.md#get_parameter_type) | **GET** /app/rest/projects/{projectLocator}/parameters/{name}/type | +[**get_parameter_type_raw_value**](ProjectApi.md#get_parameter_type_raw_value) | **GET** /app/rest/projects/{projectLocator}/parameters/{name}/type/rawValue | +[**get_parameter_value_long**](ProjectApi.md#get_parameter_value_long) | **GET** /app/rest/projects/{projectLocator}/parameters/{name}/value | +[**get_parameter_value_long_0**](ProjectApi.md#get_parameter_value_long_0) | **GET** /app/rest/projects/{projectLocator}/projectFeatures/{featureLocator}/properties/{name}/value | +[**get_parameters**](ProjectApi.md#get_parameters) | **GET** /app/rest/projects/{projectLocator}/parameters | +[**get_parameters_0**](ProjectApi.md#get_parameters_0) | **GET** /app/rest/projects/{projectLocator}/projectFeatures/{featureLocator}/properties | +[**get_parent_project**](ProjectApi.md#get_parent_project) | **GET** /app/rest/projects/{projectLocator}/parentProject | +[**get_project_agent_pools**](ProjectApi.md#get_project_agent_pools) | **GET** /app/rest/projects/{projectLocator}/agentPools | +[**get_projects_order**](ProjectApi.md#get_projects_order) | **GET** /app/rest/projects/{projectLocator}/order/projects | +[**get_settings_file**](ProjectApi.md#get_settings_file) | **GET** /app/rest/projects/{projectLocator}/settingsFile | +[**get_single**](ProjectApi.md#get_single) | **GET** /app/rest/projects/{projectLocator}/projectFeatures/{featureLocator} | +[**reload_settings_file**](ProjectApi.md#reload_settings_file) | **GET** /app/rest/projects/{projectLocator}/latest | +[**replace**](ProjectApi.md#replace) | **PUT** /app/rest/projects/{projectLocator}/projectFeatures/{featureLocator} | +[**replace_all**](ProjectApi.md#replace_all) | **PUT** /app/rest/projects/{projectLocator}/projectFeatures | +[**serve_build_field_with_project**](ProjectApi.md#serve_build_field_with_project) | **GET** /app/rest/projects/{projectLocator}/buildTypes/{btLocator}/builds/{buildLocator}/{field} | +[**serve_build_type**](ProjectApi.md#serve_build_type) | **GET** /app/rest/projects/{projectLocator}/buildTypes/{btLocator} | +[**serve_build_type_field_with_project**](ProjectApi.md#serve_build_type_field_with_project) | **GET** /app/rest/projects/{projectLocator}/buildTypes/{btLocator}/{field} | +[**serve_build_type_templates**](ProjectApi.md#serve_build_type_templates) | **GET** /app/rest/projects/{projectLocator}/templates/{btLocator} | +[**serve_build_types_in_project**](ProjectApi.md#serve_build_types_in_project) | **GET** /app/rest/projects/{projectLocator}/buildTypes | +[**serve_build_with_project**](ProjectApi.md#serve_build_with_project) | **GET** /app/rest/projects/{projectLocator}/buildTypes/{btLocator}/builds/{buildLocator} | +[**serve_builds**](ProjectApi.md#serve_builds) | **GET** /app/rest/projects/{projectLocator}/buildTypes/{btLocator}/builds | +[**serve_project**](ProjectApi.md#serve_project) | **GET** /app/rest/projects/{projectLocator} | +[**serve_project_field**](ProjectApi.md#serve_project_field) | **GET** /app/rest/projects/{projectLocator}/{field} | +[**serve_projects**](ProjectApi.md#serve_projects) | **GET** /app/rest/projects | +[**serve_templates_in_project**](ProjectApi.md#serve_templates_in_project) | **GET** /app/rest/projects/{projectLocator}/templates | +[**set_build_types_order**](ProjectApi.md#set_build_types_order) | **PUT** /app/rest/projects/{projectLocator}/order/buildTypes | +[**set_parameter**](ProjectApi.md#set_parameter) | **POST** /app/rest/projects/{projectLocator}/parameters | +[**set_parameter_0**](ProjectApi.md#set_parameter_0) | **PUT** /app/rest/projects/{projectLocator}/parameters/{name} | +[**set_parameter_1**](ProjectApi.md#set_parameter_1) | **POST** /app/rest/projects/{projectLocator}/projectFeatures/{featureLocator}/properties | +[**set_parameter_2**](ProjectApi.md#set_parameter_2) | **PUT** /app/rest/projects/{projectLocator}/projectFeatures/{featureLocator}/properties/{name} | +[**set_parameter_type**](ProjectApi.md#set_parameter_type) | **PUT** /app/rest/projects/{projectLocator}/parameters/{name}/type | +[**set_parameter_type_raw_value**](ProjectApi.md#set_parameter_type_raw_value) | **PUT** /app/rest/projects/{projectLocator}/parameters/{name}/type/rawValue | +[**set_parameter_value_long**](ProjectApi.md#set_parameter_value_long) | **PUT** /app/rest/projects/{projectLocator}/parameters/{name}/value | +[**set_parameter_value_long_0**](ProjectApi.md#set_parameter_value_long_0) | **PUT** /app/rest/projects/{projectLocator}/projectFeatures/{featureLocator}/properties/{name}/value | +[**set_parameters**](ProjectApi.md#set_parameters) | **PUT** /app/rest/projects/{projectLocator}/parameters | +[**set_parameters_0**](ProjectApi.md#set_parameters_0) | **PUT** /app/rest/projects/{projectLocator}/projectFeatures/{featureLocator}/properties | +[**set_parent_project**](ProjectApi.md#set_parent_project) | **PUT** /app/rest/projects/{projectLocator}/parentProject | +[**set_project_agent_pools**](ProjectApi.md#set_project_agent_pools) | **PUT** /app/rest/projects/{projectLocator}/agentPools | +[**set_project_agent_pools_0**](ProjectApi.md#set_project_agent_pools_0) | **POST** /app/rest/projects/{projectLocator}/agentPools | +[**set_project_filed**](ProjectApi.md#set_project_filed) | **PUT** /app/rest/projects/{projectLocator}/{field} | +[**set_projects_order**](ProjectApi.md#set_projects_order) | **PUT** /app/rest/projects/{projectLocator}/order/projects | + + +# **add** +> object add(project_locator, body=body, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ProjectApi() +project_locator = 'project_locator_example' # str | +body = swagger_client.ProjectFeature() # ProjectFeature | (optional) +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.add(project_locator, body=body, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling ProjectApi->add: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **project_locator** | **str**| | + **body** | [**ProjectFeature**](ProjectFeature.md)| | [optional] + **fields** | **str**| | [optional] + +### Return type + +**object** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_build_type** +> BuildType create_build_type(project_locator, body=body, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ProjectApi() +project_locator = 'project_locator_example' # str | +body = swagger_client.NewBuildTypeDescription() # NewBuildTypeDescription | (optional) +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.create_build_type(project_locator, body=body, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling ProjectApi->create_build_type: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **project_locator** | **str**| | + **body** | [**NewBuildTypeDescription**](NewBuildTypeDescription.md)| | [optional] + **fields** | **str**| | [optional] + +### Return type + +[**BuildType**](BuildType.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_build_type_template** +> BuildType create_build_type_template(project_locator, body=body, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ProjectApi() +project_locator = 'project_locator_example' # str | +body = swagger_client.NewBuildTypeDescription() # NewBuildTypeDescription | (optional) +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.create_build_type_template(project_locator, body=body, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling ProjectApi->create_build_type_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **project_locator** | **str**| | + **body** | [**NewBuildTypeDescription**](NewBuildTypeDescription.md)| | [optional] + **fields** | **str**| | [optional] + +### Return type + +[**BuildType**](BuildType.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_project** +> Project create_project(body=body) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ProjectApi() +body = swagger_client.NewProjectDescription() # NewProjectDescription | (optional) + +try: + api_response = api_instance.create_project(body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling ProjectApi->create_project: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**NewProjectDescription**](NewProjectDescription.md)| | [optional] + +### Return type + +[**Project**](Project.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete** +> delete(feature_locator, project_locator) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ProjectApi() +feature_locator = 'feature_locator_example' # str | +project_locator = 'project_locator_example' # str | + +try: + api_instance.delete(feature_locator, project_locator) +except ApiException as e: + print("Exception when calling ProjectApi->delete: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **feature_locator** | **str**| | + **project_locator** | **str**| | + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_all_parameters** +> delete_all_parameters(project_locator) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ProjectApi() +project_locator = 'project_locator_example' # str | + +try: + api_instance.delete_all_parameters(project_locator) +except ApiException as e: + print("Exception when calling ProjectApi->delete_all_parameters: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **project_locator** | **str**| | + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_all_parameters_0** +> delete_all_parameters_0(feature_locator, project_locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ProjectApi() +feature_locator = 'feature_locator_example' # str | +project_locator = 'project_locator_example' # str | +fields = 'fields_example' # str | (optional) + +try: + api_instance.delete_all_parameters_0(feature_locator, project_locator, fields=fields) +except ApiException as e: + print("Exception when calling ProjectApi->delete_all_parameters_0: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **feature_locator** | **str**| | + **project_locator** | **str**| | + **fields** | **str**| | [optional] + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_parameter** +> delete_parameter(name, project_locator) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ProjectApi() +name = 'name_example' # str | +project_locator = 'project_locator_example' # str | + +try: + api_instance.delete_parameter(name, project_locator) +except ApiException as e: + print("Exception when calling ProjectApi->delete_parameter: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| | + **project_locator** | **str**| | + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_parameter_0** +> delete_parameter_0(name, feature_locator, project_locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ProjectApi() +name = 'name_example' # str | +feature_locator = 'feature_locator_example' # str | +project_locator = 'project_locator_example' # str | +fields = 'fields_example' # str | (optional) + +try: + api_instance.delete_parameter_0(name, feature_locator, project_locator, fields=fields) +except ApiException as e: + print("Exception when calling ProjectApi->delete_parameter_0: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| | + **feature_locator** | **str**| | + **project_locator** | **str**| | + **fields** | **str**| | [optional] + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_project** +> delete_project(project_locator) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ProjectApi() +project_locator = 'project_locator_example' # str | + +try: + api_instance.delete_project(project_locator) +except ApiException as e: + print("Exception when calling ProjectApi->delete_project: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **project_locator** | **str**| | + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_project_agent_pools** +> delete_project_agent_pools(project_locator, agent_pool_locator) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ProjectApi() +project_locator = 'project_locator_example' # str | +agent_pool_locator = 'agent_pool_locator_example' # str | + +try: + api_instance.delete_project_agent_pools(project_locator, agent_pool_locator) +except ApiException as e: + print("Exception when calling ProjectApi->delete_project_agent_pools: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **project_locator** | **str**| | + **agent_pool_locator** | **str**| | + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get** +> object get(project_locator, locator=locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ProjectApi() +project_locator = 'project_locator_example' # str | +locator = 'locator_example' # str | (optional) +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.get(project_locator, locator=locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling ProjectApi->get: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **project_locator** | **str**| | + **locator** | **str**| | [optional] + **fields** | **str**| | [optional] + +### Return type + +**object** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_build_types_order** +> BuildTypes get_build_types_order(project_locator, field) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ProjectApi() +project_locator = 'project_locator_example' # str | +field = 'field_example' # str | + +try: + api_response = api_instance.get_build_types_order(project_locator, field) + pprint(api_response) +except ApiException as e: + print("Exception when calling ProjectApi->get_build_types_order: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **project_locator** | **str**| | + **field** | **str**| | + +### Return type + +[**BuildTypes**](BuildTypes.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_example_new_project_description** +> NewProjectDescription get_example_new_project_description(project_locator, id=id) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ProjectApi() +project_locator = 'project_locator_example' # str | +id = 'id_example' # str | (optional) + +try: + api_response = api_instance.get_example_new_project_description(project_locator, id=id) + pprint(api_response) +except ApiException as e: + print("Exception when calling ProjectApi->get_example_new_project_description: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **project_locator** | **str**| | + **id** | **str**| | [optional] + +### Return type + +[**NewProjectDescription**](NewProjectDescription.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_example_new_project_description_compatibility_version1** +> NewProjectDescription get_example_new_project_description_compatibility_version1(project_locator, id=id) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ProjectApi() +project_locator = 'project_locator_example' # str | +id = 'id_example' # str | (optional) + +try: + api_response = api_instance.get_example_new_project_description_compatibility_version1(project_locator, id=id) + pprint(api_response) +except ApiException as e: + print("Exception when calling ProjectApi->get_example_new_project_description_compatibility_version1: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **project_locator** | **str**| | + **id** | **str**| | [optional] + +### Return type + +[**NewProjectDescription**](NewProjectDescription.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_parameter** +> ModelProperty get_parameter(name, project_locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ProjectApi() +name = 'name_example' # str | +project_locator = 'project_locator_example' # str | +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.get_parameter(name, project_locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling ProjectApi->get_parameter: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| | + **project_locator** | **str**| | + **fields** | **str**| | [optional] + +### Return type + +[**ModelProperty**](ModelProperty.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_parameter_0** +> ModelProperty get_parameter_0(name, feature_locator, project_locator, fields=fields, fields2=fields2) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ProjectApi() +name = 'name_example' # str | +feature_locator = 'feature_locator_example' # str | +project_locator = 'project_locator_example' # str | +fields = 'fields_example' # str | (optional) +fields2 = 'fields_example' # str | (optional) + +try: + api_response = api_instance.get_parameter_0(name, feature_locator, project_locator, fields=fields, fields2=fields2) + pprint(api_response) +except ApiException as e: + print("Exception when calling ProjectApi->get_parameter_0: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| | + **feature_locator** | **str**| | + **project_locator** | **str**| | + **fields** | **str**| | [optional] + **fields2** | **str**| | [optional] + +### Return type + +[**ModelProperty**](ModelProperty.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_parameter_type** +> Type get_parameter_type(name, project_locator) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ProjectApi() +name = 'name_example' # str | +project_locator = 'project_locator_example' # str | + +try: + api_response = api_instance.get_parameter_type(name, project_locator) + pprint(api_response) +except ApiException as e: + print("Exception when calling ProjectApi->get_parameter_type: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| | + **project_locator** | **str**| | + +### Return type + +[**Type**](Type.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_parameter_type_raw_value** +> str get_parameter_type_raw_value(name, project_locator) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ProjectApi() +name = 'name_example' # str | +project_locator = 'project_locator_example' # str | + +try: + api_response = api_instance.get_parameter_type_raw_value(name, project_locator) + pprint(api_response) +except ApiException as e: + print("Exception when calling ProjectApi->get_parameter_type_raw_value: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| | + **project_locator** | **str**| | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_parameter_value_long** +> str get_parameter_value_long(name, project_locator) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ProjectApi() +name = 'name_example' # str | +project_locator = 'project_locator_example' # str | + +try: + api_response = api_instance.get_parameter_value_long(name, project_locator) + pprint(api_response) +except ApiException as e: + print("Exception when calling ProjectApi->get_parameter_value_long: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| | + **project_locator** | **str**| | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_parameter_value_long_0** +> str get_parameter_value_long_0(name, feature_locator, project_locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ProjectApi() +name = 'name_example' # str | +feature_locator = 'feature_locator_example' # str | +project_locator = 'project_locator_example' # str | +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.get_parameter_value_long_0(name, feature_locator, project_locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling ProjectApi->get_parameter_value_long_0: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| | + **feature_locator** | **str**| | + **project_locator** | **str**| | + **fields** | **str**| | [optional] + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_parameters** +> Properties get_parameters(project_locator, locator=locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ProjectApi() +project_locator = 'project_locator_example' # str | +locator = 'locator_example' # str | (optional) +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.get_parameters(project_locator, locator=locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling ProjectApi->get_parameters: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **project_locator** | **str**| | + **locator** | **str**| | [optional] + **fields** | **str**| | [optional] + +### Return type + +[**Properties**](Properties.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_parameters_0** +> Properties get_parameters_0(feature_locator, project_locator, locator=locator, fields=fields, fields2=fields2) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ProjectApi() +feature_locator = 'feature_locator_example' # str | +project_locator = 'project_locator_example' # str | +locator = 'locator_example' # str | (optional) +fields = 'fields_example' # str | (optional) +fields2 = 'fields_example' # str | (optional) + +try: + api_response = api_instance.get_parameters_0(feature_locator, project_locator, locator=locator, fields=fields, fields2=fields2) + pprint(api_response) +except ApiException as e: + print("Exception when calling ProjectApi->get_parameters_0: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **feature_locator** | **str**| | + **project_locator** | **str**| | + **locator** | **str**| | [optional] + **fields** | **str**| | [optional] + **fields2** | **str**| | [optional] + +### Return type + +[**Properties**](Properties.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_parent_project** +> Project get_parent_project(project_locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ProjectApi() +project_locator = 'project_locator_example' # str | +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.get_parent_project(project_locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling ProjectApi->get_parent_project: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **project_locator** | **str**| | + **fields** | **str**| | [optional] + +### Return type + +[**Project**](Project.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_project_agent_pools** +> AgentPools get_project_agent_pools(project_locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ProjectApi() +project_locator = 'project_locator_example' # str | +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.get_project_agent_pools(project_locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling ProjectApi->get_project_agent_pools: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **project_locator** | **str**| | + **fields** | **str**| | [optional] + +### Return type + +[**AgentPools**](AgentPools.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_projects_order** +> Projects get_projects_order(project_locator, field) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ProjectApi() +project_locator = 'project_locator_example' # str | +field = 'field_example' # str | + +try: + api_response = api_instance.get_projects_order(project_locator, field) + pprint(api_response) +except ApiException as e: + print("Exception when calling ProjectApi->get_projects_order: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **project_locator** | **str**| | + **field** | **str**| | + +### Return type + +[**Projects**](Projects.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_settings_file** +> str get_settings_file(project_locator) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ProjectApi() +project_locator = 'project_locator_example' # str | + +try: + api_response = api_instance.get_settings_file(project_locator) + pprint(api_response) +except ApiException as e: + print("Exception when calling ProjectApi->get_settings_file: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **project_locator** | **str**| | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_single** +> object get_single(feature_locator, project_locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ProjectApi() +feature_locator = 'feature_locator_example' # str | +project_locator = 'project_locator_example' # str | +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.get_single(feature_locator, project_locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling ProjectApi->get_single: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **feature_locator** | **str**| | + **project_locator** | **str**| | + **fields** | **str**| | [optional] + +### Return type + +**object** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **reload_settings_file** +> Project reload_settings_file(project_locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ProjectApi() +project_locator = 'project_locator_example' # str | +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.reload_settings_file(project_locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling ProjectApi->reload_settings_file: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **project_locator** | **str**| | + **fields** | **str**| | [optional] + +### Return type + +[**Project**](Project.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace** +> object replace(feature_locator, project_locator, body=body, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ProjectApi() +feature_locator = 'feature_locator_example' # str | +project_locator = 'project_locator_example' # str | +body = swagger_client.ProjectFeature() # ProjectFeature | (optional) +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.replace(feature_locator, project_locator, body=body, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling ProjectApi->replace: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **feature_locator** | **str**| | + **project_locator** | **str**| | + **body** | [**ProjectFeature**](ProjectFeature.md)| | [optional] + **fields** | **str**| | [optional] + +### Return type + +**object** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_all** +> object replace_all(project_locator, body=body, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ProjectApi() +project_locator = 'project_locator_example' # str | +body = swagger_client.ProjectFeatures() # ProjectFeatures | (optional) +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.replace_all(project_locator, body=body, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling ProjectApi->replace_all: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **project_locator** | **str**| | + **body** | [**ProjectFeatures**](ProjectFeatures.md)| | [optional] + **fields** | **str**| | [optional] + +### Return type + +**object** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **serve_build_field_with_project** +> str serve_build_field_with_project(project_locator, bt_locator, build_locator, field) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ProjectApi() +project_locator = 'project_locator_example' # str | +bt_locator = 'bt_locator_example' # str | +build_locator = 'build_locator_example' # str | +field = 'field_example' # str | + +try: + api_response = api_instance.serve_build_field_with_project(project_locator, bt_locator, build_locator, field) + pprint(api_response) +except ApiException as e: + print("Exception when calling ProjectApi->serve_build_field_with_project: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **project_locator** | **str**| | + **bt_locator** | **str**| | + **build_locator** | **str**| | + **field** | **str**| | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **serve_build_type** +> BuildType serve_build_type(project_locator, bt_locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ProjectApi() +project_locator = 'project_locator_example' # str | +bt_locator = 'bt_locator_example' # str | +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.serve_build_type(project_locator, bt_locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling ProjectApi->serve_build_type: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **project_locator** | **str**| | + **bt_locator** | **str**| | + **fields** | **str**| | [optional] + +### Return type + +[**BuildType**](BuildType.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **serve_build_type_field_with_project** +> str serve_build_type_field_with_project(project_locator, bt_locator, field) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ProjectApi() +project_locator = 'project_locator_example' # str | +bt_locator = 'bt_locator_example' # str | +field = 'field_example' # str | + +try: + api_response = api_instance.serve_build_type_field_with_project(project_locator, bt_locator, field) + pprint(api_response) +except ApiException as e: + print("Exception when calling ProjectApi->serve_build_type_field_with_project: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **project_locator** | **str**| | + **bt_locator** | **str**| | + **field** | **str**| | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **serve_build_type_templates** +> BuildType serve_build_type_templates(project_locator, bt_locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ProjectApi() +project_locator = 'project_locator_example' # str | +bt_locator = 'bt_locator_example' # str | +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.serve_build_type_templates(project_locator, bt_locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling ProjectApi->serve_build_type_templates: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **project_locator** | **str**| | + **bt_locator** | **str**| | + **fields** | **str**| | [optional] + +### Return type + +[**BuildType**](BuildType.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **serve_build_types_in_project** +> BuildTypes serve_build_types_in_project(project_locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ProjectApi() +project_locator = 'project_locator_example' # str | +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.serve_build_types_in_project(project_locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling ProjectApi->serve_build_types_in_project: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **project_locator** | **str**| | + **fields** | **str**| | [optional] + +### Return type + +[**BuildTypes**](BuildTypes.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **serve_build_with_project** +> Build serve_build_with_project(project_locator, bt_locator, build_locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ProjectApi() +project_locator = 'project_locator_example' # str | +bt_locator = 'bt_locator_example' # str | +build_locator = 'build_locator_example' # str | +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.serve_build_with_project(project_locator, bt_locator, build_locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling ProjectApi->serve_build_with_project: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **project_locator** | **str**| | + **bt_locator** | **str**| | + **build_locator** | **str**| | + **fields** | **str**| | [optional] + +### Return type + +[**Build**](Build.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **serve_builds** +> Builds serve_builds(project_locator, bt_locator, status=status, triggered_by_user=triggered_by_user, include_personal=include_personal, include_canceled=include_canceled, only_pinned=only_pinned, tag=tag, agent_name=agent_name, since_build=since_build, since_date=since_date, start=start, count=count, locator=locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ProjectApi() +project_locator = 'project_locator_example' # str | +bt_locator = 'bt_locator_example' # str | +status = 'status_example' # str | (optional) +triggered_by_user = 'triggered_by_user_example' # str | (optional) +include_personal = true # bool | (optional) +include_canceled = true # bool | (optional) +only_pinned = true # bool | (optional) +tag = ['tag_example'] # list[str] | (optional) +agent_name = 'agent_name_example' # str | (optional) +since_build = 'since_build_example' # str | (optional) +since_date = 'since_date_example' # str | (optional) +start = 789 # int | (optional) +count = 56 # int | (optional) +locator = 'locator_example' # str | (optional) +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.serve_builds(project_locator, bt_locator, status=status, triggered_by_user=triggered_by_user, include_personal=include_personal, include_canceled=include_canceled, only_pinned=only_pinned, tag=tag, agent_name=agent_name, since_build=since_build, since_date=since_date, start=start, count=count, locator=locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling ProjectApi->serve_builds: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **project_locator** | **str**| | + **bt_locator** | **str**| | + **status** | **str**| | [optional] + **triggered_by_user** | **str**| | [optional] + **include_personal** | **bool**| | [optional] + **include_canceled** | **bool**| | [optional] + **only_pinned** | **bool**| | [optional] + **tag** | [**list[str]**](str.md)| | [optional] + **agent_name** | **str**| | [optional] + **since_build** | **str**| | [optional] + **since_date** | **str**| | [optional] + **start** | **int**| | [optional] + **count** | **int**| | [optional] + **locator** | **str**| | [optional] + **fields** | **str**| | [optional] + +### Return type + +[**Builds**](Builds.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **serve_project** +> Project serve_project(project_locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ProjectApi() +project_locator = 'project_locator_example' # str | +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.serve_project(project_locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling ProjectApi->serve_project: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **project_locator** | **str**| | + **fields** | **str**| | [optional] + +### Return type + +[**Project**](Project.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **serve_project_field** +> str serve_project_field(project_locator, field) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ProjectApi() +project_locator = 'project_locator_example' # str | +field = 'field_example' # str | + +try: + api_response = api_instance.serve_project_field(project_locator, field) + pprint(api_response) +except ApiException as e: + print("Exception when calling ProjectApi->serve_project_field: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **project_locator** | **str**| | + **field** | **str**| | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **serve_projects** +> Projects serve_projects(locator=locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ProjectApi() +locator = 'locator_example' # str | (optional) +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.serve_projects(locator=locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling ProjectApi->serve_projects: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **locator** | **str**| | [optional] + **fields** | **str**| | [optional] + +### Return type + +[**Projects**](Projects.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **serve_templates_in_project** +> BuildTypes serve_templates_in_project(project_locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ProjectApi() +project_locator = 'project_locator_example' # str | +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.serve_templates_in_project(project_locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling ProjectApi->serve_templates_in_project: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **project_locator** | **str**| | + **fields** | **str**| | [optional] + +### Return type + +[**BuildTypes**](BuildTypes.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **set_build_types_order** +> BuildTypes set_build_types_order(project_locator, field, body=body) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ProjectApi() +project_locator = 'project_locator_example' # str | +field = 'field_example' # str | +body = swagger_client.BuildTypes() # BuildTypes | (optional) + +try: + api_response = api_instance.set_build_types_order(project_locator, field, body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling ProjectApi->set_build_types_order: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **project_locator** | **str**| | + **field** | **str**| | + **body** | [**BuildTypes**](BuildTypes.md)| | [optional] + +### Return type + +[**BuildTypes**](BuildTypes.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **set_parameter** +> ModelProperty set_parameter(project_locator, body=body, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ProjectApi() +project_locator = 'project_locator_example' # str | +body = swagger_client.ModelProperty() # ModelProperty | (optional) +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.set_parameter(project_locator, body=body, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling ProjectApi->set_parameter: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **project_locator** | **str**| | + **body** | [**ModelProperty**](ModelProperty.md)| | [optional] + **fields** | **str**| | [optional] + +### Return type + +[**ModelProperty**](ModelProperty.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **set_parameter_0** +> ModelProperty set_parameter_0(name, project_locator, body=body, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ProjectApi() +name = 'name_example' # str | +project_locator = 'project_locator_example' # str | +body = swagger_client.ModelProperty() # ModelProperty | (optional) +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.set_parameter_0(name, project_locator, body=body, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling ProjectApi->set_parameter_0: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| | + **project_locator** | **str**| | + **body** | [**ModelProperty**](ModelProperty.md)| | [optional] + **fields** | **str**| | [optional] + +### Return type + +[**ModelProperty**](ModelProperty.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **set_parameter_1** +> ModelProperty set_parameter_1(feature_locator, project_locator, body=body, fields=fields, fields2=fields2) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ProjectApi() +feature_locator = 'feature_locator_example' # str | +project_locator = 'project_locator_example' # str | +body = swagger_client.ModelProperty() # ModelProperty | (optional) +fields = 'fields_example' # str | (optional) +fields2 = 'fields_example' # str | (optional) + +try: + api_response = api_instance.set_parameter_1(feature_locator, project_locator, body=body, fields=fields, fields2=fields2) + pprint(api_response) +except ApiException as e: + print("Exception when calling ProjectApi->set_parameter_1: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **feature_locator** | **str**| | + **project_locator** | **str**| | + **body** | [**ModelProperty**](ModelProperty.md)| | [optional] + **fields** | **str**| | [optional] + **fields2** | **str**| | [optional] + +### Return type + +[**ModelProperty**](ModelProperty.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **set_parameter_2** +> ModelProperty set_parameter_2(name, feature_locator, project_locator, body=body, fields=fields, fields2=fields2) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ProjectApi() +name = 'name_example' # str | +feature_locator = 'feature_locator_example' # str | +project_locator = 'project_locator_example' # str | +body = swagger_client.ModelProperty() # ModelProperty | (optional) +fields = 'fields_example' # str | (optional) +fields2 = 'fields_example' # str | (optional) + +try: + api_response = api_instance.set_parameter_2(name, feature_locator, project_locator, body=body, fields=fields, fields2=fields2) + pprint(api_response) +except ApiException as e: + print("Exception when calling ProjectApi->set_parameter_2: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| | + **feature_locator** | **str**| | + **project_locator** | **str**| | + **body** | [**ModelProperty**](ModelProperty.md)| | [optional] + **fields** | **str**| | [optional] + **fields2** | **str**| | [optional] + +### Return type + +[**ModelProperty**](ModelProperty.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **set_parameter_type** +> Type set_parameter_type(name, project_locator, body=body) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ProjectApi() +name = 'name_example' # str | +project_locator = 'project_locator_example' # str | +body = swagger_client.Type() # Type | (optional) + +try: + api_response = api_instance.set_parameter_type(name, project_locator, body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling ProjectApi->set_parameter_type: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| | + **project_locator** | **str**| | + **body** | [**Type**](Type.md)| | [optional] + +### Return type + +[**Type**](Type.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **set_parameter_type_raw_value** +> str set_parameter_type_raw_value(name, project_locator, body=body) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ProjectApi() +name = 'name_example' # str | +project_locator = 'project_locator_example' # str | +body = 'body_example' # str | (optional) + +try: + api_response = api_instance.set_parameter_type_raw_value(name, project_locator, body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling ProjectApi->set_parameter_type_raw_value: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| | + **project_locator** | **str**| | + **body** | **str**| | [optional] + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **set_parameter_value_long** +> str set_parameter_value_long(name, project_locator, body=body) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ProjectApi() +name = 'name_example' # str | +project_locator = 'project_locator_example' # str | +body = 'body_example' # str | (optional) + +try: + api_response = api_instance.set_parameter_value_long(name, project_locator, body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling ProjectApi->set_parameter_value_long: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| | + **project_locator** | **str**| | + **body** | **str**| | [optional] + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **set_parameter_value_long_0** +> str set_parameter_value_long_0(name, feature_locator, project_locator, body=body, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ProjectApi() +name = 'name_example' # str | +feature_locator = 'feature_locator_example' # str | +project_locator = 'project_locator_example' # str | +body = 'body_example' # str | (optional) +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.set_parameter_value_long_0(name, feature_locator, project_locator, body=body, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling ProjectApi->set_parameter_value_long_0: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| | + **feature_locator** | **str**| | + **project_locator** | **str**| | + **body** | **str**| | [optional] + **fields** | **str**| | [optional] + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **set_parameters** +> Properties set_parameters(project_locator, body=body, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ProjectApi() +project_locator = 'project_locator_example' # str | +body = swagger_client.Properties() # Properties | (optional) +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.set_parameters(project_locator, body=body, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling ProjectApi->set_parameters: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **project_locator** | **str**| | + **body** | [**Properties**](Properties.md)| | [optional] + **fields** | **str**| | [optional] + +### Return type + +[**Properties**](Properties.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **set_parameters_0** +> Properties set_parameters_0(feature_locator, project_locator, body=body, fields=fields, fields2=fields2) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ProjectApi() +feature_locator = 'feature_locator_example' # str | +project_locator = 'project_locator_example' # str | +body = swagger_client.Properties() # Properties | (optional) +fields = 'fields_example' # str | (optional) +fields2 = 'fields_example' # str | (optional) + +try: + api_response = api_instance.set_parameters_0(feature_locator, project_locator, body=body, fields=fields, fields2=fields2) + pprint(api_response) +except ApiException as e: + print("Exception when calling ProjectApi->set_parameters_0: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **feature_locator** | **str**| | + **project_locator** | **str**| | + **body** | [**Properties**](Properties.md)| | [optional] + **fields** | **str**| | [optional] + **fields2** | **str**| | [optional] + +### Return type + +[**Properties**](Properties.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **set_parent_project** +> Project set_parent_project(project_locator, body=body) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ProjectApi() +project_locator = 'project_locator_example' # str | +body = swagger_client.Project() # Project | (optional) + +try: + api_response = api_instance.set_parent_project(project_locator, body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling ProjectApi->set_parent_project: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **project_locator** | **str**| | + **body** | [**Project**](Project.md)| | [optional] + +### Return type + +[**Project**](Project.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **set_project_agent_pools** +> AgentPools set_project_agent_pools(project_locator, body=body, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ProjectApi() +project_locator = 'project_locator_example' # str | +body = swagger_client.AgentPools() # AgentPools | (optional) +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.set_project_agent_pools(project_locator, body=body, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling ProjectApi->set_project_agent_pools: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **project_locator** | **str**| | + **body** | [**AgentPools**](AgentPools.md)| | [optional] + **fields** | **str**| | [optional] + +### Return type + +[**AgentPools**](AgentPools.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **set_project_agent_pools_0** +> AgentPool set_project_agent_pools_0(project_locator, body=body) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ProjectApi() +project_locator = 'project_locator_example' # str | +body = swagger_client.AgentPool() # AgentPool | (optional) + +try: + api_response = api_instance.set_project_agent_pools_0(project_locator, body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling ProjectApi->set_project_agent_pools_0: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **project_locator** | **str**| | + **body** | [**AgentPool**](AgentPool.md)| | [optional] + +### Return type + +[**AgentPool**](AgentPool.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **set_project_filed** +> str set_project_filed(project_locator, field, body=body) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ProjectApi() +project_locator = 'project_locator_example' # str | +field = 'field_example' # str | +body = 'body_example' # str | (optional) + +try: + api_response = api_instance.set_project_filed(project_locator, field, body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling ProjectApi->set_project_filed: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **project_locator** | **str**| | + **field** | **str**| | + **body** | **str**| | [optional] + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **set_projects_order** +> Projects set_projects_order(project_locator, field, body=body) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ProjectApi() +project_locator = 'project_locator_example' # str | +field = 'field_example' # str | +body = swagger_client.Projects() # Projects | (optional) + +try: + api_response = api_instance.set_projects_order(project_locator, field, body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling ProjectApi->set_projects_order: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **project_locator** | **str**| | + **field** | **str**| | + **body** | [**Projects**](Projects.md)| | [optional] + +### Return type + +[**Projects**](Projects.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/ProjectFeature.md b/docs/ProjectFeature.md new file mode 100644 index 0000000..1d42ae9 --- /dev/null +++ b/docs/ProjectFeature.md @@ -0,0 +1,16 @@ +# ProjectFeature + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**disabled** | **bool** | | [optional] [default to False] +**href** | **str** | | [optional] +**id** | **str** | | [optional] +**inherited** | **bool** | | [optional] [default to False] +**name** | **str** | | [optional] +**properties** | [**Properties**](Properties.md) | | [optional] +**type** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ProjectFeatures.md b/docs/ProjectFeatures.md new file mode 100644 index 0000000..5ae0a47 --- /dev/null +++ b/docs/ProjectFeatures.md @@ -0,0 +1,12 @@ +# ProjectFeatures + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **int** | | [optional] +**href** | **str** | | [optional] +**project_feature** | [**list[ProjectFeature]**](ProjectFeature.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Projects.md b/docs/Projects.md new file mode 100644 index 0000000..4a4fca3 --- /dev/null +++ b/docs/Projects.md @@ -0,0 +1,14 @@ +# Projects + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **int** | | [optional] +**href** | **str** | | [optional] +**next_href** | **str** | | [optional] +**prev_href** | **str** | | [optional] +**project** | [**list[Project]**](Project.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Properties.md b/docs/Properties.md new file mode 100644 index 0000000..918d22c --- /dev/null +++ b/docs/Properties.md @@ -0,0 +1,12 @@ +# Properties + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **int** | | [optional] +**href** | **str** | | [optional] +**_property** | [**list[ModelProperty]**](ModelProperty.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/RepositoryState.md b/docs/RepositoryState.md new file mode 100644 index 0000000..1b5303a --- /dev/null +++ b/docs/RepositoryState.md @@ -0,0 +1,12 @@ +# RepositoryState + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**branch** | [**list[BranchVersion]**](BranchVersion.md) | | [optional] +**count** | **int** | | [optional] +**timestamp** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Requirements.md b/docs/Requirements.md new file mode 100644 index 0000000..67f3690 --- /dev/null +++ b/docs/Requirements.md @@ -0,0 +1,10 @@ +# Requirements + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Resolution.md b/docs/Resolution.md new file mode 100644 index 0000000..44730f5 --- /dev/null +++ b/docs/Resolution.md @@ -0,0 +1,11 @@ +# Resolution + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**time** | **str** | | [optional] +**type** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Revision.md b/docs/Revision.md new file mode 100644 index 0000000..b29324a --- /dev/null +++ b/docs/Revision.md @@ -0,0 +1,14 @@ +# Revision + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**checkout_rules** | **str** | | [optional] +**internal_version** | **str** | | [optional] +**vcs_root_instance** | [**VcsRootInstance**](VcsRootInstance.md) | | [optional] +**vcs_branch_name** | **str** | | [optional] +**version** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Revisions.md b/docs/Revisions.md new file mode 100644 index 0000000..3d01a01 --- /dev/null +++ b/docs/Revisions.md @@ -0,0 +1,11 @@ +# Revisions + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **int** | | [optional] +**revision** | [**list[Revision]**](Revision.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Role.md b/docs/Role.md new file mode 100644 index 0000000..f222bd4 --- /dev/null +++ b/docs/Role.md @@ -0,0 +1,12 @@ +# Role + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**href** | **str** | | [optional] +**role_id** | **str** | | [optional] +**scope** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Roles.md b/docs/Roles.md new file mode 100644 index 0000000..6df8663 --- /dev/null +++ b/docs/Roles.md @@ -0,0 +1,10 @@ +# Roles + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**role** | [**list[Role]**](Role.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Server.md b/docs/Server.md new file mode 100644 index 0000000..15c0543 --- /dev/null +++ b/docs/Server.md @@ -0,0 +1,27 @@ +# Server + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**agent_pools** | [**Href**](Href.md) | | [optional] +**agents** | [**Href**](Href.md) | | [optional] +**build_date** | **str** | | [optional] +**build_number** | **str** | | [optional] +**build_queue** | [**Href**](Href.md) | | [optional] +**builds** | [**Href**](Href.md) | | [optional] +**current_time** | **str** | | [optional] +**internal_id** | **str** | | [optional] +**projects** | [**Href**](Href.md) | | [optional] +**role** | **str** | | [optional] +**start_time** | **str** | | [optional] +**user_groups** | [**Href**](Href.md) | | [optional] +**users** | [**Href**](Href.md) | | [optional] +**vcs_roots** | [**Href**](Href.md) | | [optional] +**version** | **str** | | [optional] +**version_major** | **int** | | [optional] +**version_minor** | **int** | | [optional] +**web_url** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ServerApi.md b/docs/ServerApi.md new file mode 100644 index 0000000..891544c --- /dev/null +++ b/docs/ServerApi.md @@ -0,0 +1,844 @@ +# swagger_client.ServerApi + +All URIs are relative to *https://teamcity.ptsecurity.ru* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**add_license_keys**](ServerApi.md#add_license_keys) | **POST** /app/rest/server/licensingData/licenseKeys | +[**delete_license_key**](ServerApi.md#delete_license_key) | **DELETE** /app/rest/server/licensingData/licenseKeys/{licenseKey} | +[**get_backup_status**](ServerApi.md#get_backup_status) | **GET** /app/rest/server/backup | +[**get_children**](ServerApi.md#get_children) | **GET** /app/rest/server/files/{areaId}/children{path} | +[**get_children_alias**](ServerApi.md#get_children_alias) | **GET** /app/rest/server/files/{areaId}/{path} | +[**get_content**](ServerApi.md#get_content) | **GET** /app/rest/server/files/{areaId}/content{path} | +[**get_content_alias**](ServerApi.md#get_content_alias) | **GET** /app/rest/server/files/{areaId}/files{path} | +[**get_license_key**](ServerApi.md#get_license_key) | **GET** /app/rest/server/licensingData/licenseKeys/{licenseKey} | +[**get_license_keys**](ServerApi.md#get_license_keys) | **GET** /app/rest/server/licensingData/licenseKeys | +[**get_licensing_data**](ServerApi.md#get_licensing_data) | **GET** /app/rest/server/licensingData | +[**get_metadata**](ServerApi.md#get_metadata) | **GET** /app/rest/server/files/{areaId}/metadata{path} | +[**get_root**](ServerApi.md#get_root) | **GET** /app/rest/server/files/{areaId} | +[**get_zipped**](ServerApi.md#get_zipped) | **GET** /app/rest/server/files/{areaId}/archived{path} | +[**serve_plugins**](ServerApi.md#serve_plugins) | **GET** /app/rest/server/plugins | +[**serve_server_info**](ServerApi.md#serve_server_info) | **GET** /app/rest/server | +[**serve_server_version**](ServerApi.md#serve_server_version) | **GET** /app/rest/server/{field} | +[**start_backup**](ServerApi.md#start_backup) | **POST** /app/rest/server/backup | + + +# **add_license_keys** +> LicenseKeys add_license_keys(body=body, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ServerApi() +body = 'body_example' # str | (optional) +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.add_license_keys(body=body, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling ServerApi->add_license_keys: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **str**| | [optional] + **fields** | **str**| | [optional] + +### Return type + +[**LicenseKeys**](LicenseKeys.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_license_key** +> delete_license_key(license_key) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ServerApi() +license_key = 'license_key_example' # str | + +try: + api_instance.delete_license_key(license_key) +except ApiException as e: + print("Exception when calling ServerApi->delete_license_key: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **license_key** | **str**| | + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_backup_status** +> str get_backup_status(body=body) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ServerApi() +body = swagger_client.BackupProcessManager() # BackupProcessManager | (optional) + +try: + api_response = api_instance.get_backup_status(body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling ServerApi->get_backup_status: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**BackupProcessManager**](BackupProcessManager.md)| | [optional] + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_children** +> Files get_children(path, area_id, base_path=base_path, locator=locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ServerApi() +path = 'path_example' # str | +area_id = 'area_id_example' # str | +base_path = 'base_path_example' # str | (optional) +locator = 'locator_example' # str | (optional) +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.get_children(path, area_id, base_path=base_path, locator=locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling ServerApi->get_children: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **path** | **str**| | + **area_id** | **str**| | + **base_path** | **str**| | [optional] + **locator** | **str**| | [optional] + **fields** | **str**| | [optional] + +### Return type + +[**Files**](Files.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_children_alias** +> Files get_children_alias(path, area_id, base_path=base_path, locator=locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ServerApi() +path = 'path_example' # str | +area_id = 'area_id_example' # str | +base_path = 'base_path_example' # str | (optional) +locator = 'locator_example' # str | (optional) +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.get_children_alias(path, area_id, base_path=base_path, locator=locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling ServerApi->get_children_alias: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **path** | **str**| | + **area_id** | **str**| | + **base_path** | **str**| | [optional] + **locator** | **str**| | [optional] + **fields** | **str**| | [optional] + +### Return type + +[**Files**](Files.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_content** +> get_content(path, area_id) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ServerApi() +path = 'path_example' # str | +area_id = 'area_id_example' # str | + +try: + api_instance.get_content(path, area_id) +except ApiException as e: + print("Exception when calling ServerApi->get_content: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **path** | **str**| | + **area_id** | **str**| | + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_content_alias** +> get_content_alias(path, area_id) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ServerApi() +path = 'path_example' # str | +area_id = 'area_id_example' # str | + +try: + api_instance.get_content_alias(path, area_id) +except ApiException as e: + print("Exception when calling ServerApi->get_content_alias: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **path** | **str**| | + **area_id** | **str**| | + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_license_key** +> LicenseKey get_license_key(license_key, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ServerApi() +license_key = 'license_key_example' # str | +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.get_license_key(license_key, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling ServerApi->get_license_key: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **license_key** | **str**| | + **fields** | **str**| | [optional] + +### Return type + +[**LicenseKey**](LicenseKey.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_license_keys** +> LicenseKeys get_license_keys(fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ServerApi() +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.get_license_keys(fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling ServerApi->get_license_keys: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **fields** | **str**| | [optional] + +### Return type + +[**LicenseKeys**](LicenseKeys.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_licensing_data** +> LicensingData get_licensing_data(fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ServerApi() +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.get_licensing_data(fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling ServerApi->get_licensing_data: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **fields** | **str**| | [optional] + +### Return type + +[**LicensingData**](LicensingData.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_metadata** +> file get_metadata(path, area_id, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ServerApi() +path = 'path_example' # str | +area_id = 'area_id_example' # str | +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.get_metadata(path, area_id, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling ServerApi->get_metadata: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **path** | **str**| | + **area_id** | **str**| | + **fields** | **str**| | [optional] + +### Return type + +[**file**](file.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_root** +> Files get_root(area_id, base_path=base_path, locator=locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ServerApi() +area_id = 'area_id_example' # str | +base_path = 'base_path_example' # str | (optional) +locator = 'locator_example' # str | (optional) +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.get_root(area_id, base_path=base_path, locator=locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling ServerApi->get_root: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **area_id** | **str**| | + **base_path** | **str**| | [optional] + **locator** | **str**| | [optional] + **fields** | **str**| | [optional] + +### Return type + +[**Files**](Files.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_zipped** +> get_zipped(path, area_id, base_path=base_path, locator=locator, name=name) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ServerApi() +path = 'path_example' # str | +area_id = 'area_id_example' # str | +base_path = 'base_path_example' # str | (optional) +locator = 'locator_example' # str | (optional) +name = 'name_example' # str | (optional) + +try: + api_instance.get_zipped(path, area_id, base_path=base_path, locator=locator, name=name) +except ApiException as e: + print("Exception when calling ServerApi->get_zipped: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **path** | **str**| | + **area_id** | **str**| | + **base_path** | **str**| | [optional] + **locator** | **str**| | [optional] + **name** | **str**| | [optional] + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **serve_plugins** +> Plugins serve_plugins(fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ServerApi() +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.serve_plugins(fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling ServerApi->serve_plugins: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **fields** | **str**| | [optional] + +### Return type + +[**Plugins**](Plugins.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **serve_server_info** +> Server serve_server_info(fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ServerApi() +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.serve_server_info(fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling ServerApi->serve_server_info: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **fields** | **str**| | [optional] + +### Return type + +[**Server**](Server.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **serve_server_version** +> str serve_server_version(field) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ServerApi() +field = 'field_example' # str | + +try: + api_response = api_instance.serve_server_version(field) + pprint(api_response) +except ApiException as e: + print("Exception when calling ServerApi->serve_server_version: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **field** | **str**| | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **start_backup** +> str start_backup(file_name=file_name, add_timestamp=add_timestamp, include_configs=include_configs, include_database=include_database, include_build_logs=include_build_logs, include_personal_changes=include_personal_changes, include_running_builds=include_running_builds, include_supplimentary_data=include_supplimentary_data, body=body) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.ServerApi() +file_name = 'file_name_example' # str | (optional) +add_timestamp = true # bool | (optional) +include_configs = true # bool | (optional) +include_database = true # bool | (optional) +include_build_logs = true # bool | (optional) +include_personal_changes = true # bool | (optional) +include_running_builds = true # bool | (optional) +include_supplimentary_data = true # bool | (optional) +body = swagger_client.BackupProcessManager() # BackupProcessManager | (optional) + +try: + api_response = api_instance.start_backup(file_name=file_name, add_timestamp=add_timestamp, include_configs=include_configs, include_database=include_database, include_build_logs=include_build_logs, include_personal_changes=include_personal_changes, include_running_builds=include_running_builds, include_supplimentary_data=include_supplimentary_data, body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling ServerApi->start_backup: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **file_name** | **str**| | [optional] + **add_timestamp** | **bool**| | [optional] + **include_configs** | **bool**| | [optional] + **include_database** | **bool**| | [optional] + **include_build_logs** | **bool**| | [optional] + **include_personal_changes** | **bool**| | [optional] + **include_running_builds** | **bool**| | [optional] + **include_supplimentary_data** | **bool**| | [optional] + **body** | [**BackupProcessManager**](BackupProcessManager.md)| | [optional] + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/Servers.md b/docs/Servers.md new file mode 100644 index 0000000..72d3718 --- /dev/null +++ b/docs/Servers.md @@ -0,0 +1,11 @@ +# Servers + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **int** | | [optional] +**server** | [**list[FederationServer]**](FederationServer.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Session.md b/docs/Session.md new file mode 100644 index 0000000..7aa0513 --- /dev/null +++ b/docs/Session.md @@ -0,0 +1,13 @@ +# Session + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**creation_date** | **str** | | [optional] +**id** | **str** | | [optional] +**last_accessed_date** | **str** | | [optional] +**user** | [**User**](User.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Sessions.md b/docs/Sessions.md new file mode 100644 index 0000000..15f0b66 --- /dev/null +++ b/docs/Sessions.md @@ -0,0 +1,16 @@ +# Sessions + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **int** | | [optional] +**max_active** | **int** | | [optional] +**session** | [**list[Session]**](Session.md) | | [optional] +**session_counter** | **int** | | [optional] +**session_create_rate** | **int** | | [optional] +**session_expire_rate** | **int** | | [optional] +**session_max_alive_time** | **int** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SnapshotDependencies.md b/docs/SnapshotDependencies.md new file mode 100644 index 0000000..b4c0ad0 --- /dev/null +++ b/docs/SnapshotDependencies.md @@ -0,0 +1,11 @@ +# SnapshotDependencies + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **int** | | [optional] +**snapshot_dependency** | [**list[SnapshotDependency]**](SnapshotDependency.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SnapshotDependency.md b/docs/SnapshotDependency.md new file mode 100644 index 0000000..678bfee --- /dev/null +++ b/docs/SnapshotDependency.md @@ -0,0 +1,17 @@ +# SnapshotDependency + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**disabled** | **bool** | | [optional] [default to False] +**href** | **str** | | [optional] +**id** | **str** | | [optional] +**inherited** | **bool** | | [optional] [default to False] +**name** | **str** | | [optional] +**properties** | [**Properties**](Properties.md) | | [optional] +**source_build_type** | [**BuildType**](BuildType.md) | | [optional] +**type** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/StackTraceElement.md b/docs/StackTraceElement.md new file mode 100644 index 0000000..0e83082 --- /dev/null +++ b/docs/StackTraceElement.md @@ -0,0 +1,14 @@ +# StackTraceElement + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**class_name** | **str** | | [optional] +**file_name** | **str** | | [optional] +**line_number** | **int** | | [optional] +**method_name** | **str** | | [optional] +**native_method** | **bool** | | [optional] [default to False] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/StateField.md b/docs/StateField.md new file mode 100644 index 0000000..497d700 --- /dev/null +++ b/docs/StateField.md @@ -0,0 +1,11 @@ +# StateField + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**inherited** | **bool** | | [optional] [default to False] +**value** | **bool** | | [optional] [default to False] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Step.md b/docs/Step.md new file mode 100644 index 0000000..d337339 --- /dev/null +++ b/docs/Step.md @@ -0,0 +1,16 @@ +# Step + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**disabled** | **bool** | | [optional] [default to False] +**href** | **str** | | [optional] +**id** | **str** | | [optional] +**inherited** | **bool** | | [optional] [default to False] +**name** | **str** | | [optional] +**properties** | [**Properties**](Properties.md) | | [optional] +**type** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Steps.md b/docs/Steps.md new file mode 100644 index 0000000..39d8126 --- /dev/null +++ b/docs/Steps.md @@ -0,0 +1,11 @@ +# Steps + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **int** | | [optional] +**step** | [**list[Step]**](Step.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Tag.md b/docs/Tag.md new file mode 100644 index 0000000..a0eedbc --- /dev/null +++ b/docs/Tag.md @@ -0,0 +1,12 @@ +# Tag + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | | [optional] +**owner** | [**User**](User.md) | | [optional] +**private** | **bool** | | [optional] [default to False] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Tags.md b/docs/Tags.md new file mode 100644 index 0000000..9bc9165 --- /dev/null +++ b/docs/Tags.md @@ -0,0 +1,11 @@ +# Tags + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **int** | | [optional] +**tag** | [**list[Tag]**](Tag.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Test.md b/docs/Test.md new file mode 100644 index 0000000..aee6f14 --- /dev/null +++ b/docs/Test.md @@ -0,0 +1,15 @@ +# Test + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**href** | **str** | | [optional] +**id** | **str** | | [optional] +**investigations** | [**Investigations**](Investigations.md) | | [optional] +**mutes** | [**Mutes**](Mutes.md) | | [optional] +**name** | **str** | | [optional] +**test_occurrences** | [**TestOccurrences**](TestOccurrences.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TestApi.md b/docs/TestApi.md new file mode 100644 index 0000000..dad4669 --- /dev/null +++ b/docs/TestApi.md @@ -0,0 +1,104 @@ +# swagger_client.TestApi + +All URIs are relative to *https://teamcity.ptsecurity.ru* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_tests**](TestApi.md#get_tests) | **GET** /app/rest/tests | +[**serve_instance**](TestApi.md#serve_instance) | **GET** /app/rest/tests/{testLocator} | + + +# **get_tests** +> Tests get_tests(locator=locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.TestApi() +locator = 'locator_example' # str | (optional) +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.get_tests(locator=locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling TestApi->get_tests: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **locator** | **str**| | [optional] + **fields** | **str**| | [optional] + +### Return type + +[**Tests**](Tests.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **serve_instance** +> Test serve_instance(test_locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.TestApi() +test_locator = 'test_locator_example' # str | +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.serve_instance(test_locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling TestApi->serve_instance: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **test_locator** | **str**| | + **fields** | **str**| | [optional] + +### Return type + +[**Test**](Test.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/TestOccurrence.md b/docs/TestOccurrence.md new file mode 100644 index 0000000..c8b2dfa --- /dev/null +++ b/docs/TestOccurrence.md @@ -0,0 +1,27 @@ +# TestOccurrence + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**build** | [**Build**](Build.md) | | [optional] +**currently_investigated** | **bool** | | [optional] [default to False] +**currently_muted** | **bool** | | [optional] [default to False] +**details** | **str** | | [optional] +**duration** | **int** | | [optional] +**first_failed** | [**TestOccurrence**](TestOccurrence.md) | | [optional] +**href** | **str** | | [optional] +**id** | **str** | | [optional] +**ignore_details** | **str** | | [optional] +**ignored** | **bool** | | [optional] [default to False] +**invocations** | [**TestOccurrences**](TestOccurrences.md) | | [optional] +**mute** | [**Mute**](Mute.md) | | [optional] +**muted** | **bool** | | [optional] [default to False] +**name** | **str** | | [optional] +**next_fixed** | [**TestOccurrence**](TestOccurrence.md) | | [optional] +**run_order** | **str** | | [optional] +**status** | **str** | | [optional] +**test** | [**Test**](Test.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TestOccurrenceApi.md b/docs/TestOccurrenceApi.md new file mode 100644 index 0000000..9dfe0cb --- /dev/null +++ b/docs/TestOccurrenceApi.md @@ -0,0 +1,104 @@ +# swagger_client.TestOccurrenceApi + +All URIs are relative to *https://teamcity.ptsecurity.ru* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_test_occurrences**](TestOccurrenceApi.md#get_test_occurrences) | **GET** /app/rest/testOccurrences | +[**serve_instance**](TestOccurrenceApi.md#serve_instance) | **GET** /app/rest/testOccurrences/{testLocator} | + + +# **get_test_occurrences** +> TestOccurrences get_test_occurrences(locator=locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.TestOccurrenceApi() +locator = 'locator_example' # str | (optional) +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.get_test_occurrences(locator=locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling TestOccurrenceApi->get_test_occurrences: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **locator** | **str**| | [optional] + **fields** | **str**| | [optional] + +### Return type + +[**TestOccurrences**](TestOccurrences.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **serve_instance** +> TestOccurrence serve_instance(test_locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.TestOccurrenceApi() +test_locator = 'test_locator_example' # str | +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.serve_instance(test_locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling TestOccurrenceApi->serve_instance: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **test_locator** | **str**| | + **fields** | **str**| | [optional] + +### Return type + +[**TestOccurrence**](TestOccurrence.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/TestOccurrences.md b/docs/TestOccurrences.md new file mode 100644 index 0000000..0d1b107 --- /dev/null +++ b/docs/TestOccurrences.md @@ -0,0 +1,20 @@ +# TestOccurrences + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **int** | | [optional] +**default** | **bool** | | [optional] [default to False] +**failed** | **int** | | [optional] +**href** | **str** | | [optional] +**ignored** | **int** | | [optional] +**muted** | **int** | | [optional] +**new_failed** | **int** | | [optional] +**next_href** | **str** | | [optional] +**passed** | **int** | | [optional] +**prev_href** | **str** | | [optional] +**test_occurrence** | [**list[TestOccurrence]**](TestOccurrence.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Tests.md b/docs/Tests.md new file mode 100644 index 0000000..1e03b2e --- /dev/null +++ b/docs/Tests.md @@ -0,0 +1,14 @@ +# Tests + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **int** | | [optional] +**default** | **bool** | | [optional] [default to False] +**next_href** | **str** | | [optional] +**prev_href** | **str** | | [optional] +**test** | [**list[Test]**](Test.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Throwable.md b/docs/Throwable.md new file mode 100644 index 0000000..3d629d5 --- /dev/null +++ b/docs/Throwable.md @@ -0,0 +1,14 @@ +# Throwable + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cause** | [**Throwable**](Throwable.md) | | [optional] +**localized_message** | **str** | | [optional] +**message** | **str** | | [optional] +**stack_trace** | [**list[StackTraceElement]**](StackTraceElement.md) | | [optional] +**suppressed** | [**list[Throwable]**](Throwable.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Trigger.md b/docs/Trigger.md new file mode 100644 index 0000000..b6cc9ae --- /dev/null +++ b/docs/Trigger.md @@ -0,0 +1,16 @@ +# Trigger + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**disabled** | **bool** | | [optional] [default to False] +**href** | **str** | | [optional] +**id** | **str** | | [optional] +**inherited** | **bool** | | [optional] [default to False] +**name** | **str** | | [optional] +**properties** | [**Properties**](Properties.md) | | [optional] +**type** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TriggeredBy.md b/docs/TriggeredBy.md new file mode 100644 index 0000000..99e2031 --- /dev/null +++ b/docs/TriggeredBy.md @@ -0,0 +1,16 @@ +# TriggeredBy + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**build_type** | [**BuildType**](BuildType.md) | | [optional] +**_date** | **str** | | [optional] +**details** | **str** | | [optional] +**properties** | [**Properties**](Properties.md) | | [optional] +**raw_value** | **str** | | [optional] +**type** | **str** | | [optional] +**user** | [**User**](User.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Triggers.md b/docs/Triggers.md new file mode 100644 index 0000000..89ad453 --- /dev/null +++ b/docs/Triggers.md @@ -0,0 +1,11 @@ +# Triggers + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **int** | | [optional] +**trigger** | [**list[Trigger]**](Trigger.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Type.md b/docs/Type.md new file mode 100644 index 0000000..49733c3 --- /dev/null +++ b/docs/Type.md @@ -0,0 +1,10 @@ +# Type + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**raw_value** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/User.md b/docs/User.md new file mode 100644 index 0000000..c35a5e7 --- /dev/null +++ b/docs/User.md @@ -0,0 +1,22 @@ +# User + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**email** | **str** | | [optional] +**groups** | [**Groups**](Groups.md) | | [optional] +**has_password** | **bool** | | [optional] [default to False] +**href** | **str** | | [optional] +**id** | **int** | | [optional] +**last_login** | **str** | | [optional] +**locator** | **str** | | [optional] +**name** | **str** | | [optional] +**password** | **str** | | [optional] +**properties** | [**Properties**](Properties.md) | | [optional] +**realm** | **str** | | [optional] +**roles** | [**Roles**](Roles.md) | | [optional] +**username** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UserApi.md b/docs/UserApi.md new file mode 100644 index 0000000..3e56f7c --- /dev/null +++ b/docs/UserApi.md @@ -0,0 +1,1164 @@ +# swagger_client.UserApi + +All URIs are relative to *https://teamcity.ptsecurity.ru* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**add_group**](UserApi.md#add_group) | **POST** /app/rest/users/{userLocator}/groups | +[**add_role**](UserApi.md#add_role) | **POST** /app/rest/users/{userLocator}/roles | +[**add_role_simple**](UserApi.md#add_role_simple) | **PUT** /app/rest/users/{userLocator}/roles/{roleId}/{scope} | +[**add_role_simple_post**](UserApi.md#add_role_simple_post) | **POST** /app/rest/users/{userLocator}/roles/{roleId}/{scope} | +[**create_user**](UserApi.md#create_user) | **POST** /app/rest/users | +[**delete_remember_me**](UserApi.md#delete_remember_me) | **DELETE** /app/rest/users/{userLocator}/debug/rememberMe | +[**delete_role**](UserApi.md#delete_role) | **DELETE** /app/rest/users/{userLocator}/roles/{roleId}/{scope} | +[**delete_user**](UserApi.md#delete_user) | **DELETE** /app/rest/users/{userLocator} | +[**delete_user_field**](UserApi.md#delete_user_field) | **DELETE** /app/rest/users/{userLocator}/{field} | +[**get_groups**](UserApi.md#get_groups) | **GET** /app/rest/users/{userLocator}/groups | +[**get_permissions**](UserApi.md#get_permissions) | **GET** /app/rest/users/{userLocator}/debug/permissions | +[**list_role**](UserApi.md#list_role) | **GET** /app/rest/users/{userLocator}/roles/{roleId}/{scope} | +[**list_roles**](UserApi.md#list_roles) | **GET** /app/rest/users/{userLocator}/roles | +[**put_user_property**](UserApi.md#put_user_property) | **PUT** /app/rest/users/{userLocator}/properties/{name} | +[**remove_user_property**](UserApi.md#remove_user_property) | **DELETE** /app/rest/users/{userLocator}/properties/{name} | +[**replace_groups**](UserApi.md#replace_groups) | **PUT** /app/rest/users/{userLocator}/groups | +[**replace_roles**](UserApi.md#replace_roles) | **PUT** /app/rest/users/{userLocator}/roles | +[**serve_user**](UserApi.md#serve_user) | **GET** /app/rest/users/{userLocator} | +[**serve_user_field**](UserApi.md#serve_user_field) | **GET** /app/rest/users/{userLocator}/{field} | +[**serve_user_properties**](UserApi.md#serve_user_properties) | **GET** /app/rest/users/{userLocator}/properties | +[**serve_user_property**](UserApi.md#serve_user_property) | **GET** /app/rest/users/{userLocator}/properties/{name} | +[**serve_users**](UserApi.md#serve_users) | **GET** /app/rest/users | +[**set_user_field**](UserApi.md#set_user_field) | **PUT** /app/rest/users/{userLocator}/{field} | +[**update_user**](UserApi.md#update_user) | **PUT** /app/rest/users/{userLocator} | + + +# **add_group** +> Group add_group(user_locator, body=body, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.UserApi() +user_locator = 'user_locator_example' # str | +body = swagger_client.Group() # Group | (optional) +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.add_group(user_locator, body=body, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling UserApi->add_group: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **user_locator** | **str**| | + **body** | [**Group**](Group.md)| | [optional] + **fields** | **str**| | [optional] + +### Return type + +[**Group**](Group.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **add_role** +> Role add_role(user_locator, body=body) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.UserApi() +user_locator = 'user_locator_example' # str | +body = swagger_client.Role() # Role | (optional) + +try: + api_response = api_instance.add_role(user_locator, body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling UserApi->add_role: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **user_locator** | **str**| | + **body** | [**Role**](Role.md)| | [optional] + +### Return type + +[**Role**](Role.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **add_role_simple** +> Role add_role_simple(user_locator, role_id, scope) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.UserApi() +user_locator = 'user_locator_example' # str | +role_id = 'role_id_example' # str | +scope = 'scope_example' # str | + +try: + api_response = api_instance.add_role_simple(user_locator, role_id, scope) + pprint(api_response) +except ApiException as e: + print("Exception when calling UserApi->add_role_simple: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **user_locator** | **str**| | + **role_id** | **str**| | + **scope** | **str**| | + +### Return type + +[**Role**](Role.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **add_role_simple_post** +> add_role_simple_post(user_locator, role_id, scope) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.UserApi() +user_locator = 'user_locator_example' # str | +role_id = 'role_id_example' # str | +scope = 'scope_example' # str | + +try: + api_instance.add_role_simple_post(user_locator, role_id, scope) +except ApiException as e: + print("Exception when calling UserApi->add_role_simple_post: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **user_locator** | **str**| | + **role_id** | **str**| | + **scope** | **str**| | + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_user** +> User create_user(body=body, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.UserApi() +body = swagger_client.User() # User | (optional) +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.create_user(body=body, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling UserApi->create_user: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**User**](User.md)| | [optional] + **fields** | **str**| | [optional] + +### Return type + +[**User**](User.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_remember_me** +> delete_remember_me(user_locator) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.UserApi() +user_locator = 'user_locator_example' # str | + +try: + api_instance.delete_remember_me(user_locator) +except ApiException as e: + print("Exception when calling UserApi->delete_remember_me: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **user_locator** | **str**| | + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_role** +> delete_role(user_locator, role_id, scope) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.UserApi() +user_locator = 'user_locator_example' # str | +role_id = 'role_id_example' # str | +scope = 'scope_example' # str | + +try: + api_instance.delete_role(user_locator, role_id, scope) +except ApiException as e: + print("Exception when calling UserApi->delete_role: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **user_locator** | **str**| | + **role_id** | **str**| | + **scope** | **str**| | + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_user** +> delete_user(user_locator) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.UserApi() +user_locator = 'user_locator_example' # str | + +try: + api_instance.delete_user(user_locator) +except ApiException as e: + print("Exception when calling UserApi->delete_user: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **user_locator** | **str**| | + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_user_field** +> delete_user_field(user_locator, field) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.UserApi() +user_locator = 'user_locator_example' # str | +field = 'field_example' # str | + +try: + api_instance.delete_user_field(user_locator, field) +except ApiException as e: + print("Exception when calling UserApi->delete_user_field: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **user_locator** | **str**| | + **field** | **str**| | + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_groups** +> Groups get_groups(user_locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.UserApi() +user_locator = 'user_locator_example' # str | +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.get_groups(user_locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling UserApi->get_groups: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **user_locator** | **str**| | + **fields** | **str**| | [optional] + +### Return type + +[**Groups**](Groups.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_permissions** +> str get_permissions(user_locator) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.UserApi() +user_locator = 'user_locator_example' # str | + +try: + api_response = api_instance.get_permissions(user_locator) + pprint(api_response) +except ApiException as e: + print("Exception when calling UserApi->get_permissions: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **user_locator** | **str**| | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_role** +> Role list_role(user_locator, role_id, scope) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.UserApi() +user_locator = 'user_locator_example' # str | +role_id = 'role_id_example' # str | +scope = 'scope_example' # str | + +try: + api_response = api_instance.list_role(user_locator, role_id, scope) + pprint(api_response) +except ApiException as e: + print("Exception when calling UserApi->list_role: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **user_locator** | **str**| | + **role_id** | **str**| | + **scope** | **str**| | + +### Return type + +[**Role**](Role.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_roles** +> Roles list_roles(user_locator) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.UserApi() +user_locator = 'user_locator_example' # str | + +try: + api_response = api_instance.list_roles(user_locator) + pprint(api_response) +except ApiException as e: + print("Exception when calling UserApi->list_roles: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **user_locator** | **str**| | + +### Return type + +[**Roles**](Roles.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **put_user_property** +> str put_user_property(user_locator, name, body=body) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.UserApi() +user_locator = 'user_locator_example' # str | +name = 'name_example' # str | +body = 'body_example' # str | (optional) + +try: + api_response = api_instance.put_user_property(user_locator, name, body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling UserApi->put_user_property: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **user_locator** | **str**| | + **name** | **str**| | + **body** | **str**| | [optional] + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **remove_user_property** +> remove_user_property(user_locator, name) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.UserApi() +user_locator = 'user_locator_example' # str | +name = 'name_example' # str | + +try: + api_instance.remove_user_property(user_locator, name) +except ApiException as e: + print("Exception when calling UserApi->remove_user_property: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **user_locator** | **str**| | + **name** | **str**| | + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_groups** +> Groups replace_groups(user_locator, body=body, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.UserApi() +user_locator = 'user_locator_example' # str | +body = swagger_client.Groups() # Groups | (optional) +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.replace_groups(user_locator, body=body, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling UserApi->replace_groups: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **user_locator** | **str**| | + **body** | [**Groups**](Groups.md)| | [optional] + **fields** | **str**| | [optional] + +### Return type + +[**Groups**](Groups.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_roles** +> Roles replace_roles(user_locator, body=body) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.UserApi() +user_locator = 'user_locator_example' # str | +body = swagger_client.Roles() # Roles | (optional) + +try: + api_response = api_instance.replace_roles(user_locator, body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling UserApi->replace_roles: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **user_locator** | **str**| | + **body** | [**Roles**](Roles.md)| | [optional] + +### Return type + +[**Roles**](Roles.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **serve_user** +> User serve_user(user_locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.UserApi() +user_locator = 'user_locator_example' # str | +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.serve_user(user_locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling UserApi->serve_user: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **user_locator** | **str**| | + **fields** | **str**| | [optional] + +### Return type + +[**User**](User.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **serve_user_field** +> str serve_user_field(user_locator, field) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.UserApi() +user_locator = 'user_locator_example' # str | +field = 'field_example' # str | + +try: + api_response = api_instance.serve_user_field(user_locator, field) + pprint(api_response) +except ApiException as e: + print("Exception when calling UserApi->serve_user_field: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **user_locator** | **str**| | + **field** | **str**| | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **serve_user_properties** +> Properties serve_user_properties(user_locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.UserApi() +user_locator = 'user_locator_example' # str | +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.serve_user_properties(user_locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling UserApi->serve_user_properties: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **user_locator** | **str**| | + **fields** | **str**| | [optional] + +### Return type + +[**Properties**](Properties.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **serve_user_property** +> str serve_user_property(user_locator, name) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.UserApi() +user_locator = 'user_locator_example' # str | +name = 'name_example' # str | + +try: + api_response = api_instance.serve_user_property(user_locator, name) + pprint(api_response) +except ApiException as e: + print("Exception when calling UserApi->serve_user_property: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **user_locator** | **str**| | + **name** | **str**| | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **serve_users** +> Users serve_users(locator=locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.UserApi() +locator = 'locator_example' # str | (optional) +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.serve_users(locator=locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling UserApi->serve_users: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **locator** | **str**| | [optional] + **fields** | **str**| | [optional] + +### Return type + +[**Users**](Users.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **set_user_field** +> str set_user_field(user_locator, field, body=body) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.UserApi() +user_locator = 'user_locator_example' # str | +field = 'field_example' # str | +body = 'body_example' # str | (optional) + +try: + api_response = api_instance.set_user_field(user_locator, field, body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling UserApi->set_user_field: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **user_locator** | **str**| | + **field** | **str**| | + **body** | **str**| | [optional] + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_user** +> User update_user(user_locator, body=body, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.UserApi() +user_locator = 'user_locator_example' # str | +body = swagger_client.User() # User | (optional) +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.update_user(user_locator, body=body, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling UserApi->update_user: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **user_locator** | **str**| | + **body** | [**User**](User.md)| | [optional] + **fields** | **str**| | [optional] + +### Return type + +[**User**](User.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/Users.md b/docs/Users.md new file mode 100644 index 0000000..272aca8 --- /dev/null +++ b/docs/Users.md @@ -0,0 +1,11 @@ +# Users + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **int** | | [optional] +**user** | [**list[User]**](User.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/VcsCheckStatus.md b/docs/VcsCheckStatus.md new file mode 100644 index 0000000..1acbb5e --- /dev/null +++ b/docs/VcsCheckStatus.md @@ -0,0 +1,12 @@ +# VcsCheckStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**requestor_type** | **str** | | [optional] +**status** | **str** | | [optional] +**timestamp** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/VcsLabeling.md b/docs/VcsLabeling.md new file mode 100644 index 0000000..992f679 --- /dev/null +++ b/docs/VcsLabeling.md @@ -0,0 +1,13 @@ +# VcsLabeling + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**branch_filter** | **str** | | [optional] +**label_name** | **str** | | [optional] +**type** | **str** | | [optional] +**vcs_roots** | [**VcsRoots**](VcsRoots.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/VcsRoot.md b/docs/VcsRoot.md new file mode 100644 index 0000000..468c937 --- /dev/null +++ b/docs/VcsRoot.md @@ -0,0 +1,22 @@ +# VcsRoot + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**href** | **str** | | [optional] +**id** | **str** | | [optional] +**internal_id** | **str** | | [optional] +**locator** | **str** | | [optional] +**modification_check_interval** | **int** | | [optional] +**name** | **str** | | [optional] +**project** | [**Project**](Project.md) | | [optional] +**project_locator** | **str** | | [optional] +**properties** | [**Properties**](Properties.md) | | [optional] +**repository_id_strings** | [**Items**](Items.md) | | [optional] +**uuid** | **str** | | [optional] +**vcs_name** | **str** | | [optional] +**vcs_root_instances** | [**VcsRootInstances**](VcsRootInstances.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/VcsRootApi.md b/docs/VcsRootApi.md new file mode 100644 index 0000000..b8cff52 --- /dev/null +++ b/docs/VcsRootApi.md @@ -0,0 +1,879 @@ +# swagger_client.VcsRootApi + +All URIs are relative to *https://teamcity.ptsecurity.ru* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**add_root**](VcsRootApi.md#add_root) | **POST** /app/rest/vcs-roots | +[**change_properties**](VcsRootApi.md#change_properties) | **PUT** /app/rest/vcs-roots/{vcsRootLocator}/properties | +[**delete_all_properties**](VcsRootApi.md#delete_all_properties) | **DELETE** /app/rest/vcs-roots/{vcsRootLocator}/properties | +[**delete_parameter**](VcsRootApi.md#delete_parameter) | **DELETE** /app/rest/vcs-roots/{vcsRootLocator}/properties/{name} | +[**delete_root**](VcsRootApi.md#delete_root) | **DELETE** /app/rest/vcs-roots/{vcsRootLocator} | +[**get_settings_file**](VcsRootApi.md#get_settings_file) | **GET** /app/rest/vcs-roots/{vcsRootLocator}/settingsFile | +[**put_parameter**](VcsRootApi.md#put_parameter) | **PUT** /app/rest/vcs-roots/{vcsRootLocator}/properties/{name} | +[**serve_field**](VcsRootApi.md#serve_field) | **GET** /app/rest/vcs-roots/{vcsRootLocator}/{field} | +[**serve_instance_field**](VcsRootApi.md#serve_instance_field) | **GET** /app/rest/vcs-roots/{vcsRootLocator}/instances/{vcsRootInstanceLocator}/{field} | +[**serve_properties**](VcsRootApi.md#serve_properties) | **GET** /app/rest/vcs-roots/{vcsRootLocator}/properties | +[**serve_property**](VcsRootApi.md#serve_property) | **GET** /app/rest/vcs-roots/{vcsRootLocator}/properties/{name} | +[**serve_root**](VcsRootApi.md#serve_root) | **GET** /app/rest/vcs-roots/{vcsRootLocator} | +[**serve_root_instance**](VcsRootApi.md#serve_root_instance) | **GET** /app/rest/vcs-roots/{vcsRootLocator}/instances/{vcsRootInstanceLocator} | +[**serve_root_instance_properties**](VcsRootApi.md#serve_root_instance_properties) | **GET** /app/rest/vcs-roots/{vcsRootLocator}/instances/{vcsRootInstanceLocator}/properties | +[**serve_root_instances**](VcsRootApi.md#serve_root_instances) | **GET** /app/rest/vcs-roots/{vcsRootLocator}/instances | +[**serve_roots**](VcsRootApi.md#serve_roots) | **GET** /app/rest/vcs-roots | +[**set_field**](VcsRootApi.md#set_field) | **PUT** /app/rest/vcs-roots/{vcsRootLocator}/{field} | +[**set_instance_field**](VcsRootApi.md#set_instance_field) | **PUT** /app/rest/vcs-roots/{vcsRootLocator}/instances/{vcsRootInstanceLocator}/{field} | + + +# **add_root** +> VcsRoot add_root(body=body, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.VcsRootApi() +body = swagger_client.VcsRoot() # VcsRoot | (optional) +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.add_root(body=body, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling VcsRootApi->add_root: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**VcsRoot**](VcsRoot.md)| | [optional] + **fields** | **str**| | [optional] + +### Return type + +[**VcsRoot**](VcsRoot.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **change_properties** +> Properties change_properties(vcs_root_locator, body=body, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.VcsRootApi() +vcs_root_locator = 'vcs_root_locator_example' # str | +body = swagger_client.Properties() # Properties | (optional) +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.change_properties(vcs_root_locator, body=body, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling VcsRootApi->change_properties: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **vcs_root_locator** | **str**| | + **body** | [**Properties**](Properties.md)| | [optional] + **fields** | **str**| | [optional] + +### Return type + +[**Properties**](Properties.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_all_properties** +> delete_all_properties(vcs_root_locator) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.VcsRootApi() +vcs_root_locator = 'vcs_root_locator_example' # str | + +try: + api_instance.delete_all_properties(vcs_root_locator) +except ApiException as e: + print("Exception when calling VcsRootApi->delete_all_properties: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **vcs_root_locator** | **str**| | + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_parameter** +> delete_parameter(vcs_root_locator, name) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.VcsRootApi() +vcs_root_locator = 'vcs_root_locator_example' # str | +name = 'name_example' # str | + +try: + api_instance.delete_parameter(vcs_root_locator, name) +except ApiException as e: + print("Exception when calling VcsRootApi->delete_parameter: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **vcs_root_locator** | **str**| | + **name** | **str**| | + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_root** +> delete_root(vcs_root_locator) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.VcsRootApi() +vcs_root_locator = 'vcs_root_locator_example' # str | + +try: + api_instance.delete_root(vcs_root_locator) +except ApiException as e: + print("Exception when calling VcsRootApi->delete_root: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **vcs_root_locator** | **str**| | + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_settings_file** +> str get_settings_file(vcs_root_locator) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.VcsRootApi() +vcs_root_locator = 'vcs_root_locator_example' # str | + +try: + api_response = api_instance.get_settings_file(vcs_root_locator) + pprint(api_response) +except ApiException as e: + print("Exception when calling VcsRootApi->get_settings_file: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **vcs_root_locator** | **str**| | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **put_parameter** +> str put_parameter(vcs_root_locator, name, body=body) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.VcsRootApi() +vcs_root_locator = 'vcs_root_locator_example' # str | +name = 'name_example' # str | +body = 'body_example' # str | (optional) + +try: + api_response = api_instance.put_parameter(vcs_root_locator, name, body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling VcsRootApi->put_parameter: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **vcs_root_locator** | **str**| | + **name** | **str**| | + **body** | **str**| | [optional] + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **serve_field** +> str serve_field(vcs_root_locator, field) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.VcsRootApi() +vcs_root_locator = 'vcs_root_locator_example' # str | +field = 'field_example' # str | + +try: + api_response = api_instance.serve_field(vcs_root_locator, field) + pprint(api_response) +except ApiException as e: + print("Exception when calling VcsRootApi->serve_field: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **vcs_root_locator** | **str**| | + **field** | **str**| | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **serve_instance_field** +> str serve_instance_field(vcs_root_locator, vcs_root_instance_locator, field) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.VcsRootApi() +vcs_root_locator = 'vcs_root_locator_example' # str | +vcs_root_instance_locator = 'vcs_root_instance_locator_example' # str | +field = 'field_example' # str | + +try: + api_response = api_instance.serve_instance_field(vcs_root_locator, vcs_root_instance_locator, field) + pprint(api_response) +except ApiException as e: + print("Exception when calling VcsRootApi->serve_instance_field: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **vcs_root_locator** | **str**| | + **vcs_root_instance_locator** | **str**| | + **field** | **str**| | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **serve_properties** +> Properties serve_properties(vcs_root_locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.VcsRootApi() +vcs_root_locator = 'vcs_root_locator_example' # str | +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.serve_properties(vcs_root_locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling VcsRootApi->serve_properties: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **vcs_root_locator** | **str**| | + **fields** | **str**| | [optional] + +### Return type + +[**Properties**](Properties.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **serve_property** +> str serve_property(vcs_root_locator, name) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.VcsRootApi() +vcs_root_locator = 'vcs_root_locator_example' # str | +name = 'name_example' # str | + +try: + api_response = api_instance.serve_property(vcs_root_locator, name) + pprint(api_response) +except ApiException as e: + print("Exception when calling VcsRootApi->serve_property: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **vcs_root_locator** | **str**| | + **name** | **str**| | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **serve_root** +> VcsRoot serve_root(vcs_root_locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.VcsRootApi() +vcs_root_locator = 'vcs_root_locator_example' # str | +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.serve_root(vcs_root_locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling VcsRootApi->serve_root: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **vcs_root_locator** | **str**| | + **fields** | **str**| | [optional] + +### Return type + +[**VcsRoot**](VcsRoot.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **serve_root_instance** +> VcsRootInstance serve_root_instance(vcs_root_locator, vcs_root_instance_locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.VcsRootApi() +vcs_root_locator = 'vcs_root_locator_example' # str | +vcs_root_instance_locator = 'vcs_root_instance_locator_example' # str | +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.serve_root_instance(vcs_root_locator, vcs_root_instance_locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling VcsRootApi->serve_root_instance: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **vcs_root_locator** | **str**| | + **vcs_root_instance_locator** | **str**| | + **fields** | **str**| | [optional] + +### Return type + +[**VcsRootInstance**](VcsRootInstance.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **serve_root_instance_properties** +> Properties serve_root_instance_properties(vcs_root_locator, vcs_root_instance_locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.VcsRootApi() +vcs_root_locator = 'vcs_root_locator_example' # str | +vcs_root_instance_locator = 'vcs_root_instance_locator_example' # str | +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.serve_root_instance_properties(vcs_root_locator, vcs_root_instance_locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling VcsRootApi->serve_root_instance_properties: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **vcs_root_locator** | **str**| | + **vcs_root_instance_locator** | **str**| | + **fields** | **str**| | [optional] + +### Return type + +[**Properties**](Properties.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **serve_root_instances** +> VcsRootInstances serve_root_instances(vcs_root_locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.VcsRootApi() +vcs_root_locator = 'vcs_root_locator_example' # str | +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.serve_root_instances(vcs_root_locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling VcsRootApi->serve_root_instances: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **vcs_root_locator** | **str**| | + **fields** | **str**| | [optional] + +### Return type + +[**VcsRootInstances**](VcsRootInstances.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **serve_roots** +> VcsRoots serve_roots(locator=locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.VcsRootApi() +locator = 'locator_example' # str | (optional) +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.serve_roots(locator=locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling VcsRootApi->serve_roots: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **locator** | **str**| | [optional] + **fields** | **str**| | [optional] + +### Return type + +[**VcsRoots**](VcsRoots.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **set_field** +> str set_field(vcs_root_locator, field, body=body) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.VcsRootApi() +vcs_root_locator = 'vcs_root_locator_example' # str | +field = 'field_example' # str | +body = 'body_example' # str | (optional) + +try: + api_response = api_instance.set_field(vcs_root_locator, field, body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling VcsRootApi->set_field: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **vcs_root_locator** | **str**| | + **field** | **str**| | + **body** | **str**| | [optional] + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **set_instance_field** +> str set_instance_field(vcs_root_locator, vcs_root_instance_locator, field, body=body) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.VcsRootApi() +vcs_root_locator = 'vcs_root_locator_example' # str | +vcs_root_instance_locator = 'vcs_root_instance_locator_example' # str | +field = 'field_example' # str | +body = 'body_example' # str | (optional) + +try: + api_response = api_instance.set_instance_field(vcs_root_locator, vcs_root_instance_locator, field, body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling VcsRootApi->set_instance_field: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **vcs_root_locator** | **str**| | + **vcs_root_instance_locator** | **str**| | + **field** | **str**| | + **body** | **str**| | [optional] + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/VcsRootEntries.md b/docs/VcsRootEntries.md new file mode 100644 index 0000000..ff43879 --- /dev/null +++ b/docs/VcsRootEntries.md @@ -0,0 +1,11 @@ +# VcsRootEntries + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **int** | | [optional] +**vcs_root_entry** | [**list[VcsRootEntry]**](VcsRootEntry.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/VcsRootEntry.md b/docs/VcsRootEntry.md new file mode 100644 index 0000000..3d31d10 --- /dev/null +++ b/docs/VcsRootEntry.md @@ -0,0 +1,13 @@ +# VcsRootEntry + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**checkout_rules** | **str** | | [optional] +**id** | **str** | | [optional] +**inherited** | **bool** | | [optional] [default to False] +**vcs_root** | [**VcsRoot**](VcsRoot.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/VcsRootInstance.md b/docs/VcsRootInstance.md new file mode 100644 index 0000000..f2796dc --- /dev/null +++ b/docs/VcsRootInstance.md @@ -0,0 +1,25 @@ +# VcsRootInstance + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**commit_hook_mode** | **bool** | | [optional] [default to False] +**href** | **str** | | [optional] +**id** | **str** | | [optional] +**last_version** | **str** | | [optional] +**last_version_internal** | **str** | | [optional] +**modification_check_interval** | **int** | | [optional] +**name** | **str** | | [optional] +**project_locator** | **str** | | [optional] +**properties** | [**Properties**](Properties.md) | | [optional] +**repository_id_strings** | [**Items**](Items.md) | | [optional] +**repository_state** | [**RepositoryState**](RepositoryState.md) | | [optional] +**status** | [**VcsStatus**](VcsStatus.md) | | [optional] +**vcs_root** | [**VcsRoot**](VcsRoot.md) | | [optional] +**vcs_root_id** | **str** | | [optional] +**vcs_name** | **str** | | [optional] +**vcs_root_internal_id** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/VcsRootInstanceApi.md b/docs/VcsRootInstanceApi.md new file mode 100644 index 0000000..94331f4 --- /dev/null +++ b/docs/VcsRootInstanceApi.md @@ -0,0 +1,940 @@ +# swagger_client.VcsRootInstanceApi + +All URIs are relative to *https://teamcity.ptsecurity.ru* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**delete_instance_field**](VcsRootInstanceApi.md#delete_instance_field) | **DELETE** /app/rest/vcs-root-instances/{vcsRootInstanceLocator}/{field} | +[**delete_repository_state**](VcsRootInstanceApi.md#delete_repository_state) | **DELETE** /app/rest/vcs-root-instances/{vcsRootInstanceLocator}/repositoryState | +[**get_children**](VcsRootInstanceApi.md#get_children) | **GET** /app/rest/vcs-root-instances/{vcsRootInstanceLocator}/files/latest/children{path} | +[**get_children_alias**](VcsRootInstanceApi.md#get_children_alias) | **GET** /app/rest/vcs-root-instances/{vcsRootInstanceLocator}/files/latest/{path} | +[**get_content**](VcsRootInstanceApi.md#get_content) | **GET** /app/rest/vcs-root-instances/{vcsRootInstanceLocator}/files/latest/content{path} | +[**get_content_alias**](VcsRootInstanceApi.md#get_content_alias) | **GET** /app/rest/vcs-root-instances/{vcsRootInstanceLocator}/files/latest/files{path} | +[**get_metadata**](VcsRootInstanceApi.md#get_metadata) | **GET** /app/rest/vcs-root-instances/{vcsRootInstanceLocator}/files/latest/metadata{path} | +[**get_repository_state**](VcsRootInstanceApi.md#get_repository_state) | **GET** /app/rest/vcs-root-instances/{vcsRootInstanceLocator}/repositoryState | +[**get_repository_state_creation_date**](VcsRootInstanceApi.md#get_repository_state_creation_date) | **GET** /app/rest/vcs-root-instances/{vcsRootInstanceLocator}/repositoryState/creationDate | +[**get_root**](VcsRootInstanceApi.md#get_root) | **GET** /app/rest/vcs-root-instances/{vcsRootInstanceLocator}/files/latest | +[**get_zipped**](VcsRootInstanceApi.md#get_zipped) | **GET** /app/rest/vcs-root-instances/{vcsRootInstanceLocator}/files/latest/archived{path} | +[**schedule_checking_for_changes**](VcsRootInstanceApi.md#schedule_checking_for_changes) | **POST** /app/rest/vcs-root-instances/checkingForChangesQueue | +[**schedule_checking_for_changes_0**](VcsRootInstanceApi.md#schedule_checking_for_changes_0) | **POST** /app/rest/vcs-root-instances/commitHookNotification | +[**serve_instance**](VcsRootInstanceApi.md#serve_instance) | **GET** /app/rest/vcs-root-instances/{vcsRootInstanceLocator} | +[**serve_instance_field**](VcsRootInstanceApi.md#serve_instance_field) | **GET** /app/rest/vcs-root-instances/{vcsRootInstanceLocator}/{field} | +[**serve_instances**](VcsRootInstanceApi.md#serve_instances) | **GET** /app/rest/vcs-root-instances | +[**serve_root_instance_properties**](VcsRootInstanceApi.md#serve_root_instance_properties) | **GET** /app/rest/vcs-root-instances/{vcsRootInstanceLocator}/properties | +[**set_instance_field**](VcsRootInstanceApi.md#set_instance_field) | **PUT** /app/rest/vcs-root-instances/{vcsRootInstanceLocator}/{field} | +[**set_repository_state**](VcsRootInstanceApi.md#set_repository_state) | **PUT** /app/rest/vcs-root-instances/{vcsRootInstanceLocator}/repositoryState | + + +# **delete_instance_field** +> delete_instance_field(vcs_root_instance_locator, field) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.VcsRootInstanceApi() +vcs_root_instance_locator = 'vcs_root_instance_locator_example' # str | +field = 'field_example' # str | + +try: + api_instance.delete_instance_field(vcs_root_instance_locator, field) +except ApiException as e: + print("Exception when calling VcsRootInstanceApi->delete_instance_field: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **vcs_root_instance_locator** | **str**| | + **field** | **str**| | + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_repository_state** +> delete_repository_state(vcs_root_instance_locator) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.VcsRootInstanceApi() +vcs_root_instance_locator = 'vcs_root_instance_locator_example' # str | + +try: + api_instance.delete_repository_state(vcs_root_instance_locator) +except ApiException as e: + print("Exception when calling VcsRootInstanceApi->delete_repository_state: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **vcs_root_instance_locator** | **str**| | + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_children** +> Files get_children(path, vcs_root_instance_locator, base_path=base_path, locator=locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.VcsRootInstanceApi() +path = 'path_example' # str | +vcs_root_instance_locator = 'vcs_root_instance_locator_example' # str | +base_path = 'base_path_example' # str | (optional) +locator = 'locator_example' # str | (optional) +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.get_children(path, vcs_root_instance_locator, base_path=base_path, locator=locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling VcsRootInstanceApi->get_children: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **path** | **str**| | + **vcs_root_instance_locator** | **str**| | + **base_path** | **str**| | [optional] + **locator** | **str**| | [optional] + **fields** | **str**| | [optional] + +### Return type + +[**Files**](Files.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_children_alias** +> Files get_children_alias(path, vcs_root_instance_locator, base_path=base_path, locator=locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.VcsRootInstanceApi() +path = 'path_example' # str | +vcs_root_instance_locator = 'vcs_root_instance_locator_example' # str | +base_path = 'base_path_example' # str | (optional) +locator = 'locator_example' # str | (optional) +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.get_children_alias(path, vcs_root_instance_locator, base_path=base_path, locator=locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling VcsRootInstanceApi->get_children_alias: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **path** | **str**| | + **vcs_root_instance_locator** | **str**| | + **base_path** | **str**| | [optional] + **locator** | **str**| | [optional] + **fields** | **str**| | [optional] + +### Return type + +[**Files**](Files.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_content** +> get_content(path, vcs_root_instance_locator) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.VcsRootInstanceApi() +path = 'path_example' # str | +vcs_root_instance_locator = 'vcs_root_instance_locator_example' # str | + +try: + api_instance.get_content(path, vcs_root_instance_locator) +except ApiException as e: + print("Exception when calling VcsRootInstanceApi->get_content: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **path** | **str**| | + **vcs_root_instance_locator** | **str**| | + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_content_alias** +> get_content_alias(path, vcs_root_instance_locator) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.VcsRootInstanceApi() +path = 'path_example' # str | +vcs_root_instance_locator = 'vcs_root_instance_locator_example' # str | + +try: + api_instance.get_content_alias(path, vcs_root_instance_locator) +except ApiException as e: + print("Exception when calling VcsRootInstanceApi->get_content_alias: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **path** | **str**| | + **vcs_root_instance_locator** | **str**| | + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_metadata** +> file get_metadata(path, vcs_root_instance_locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.VcsRootInstanceApi() +path = 'path_example' # str | +vcs_root_instance_locator = 'vcs_root_instance_locator_example' # str | +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.get_metadata(path, vcs_root_instance_locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling VcsRootInstanceApi->get_metadata: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **path** | **str**| | + **vcs_root_instance_locator** | **str**| | + **fields** | **str**| | [optional] + +### Return type + +[**file**](file.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_repository_state** +> Entries get_repository_state(vcs_root_instance_locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.VcsRootInstanceApi() +vcs_root_instance_locator = 'vcs_root_instance_locator_example' # str | +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.get_repository_state(vcs_root_instance_locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling VcsRootInstanceApi->get_repository_state: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **vcs_root_instance_locator** | **str**| | + **fields** | **str**| | [optional] + +### Return type + +[**Entries**](Entries.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_repository_state_creation_date** +> str get_repository_state_creation_date(vcs_root_instance_locator) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.VcsRootInstanceApi() +vcs_root_instance_locator = 'vcs_root_instance_locator_example' # str | + +try: + api_response = api_instance.get_repository_state_creation_date(vcs_root_instance_locator) + pprint(api_response) +except ApiException as e: + print("Exception when calling VcsRootInstanceApi->get_repository_state_creation_date: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **vcs_root_instance_locator** | **str**| | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_root** +> Files get_root(vcs_root_instance_locator, base_path=base_path, locator=locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.VcsRootInstanceApi() +vcs_root_instance_locator = 'vcs_root_instance_locator_example' # str | +base_path = 'base_path_example' # str | (optional) +locator = 'locator_example' # str | (optional) +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.get_root(vcs_root_instance_locator, base_path=base_path, locator=locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling VcsRootInstanceApi->get_root: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **vcs_root_instance_locator** | **str**| | + **base_path** | **str**| | [optional] + **locator** | **str**| | [optional] + **fields** | **str**| | [optional] + +### Return type + +[**Files**](Files.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_zipped** +> get_zipped(path, vcs_root_instance_locator, base_path=base_path, locator=locator, name=name) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.VcsRootInstanceApi() +path = 'path_example' # str | +vcs_root_instance_locator = 'vcs_root_instance_locator_example' # str | +base_path = 'base_path_example' # str | (optional) +locator = 'locator_example' # str | (optional) +name = 'name_example' # str | (optional) + +try: + api_instance.get_zipped(path, vcs_root_instance_locator, base_path=base_path, locator=locator, name=name) +except ApiException as e: + print("Exception when calling VcsRootInstanceApi->get_zipped: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **path** | **str**| | + **vcs_root_instance_locator** | **str**| | + **base_path** | **str**| | [optional] + **locator** | **str**| | [optional] + **name** | **str**| | [optional] + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **schedule_checking_for_changes** +> VcsRootInstances schedule_checking_for_changes(locator=locator, requestor=requestor, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.VcsRootInstanceApi() +locator = 'locator_example' # str | (optional) +requestor = 'requestor_example' # str | (optional) +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.schedule_checking_for_changes(locator=locator, requestor=requestor, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling VcsRootInstanceApi->schedule_checking_for_changes: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **locator** | **str**| | [optional] + **requestor** | **str**| | [optional] + **fields** | **str**| | [optional] + +### Return type + +[**VcsRootInstances**](VcsRootInstances.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **schedule_checking_for_changes_0** +> schedule_checking_for_changes_0(locator=locator, ok_on_nothing_found=ok_on_nothing_found) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.VcsRootInstanceApi() +locator = 'locator_example' # str | (optional) +ok_on_nothing_found = true # bool | (optional) + +try: + api_instance.schedule_checking_for_changes_0(locator=locator, ok_on_nothing_found=ok_on_nothing_found) +except ApiException as e: + print("Exception when calling VcsRootInstanceApi->schedule_checking_for_changes_0: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **locator** | **str**| | [optional] + **ok_on_nothing_found** | **bool**| | [optional] + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **serve_instance** +> VcsRootInstance serve_instance(vcs_root_instance_locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.VcsRootInstanceApi() +vcs_root_instance_locator = 'vcs_root_instance_locator_example' # str | +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.serve_instance(vcs_root_instance_locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling VcsRootInstanceApi->serve_instance: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **vcs_root_instance_locator** | **str**| | + **fields** | **str**| | [optional] + +### Return type + +[**VcsRootInstance**](VcsRootInstance.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **serve_instance_field** +> str serve_instance_field(vcs_root_instance_locator, field) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.VcsRootInstanceApi() +vcs_root_instance_locator = 'vcs_root_instance_locator_example' # str | +field = 'field_example' # str | + +try: + api_response = api_instance.serve_instance_field(vcs_root_instance_locator, field) + pprint(api_response) +except ApiException as e: + print("Exception when calling VcsRootInstanceApi->serve_instance_field: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **vcs_root_instance_locator** | **str**| | + **field** | **str**| | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **serve_instances** +> VcsRootInstances serve_instances(locator=locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.VcsRootInstanceApi() +locator = 'locator_example' # str | (optional) +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.serve_instances(locator=locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling VcsRootInstanceApi->serve_instances: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **locator** | **str**| | [optional] + **fields** | **str**| | [optional] + +### Return type + +[**VcsRootInstances**](VcsRootInstances.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **serve_root_instance_properties** +> Properties serve_root_instance_properties(vcs_root_instance_locator, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.VcsRootInstanceApi() +vcs_root_instance_locator = 'vcs_root_instance_locator_example' # str | +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.serve_root_instance_properties(vcs_root_instance_locator, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling VcsRootInstanceApi->serve_root_instance_properties: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **vcs_root_instance_locator** | **str**| | + **fields** | **str**| | [optional] + +### Return type + +[**Properties**](Properties.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **set_instance_field** +> str set_instance_field(vcs_root_instance_locator, field, body=body) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.VcsRootInstanceApi() +vcs_root_instance_locator = 'vcs_root_instance_locator_example' # str | +field = 'field_example' # str | +body = 'body_example' # str | (optional) + +try: + api_response = api_instance.set_instance_field(vcs_root_instance_locator, field, body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling VcsRootInstanceApi->set_instance_field: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **vcs_root_instance_locator** | **str**| | + **field** | **str**| | + **body** | **str**| | [optional] + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **set_repository_state** +> Entries set_repository_state(vcs_root_instance_locator, body=body, fields=fields) + + + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = swagger_client.VcsRootInstanceApi() +vcs_root_instance_locator = 'vcs_root_instance_locator_example' # str | +body = swagger_client.Entries() # Entries | (optional) +fields = 'fields_example' # str | (optional) + +try: + api_response = api_instance.set_repository_state(vcs_root_instance_locator, body=body, fields=fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling VcsRootInstanceApi->set_repository_state: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **vcs_root_instance_locator** | **str**| | + **body** | [**Entries**](Entries.md)| | [optional] + **fields** | **str**| | [optional] + +### Return type + +[**Entries**](Entries.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/VcsRootInstances.md b/docs/VcsRootInstances.md new file mode 100644 index 0000000..2125364 --- /dev/null +++ b/docs/VcsRootInstances.md @@ -0,0 +1,14 @@ +# VcsRootInstances + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **int** | | [optional] +**href** | **str** | | [optional] +**next_href** | **str** | | [optional] +**prev_href** | **str** | | [optional] +**vcs_root_instance** | [**list[VcsRootInstance]**](VcsRootInstance.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/VcsRoots.md b/docs/VcsRoots.md new file mode 100644 index 0000000..e71dd34 --- /dev/null +++ b/docs/VcsRoots.md @@ -0,0 +1,14 @@ +# VcsRoots + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **int** | | [optional] +**href** | **str** | | [optional] +**next_href** | **str** | | [optional] +**prev_href** | **str** | | [optional] +**vcs_root** | [**list[VcsRoot]**](VcsRoot.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/VcsStatus.md b/docs/VcsStatus.md new file mode 100644 index 0000000..42a82cc --- /dev/null +++ b/docs/VcsStatus.md @@ -0,0 +1,11 @@ +# VcsStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**current** | [**VcsCheckStatus**](VcsCheckStatus.md) | | [optional] +**previous** | [**VcsCheckStatus**](VcsCheckStatus.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh new file mode 100644 index 0000000..ae01b18 --- /dev/null +++ b/git_push.sh @@ -0,0 +1,52 @@ +#!/bin/sh +# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ +# +# Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 + +if [ "$git_user_id" = "" ]; then + git_user_id="GIT_USER_ID" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="GIT_REPO_ID" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=`git remote` +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' + diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..bafdc07 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,5 @@ +certifi >= 14.05.14 +six >= 1.10 +python_dateutil >= 2.5.3 +setuptools >= 21.0.0 +urllib3 >= 1.15.1 diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..f2cc6c8 --- /dev/null +++ b/setup.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from setuptools import setup, find_packages # noqa: H301 + +NAME = "swagger-client" +VERSION = "1.0.0" +# To install the library, run the following +# +# python setup.py install +# +# prerequisite: setuptools +# http://pypi.python.org/pypi/setuptools + +REQUIRES = ["urllib3 >= 1.15", "six >= 1.10", "certifi", "python-dateutil"] + +setup( + name=NAME, + version=VERSION, + description="TeamCity REST API", + author_email="", + url="", + keywords=["Swagger", "TeamCity REST API"], + install_requires=REQUIRES, + packages=find_packages(), + include_package_data=True, + long_description="""\ + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + """ +) diff --git a/swagger.json b/swagger.json new file mode 100644 index 0000000..a273d36 --- /dev/null +++ b/swagger.json @@ -0,0 +1,17646 @@ +{ + "basePath": "", + "definitions": { + "BackupProcess": { + "properties": { + "briefInfo": { + "$ref": "#/definitions/BackupProcessInfo" + }, + "exceptions": { + "items": { + "$ref": "#/definitions/Exception" + }, + "type": "array" + }, + "finished": { + "default": false, + "type": "boolean" + }, + "processId": { + "format": "int32", + "type": "integer" + }, + "processKind": { + "enum": [ + "Backup", + "Restore", + "Cleanup" + ], + "type": "string" + }, + "progressInfo": { + "$ref": "#/definitions/ProgressInfo" + }, + "progressStatus": { + "enum": [ + "Running", + "Cancelling", + "Cancelled", + "Finished", + "Fault" + ], + "type": "string" + } + }, + "type": "object" + }, + "BackupProcessInfo": { + "properties": { + "fileName": { + "type": "string" + }, + "fileSize": { + "format": "int64", + "type": "integer" + }, + "finishTimestamp": { + "format": "date-time", + "type": "string" + }, + "id": { + "format": "int32", + "type": "integer" + }, + "startTimestamp": { + "format": "date-time", + "type": "string" + }, + "status": { + "enum": [ + "Running", + "Cancelling", + "Cancelled", + "Finished", + "Fault" + ], + "type": "string" + } + }, + "type": "object" + }, + "BackupProcessManager": { + "properties": { + "currentBackupProcess": { + "$ref": "#/definitions/BackupProcess" + } + }, + "type": "object" + }, + "Exception": { + "properties": { + "cause": { + "$ref": "#/definitions/Throwable" + }, + "localizedMessage": { + "type": "string" + }, + "message": { + "type": "string" + }, + "stackTrace": { + "items": { + "$ref": "#/definitions/StackTraceElement" + }, + "type": "array" + }, + "suppressed": { + "items": { + "$ref": "#/definitions/Throwable" + }, + "type": "array" + } + }, + "type": "object" + }, + "FileChange": { + "properties": { + "after-revision": { + "type": "string", + "xml": { + "attribute": true + } + }, + "before-revision": { + "type": "string", + "xml": { + "attribute": true + } + }, + "changeType": { + "type": "string", + "xml": { + "attribute": true + } + }, + "changeTypeComment": { + "type": "string", + "xml": { + "attribute": true + } + }, + "directory": { + "default": false, + "type": "boolean", + "xml": { + "attribute": true + } + }, + "file": { + "type": "string", + "xml": { + "attribute": true + } + }, + "relative-file": { + "type": "string", + "xml": { + "attribute": true + } + } + }, + "type": "object" + }, + "FileChanges": { + "properties": { + "count": { + "format": "int32", + "type": "integer", + "xml": { + "attribute": true + } + }, + "file": { + "items": { + "$ref": "#/definitions/FileChange" + }, + "type": "array" + } + }, + "type": "object" + }, + "Issue": { + "properties": { + "id": { + "type": "string", + "xml": { + "attribute": true + } + }, + "url": { + "type": "string", + "xml": { + "attribute": true + } + } + }, + "type": "object" + }, + "IssueUsage": { + "properties": { + "changes": { + "$ref": "#/definitions/changes" + }, + "issue": { + "$ref": "#/definitions/Issue" + } + }, + "type": "object" + }, + "Mute": { + "properties": { + "assignment": { + "$ref": "#/definitions/comment" + }, + "id": { + "format": "int32", + "type": "integer", + "xml": { + "attribute": true + } + }, + "resolution": { + "$ref": "#/definitions/Resolution" + }, + "scope": { + "$ref": "#/definitions/ProblemScope" + }, + "target": { + "$ref": "#/definitions/ProblemTarget" + } + }, + "type": "object" + }, + "ProblemScope": { + "properties": { + "buildType": { + "$ref": "#/definitions/buildType" + }, + "buildTypes": { + "$ref": "#/definitions/buildTypes" + }, + "project": { + "$ref": "#/definitions/project" + } + }, + "type": "object" + }, + "ProblemTarget": { + "properties": { + "anyProblem": { + "default": false, + "type": "boolean", + "xml": { + "attribute": true + } + }, + "problems": { + "$ref": "#/definitions/problems" + }, + "tests": { + "$ref": "#/definitions/tests" + } + }, + "type": "object" + }, + "ProgressInfo": { + "properties": { + "done": { + "format": "int64", + "type": "integer" + }, + "doneHumanized": { + "type": "string" + }, + "estimated": { + "format": "int64", + "type": "integer" + }, + "estimatedHumanized": { + "type": "string" + }, + "percent": { + "format": "int32", + "type": "integer" + }, + "phase": { + "type": "string" + } + }, + "type": "object" + }, + "Resolution": { + "properties": { + "time": { + "type": "string" + }, + "type": { + "type": "string", + "xml": { + "attribute": true + } + } + }, + "type": "object" + }, + "Revision": { + "properties": { + "checkout-rules": { + "type": "string" + }, + "internalVersion": { + "type": "string", + "xml": { + "attribute": true + } + }, + "vcs-root-instance": { + "$ref": "#/definitions/vcs-root-instance" + }, + "vcsBranchName": { + "type": "string", + "xml": { + "attribute": true + } + }, + "version": { + "type": "string", + "xml": { + "attribute": true + } + } + }, + "type": "object" + }, + "Revisions": { + "properties": { + "count": { + "format": "int32", + "type": "integer", + "xml": { + "attribute": true + } + }, + "revision": { + "items": { + "$ref": "#/definitions/Revision" + }, + "type": "array" + } + }, + "type": "object" + }, + "StackTraceElement": { + "properties": { + "className": { + "type": "string" + }, + "fileName": { + "type": "string" + }, + "lineNumber": { + "format": "int32", + "type": "integer" + }, + "methodName": { + "type": "string" + }, + "nativeMethod": { + "default": false, + "type": "boolean" + } + }, + "type": "object" + }, + "StateField": { + "properties": { + "inherited": { + "default": false, + "type": "boolean", + "xml": { + "attribute": true + } + }, + "value": { + "default": false, + "type": "boolean", + "xml": { + "attribute": true + } + } + }, + "type": "object" + }, + "Throwable": { + "properties": { + "cause": { + "$ref": "#/definitions/Throwable" + }, + "localizedMessage": { + "type": "string" + }, + "message": { + "type": "string" + }, + "stackTrace": { + "items": { + "$ref": "#/definitions/StackTraceElement" + }, + "type": "array" + }, + "suppressed": { + "items": { + "$ref": "#/definitions/Throwable" + }, + "type": "array" + } + }, + "type": "object" + }, + "TriggeredBy": { + "properties": { + "buildType": { + "$ref": "#/definitions/buildType" + }, + "date": { + "type": "string", + "xml": { + "attribute": true + } + }, + "details": { + "type": "string", + "xml": { + "attribute": true + } + }, + "properties": { + "$ref": "#/definitions/properties" + }, + "rawValue": { + "type": "string", + "xml": { + "attribute": true + } + }, + "type": { + "type": "string", + "xml": { + "attribute": true + } + }, + "user": { + "$ref": "#/definitions/user" + } + }, + "type": "object" + }, + "VcsCheckStatus": { + "properties": { + "requestorType": { + "type": "string", + "xml": { + "attribute": true + } + }, + "status": { + "type": "string", + "xml": { + "attribute": true + } + }, + "timestamp": { + "type": "string", + "xml": { + "attribute": true + } + } + }, + "type": "object", + "xml": { + "name": "VcsCheckStatus" + } + }, + "agent": { + "properties": { + "authorized": { + "default": false, + "type": "boolean", + "xml": { + "attribute": true + } + }, + "authorizedInfo": { + "$ref": "#/definitions/authorizedInfo" + }, + "compatibleBuildTypes": { + "$ref": "#/definitions/buildTypes" + }, + "connected": { + "default": false, + "type": "boolean", + "xml": { + "attribute": true + } + }, + "enabled": { + "default": false, + "type": "boolean", + "xml": { + "attribute": true + } + }, + "enabledInfo": { + "$ref": "#/definitions/enabledInfo" + }, + "href": { + "type": "string", + "xml": { + "attribute": true + } + }, + "id": { + "format": "int32", + "type": "integer", + "xml": { + "attribute": true + } + }, + "incompatibleBuildTypes": { + "$ref": "#/definitions/compatibilities" + }, + "ip": { + "type": "string", + "xml": { + "attribute": true + } + }, + "locator": { + "type": "string", + "xml": { + "attribute": true + } + }, + "name": { + "type": "string", + "xml": { + "attribute": true + } + }, + "pool": { + "$ref": "#/definitions/agentPool" + }, + "properties": { + "$ref": "#/definitions/properties" + }, + "protocol": { + "type": "string", + "xml": { + "attribute": true + } + }, + "typeId": { + "format": "int32", + "type": "integer", + "xml": { + "attribute": true + } + }, + "uptodate": { + "default": false, + "type": "boolean", + "xml": { + "attribute": true + } + } + }, + "type": "object", + "xml": { + "name": "agent" + } + }, + "agent-requirement": { + "properties": { + "disabled": { + "default": false, + "type": "boolean", + "xml": { + "attribute": true + } + }, + "href": { + "type": "string", + "xml": { + "attribute": true + } + }, + "id": { + "type": "string", + "xml": { + "attribute": true + } + }, + "inherited": { + "default": false, + "type": "boolean", + "xml": { + "attribute": true + } + }, + "name": { + "type": "string", + "xml": { + "attribute": true + } + }, + "properties": { + "$ref": "#/definitions/properties" + }, + "type": { + "type": "string", + "xml": { + "attribute": true + } + } + }, + "type": "object", + "xml": { + "name": "agent-requirement" + } + }, + "agent-requirements": { + "properties": { + "agent-requirement": { + "items": { + "$ref": "#/definitions/agent-requirement" + }, + "type": "array" + }, + "count": { + "format": "int32", + "type": "integer", + "xml": { + "attribute": true + } + } + }, + "type": "object", + "xml": { + "name": "agent-requirements" + } + }, + "agentPool": { + "properties": { + "agents": { + "$ref": "#/definitions/agents" + }, + "href": { + "type": "string", + "xml": { + "attribute": true + } + }, + "id": { + "format": "int32", + "type": "integer", + "xml": { + "attribute": true + } + }, + "locator": { + "type": "string", + "xml": { + "attribute": true + } + }, + "maxAgents": { + "format": "int32", + "type": "integer", + "xml": { + "attribute": true + } + }, + "name": { + "type": "string", + "xml": { + "attribute": true + } + }, + "projects": { + "$ref": "#/definitions/projects" + } + }, + "type": "object", + "xml": { + "name": "agentPool" + } + }, + "agentPools": { + "properties": { + "agentPool": { + "items": { + "$ref": "#/definitions/agentPool" + }, + "type": "array" + }, + "count": { + "format": "int32", + "type": "integer", + "xml": { + "attribute": true + } + }, + "href": { + "type": "string", + "xml": { + "attribute": true + } + }, + "nextHref": { + "type": "string", + "xml": { + "attribute": true + } + }, + "prevHref": { + "type": "string", + "xml": { + "attribute": true + } + } + }, + "type": "object", + "xml": { + "name": "agentPools" + } + }, + "agents": { + "properties": { + "agent": { + "items": { + "$ref": "#/definitions/agent" + }, + "type": "array" + }, + "count": { + "format": "int32", + "type": "integer", + "xml": { + "attribute": true + } + }, + "href": { + "type": "string", + "xml": { + "attribute": true + } + }, + "nextHref": { + "type": "string", + "xml": { + "attribute": true + } + }, + "prevHref": { + "type": "string", + "xml": { + "attribute": true + } + } + }, + "type": "object", + "xml": { + "name": "agents" + } + }, + "artifact-dependencies": { + "properties": { + "artifact-dependency": { + "items": { + "$ref": "#/definitions/artifact-dependency" + }, + "type": "array" + }, + "count": { + "format": "int32", + "type": "integer", + "xml": { + "attribute": true + } + }, + "replace": { + "type": "string", + "xml": { + "attribute": true + } + } + }, + "type": "object", + "xml": { + "name": "artifact-dependencies" + } + }, + "artifact-dependency": { + "properties": { + "disabled": { + "default": false, + "type": "boolean", + "xml": { + "attribute": true + } + }, + "href": { + "type": "string", + "xml": { + "attribute": true + } + }, + "id": { + "type": "string", + "xml": { + "attribute": true + } + }, + "inherited": { + "default": false, + "type": "boolean", + "xml": { + "attribute": true + } + }, + "name": { + "type": "string", + "xml": { + "attribute": true + } + }, + "properties": { + "$ref": "#/definitions/properties" + }, + "source-buildType": { + "$ref": "#/definitions/buildType" + }, + "type": { + "type": "string", + "xml": { + "attribute": true + } + } + }, + "type": "object", + "xml": { + "name": "artifact-dependency" + } + }, + "authorizedInfo": { + "properties": { + "comment": { + "$ref": "#/definitions/comment" + }, + "status": { + "default": false, + "type": "boolean", + "xml": { + "attribute": true + } + } + }, + "type": "object", + "xml": { + "name": "authorizedInfo" + } + }, + "branch": { + "properties": { + "default": { + "default": false, + "type": "boolean", + "xml": { + "attribute": true + } + }, + "name": { + "type": "string", + "xml": { + "attribute": true + } + }, + "unspecified": { + "default": false, + "type": "boolean", + "xml": { + "attribute": true + } + } + }, + "type": "object", + "xml": { + "name": "branch" + } + }, + "branchVersion": { + "properties": { + "default": { + "default": false, + "type": "boolean", + "xml": { + "attribute": true + } + }, + "name": { + "type": "string", + "xml": { + "attribute": true + } + }, + "unspecified": { + "default": false, + "type": "boolean", + "xml": { + "attribute": true + } + }, + "version": { + "type": "string", + "xml": { + "attribute": true + } + } + }, + "type": "object", + "xml": { + "name": "branchVersion" + } + }, + "branches": { + "properties": { + "branch": { + "items": { + "$ref": "#/definitions/branch" + }, + "type": "array" + }, + "count": { + "format": "int32", + "type": "integer", + "xml": { + "attribute": true + } + } + }, + "type": "object", + "xml": { + "name": "branches" + } + }, + "build": { + "properties": { + "agent": { + "$ref": "#/definitions/agent" + }, + "artifact-dependencies": { + "$ref": "#/definitions/builds" + }, + "artifacts": { + "$ref": "#/definitions/files" + }, + "attributes": { + "$ref": "#/definitions/entries" + }, + "branchName": { + "type": "string", + "xml": { + "attribute": true + } + }, + "buildType": { + "$ref": "#/definitions/buildType" + }, + "buildTypeId": { + "type": "string", + "xml": { + "attribute": true + } + }, + "buildTypeInternalId": { + "type": "string", + "xml": { + "attribute": true + } + }, + "canceledInfo": { + "$ref": "#/definitions/comment" + }, + "chainModificationId": { + "type": "string" + }, + "changes": { + "$ref": "#/definitions/changes" + }, + "comment": { + "$ref": "#/definitions/comment" + }, + "compatibleAgents": { + "$ref": "#/definitions/agents" + }, + "currentSettingsHash": { + "type": "string" + }, + "custom-artifact-dependencies": { + "$ref": "#/definitions/artifact-dependencies" + }, + "defaultBranch": { + "default": false, + "type": "boolean", + "xml": { + "attribute": true + } + }, + "failedToStart": { + "default": false, + "type": "boolean", + "xml": { + "attribute": true + } + }, + "finishDate": { + "type": "string" + }, + "history": { + "default": false, + "type": "boolean", + "xml": { + "attribute": true + } + }, + "href": { + "type": "string", + "xml": { + "attribute": true + } + }, + "id": { + "format": "int64", + "type": "integer", + "xml": { + "attribute": true + } + }, + "lastChanges": { + "$ref": "#/definitions/changes" + }, + "locator": { + "type": "string", + "xml": { + "attribute": true + } + }, + "metadata": { + "$ref": "#/definitions/datas" + }, + "modificationId": { + "type": "string" + }, + "number": { + "type": "string", + "xml": { + "attribute": true + } + }, + "percentageComplete": { + "format": "int32", + "type": "integer", + "xml": { + "attribute": true + } + }, + "personal": { + "default": false, + "type": "boolean", + "xml": { + "attribute": true + } + }, + "pinInfo": { + "$ref": "#/definitions/comment" + }, + "pinned": { + "default": false, + "type": "boolean", + "xml": { + "attribute": true + } + }, + "problemOccurrences": { + "$ref": "#/definitions/problemOccurrences" + }, + "properties": { + "$ref": "#/definitions/properties" + }, + "queuedDate": { + "type": "string" + }, + "relatedIssues": { + "$ref": "#/definitions/issuesUsages" + }, + "replacementIds": { + "$ref": "#/definitions/items" + }, + "resultingProperties": { + "$ref": "#/definitions/properties" + }, + "revisions": { + "$ref": "#/definitions/Revisions" + }, + "running": { + "default": false, + "type": "boolean", + "xml": { + "attribute": true + } + }, + "running-info": { + "$ref": "#/definitions/progress-info" + }, + "settingsHash": { + "type": "string" + }, + "snapshot-dependencies": { + "$ref": "#/definitions/builds" + }, + "startDate": { + "type": "string" + }, + "startEstimate": { + "type": "string" + }, + "state": { + "type": "string", + "xml": { + "attribute": true + } + }, + "statistics": { + "$ref": "#/definitions/properties" + }, + "status": { + "type": "string", + "xml": { + "attribute": true + } + }, + "statusText": { + "type": "string" + }, + "tags": { + "$ref": "#/definitions/tags" + }, + "taskId": { + "format": "int64", + "type": "integer", + "xml": { + "attribute": true + } + }, + "testOccurrences": { + "$ref": "#/definitions/testOccurrences" + }, + "triggered": { + "$ref": "#/definitions/TriggeredBy" + }, + "triggeringOptions": { + "$ref": "#/definitions/buildTriggeringOptions" + }, + "unspecifiedBranch": { + "default": false, + "type": "boolean", + "xml": { + "attribute": true + } + }, + "user": { + "$ref": "#/definitions/user" + }, + "versionedSettingsRevision": { + "$ref": "#/definitions/Revision" + }, + "waitReason": { + "type": "string" + }, + "webUrl": { + "type": "string", + "xml": { + "attribute": true + } + } + }, + "type": "object", + "xml": { + "name": "build" + } + }, + "buildCancelRequest": { + "properties": { + "comment": { + "type": "string", + "xml": { + "attribute": true + } + }, + "readdIntoQueue": { + "default": false, + "type": "boolean", + "xml": { + "attribute": true + } + } + }, + "type": "object", + "xml": { + "name": "buildCancelRequest" + } + }, + "buildTriggeringOptions": { + "properties": { + "cleanSources": { + "default": false, + "type": "boolean", + "xml": { + "attribute": true + } + }, + "queueAtTop": { + "default": false, + "type": "boolean", + "xml": { + "attribute": true + } + }, + "rebuildAllDependencies": { + "default": false, + "type": "boolean", + "xml": { + "attribute": true + } + }, + "rebuildDependencies": { + "$ref": "#/definitions/buildTypes" + } + }, + "type": "object", + "xml": { + "name": "buildTriggeringOptions" + } + }, + "buildType": { + "properties": { + "agent-requirements": { + "$ref": "#/definitions/agent-requirements" + }, + "artifact-dependencies": { + "$ref": "#/definitions/artifact-dependencies" + }, + "builds": { + "$ref": "#/definitions/builds" + }, + "compatibleAgents": { + "$ref": "#/definitions/agents" + }, + "description": { + "type": "string", + "xml": { + "attribute": true + } + }, + "features": { + "$ref": "#/definitions/features" + }, + "href": { + "type": "string", + "xml": { + "attribute": true + } + }, + "id": { + "type": "string", + "xml": { + "attribute": true + } + }, + "internalId": { + "type": "string", + "xml": { + "attribute": true + } + }, + "investigations": { + "$ref": "#/definitions/investigations" + }, + "links": { + "$ref": "#/definitions/links" + }, + "locator": { + "type": "string", + "xml": { + "attribute": true + } + }, + "name": { + "type": "string", + "xml": { + "attribute": true + } + }, + "parameters": { + "$ref": "#/definitions/properties" + }, + "paused": { + "default": false, + "type": "boolean", + "xml": { + "attribute": true + } + }, + "project": { + "$ref": "#/definitions/project" + }, + "projectId": { + "type": "string", + "xml": { + "attribute": true + } + }, + "projectInternalId": { + "type": "string", + "xml": { + "attribute": true + } + }, + "projectName": { + "type": "string", + "xml": { + "attribute": true + } + }, + "settings": { + "$ref": "#/definitions/properties" + }, + "snapshot-dependencies": { + "$ref": "#/definitions/snapshot-dependencies" + }, + "steps": { + "$ref": "#/definitions/steps" + }, + "template": { + "$ref": "#/definitions/buildType" + }, + "templateFlag": { + "default": false, + "type": "boolean", + "xml": { + "attribute": true + } + }, + "triggers": { + "$ref": "#/definitions/triggers" + }, + "uuid": { + "type": "string", + "xml": { + "attribute": true + } + }, + "vcs-root-entries": { + "$ref": "#/definitions/vcs-root-entries" + }, + "webUrl": { + "type": "string", + "xml": { + "attribute": true + } + } + }, + "type": "object", + "xml": { + "name": "buildType" + } + }, + "buildTypes": { + "properties": { + "buildType": { + "items": { + "$ref": "#/definitions/buildType" + }, + "type": "array" + }, + "count": { + "format": "int32", + "type": "integer", + "xml": { + "attribute": true + } + }, + "href": { + "type": "string", + "xml": { + "attribute": true + } + }, + "nextHref": { + "type": "string", + "xml": { + "attribute": true + } + }, + "prevHref": { + "type": "string", + "xml": { + "attribute": true + } + } + }, + "type": "object", + "xml": { + "name": "buildTypes" + } + }, + "builds": { + "properties": { + "build": { + "items": { + "$ref": "#/definitions/build" + }, + "type": "array" + }, + "count": { + "format": "int32", + "type": "integer", + "xml": { + "attribute": true + } + }, + "href": { + "type": "string", + "xml": { + "attribute": true + } + }, + "nextHref": { + "type": "string", + "xml": { + "attribute": true + } + }, + "prevHref": { + "type": "string", + "xml": { + "attribute": true + } + } + }, + "type": "object", + "xml": { + "name": "builds" + } + }, + "change": { + "properties": { + "comment": { + "type": "string" + }, + "date": { + "type": "string", + "xml": { + "attribute": true + } + }, + "files": { + "$ref": "#/definitions/FileChanges" + }, + "href": { + "type": "string", + "xml": { + "attribute": true + } + }, + "id": { + "format": "int64", + "type": "integer", + "xml": { + "attribute": true + } + }, + "internalVersion": { + "type": "string", + "xml": { + "attribute": true + } + }, + "locator": { + "type": "string", + "xml": { + "attribute": true + } + }, + "parentChanges": { + "$ref": "#/definitions/changes" + }, + "parentRevisions": { + "$ref": "#/definitions/items" + }, + "personal": { + "default": false, + "type": "boolean", + "xml": { + "attribute": true + } + }, + "registrationDate": { + "type": "string", + "xml": { + "attribute": true + } + }, + "user": { + "$ref": "#/definitions/user" + }, + "username": { + "type": "string", + "xml": { + "attribute": true + } + }, + "vcsRootInstance": { + "$ref": "#/definitions/vcs-root-instance" + }, + "version": { + "type": "string", + "xml": { + "attribute": true + } + }, + "webUrl": { + "type": "string", + "xml": { + "attribute": true + } + } + }, + "type": "object", + "xml": { + "name": "change" + } + }, + "changes": { + "properties": { + "change": { + "items": { + "$ref": "#/definitions/change" + }, + "type": "array" + }, + "count": { + "format": "int32", + "type": "integer", + "xml": { + "attribute": true + } + }, + "href": { + "type": "string", + "xml": { + "attribute": true + } + }, + "nextHref": { + "type": "string", + "xml": { + "attribute": true + } + }, + "prevHref": { + "type": "string", + "xml": { + "attribute": true + } + } + }, + "type": "object", + "xml": { + "name": "changes" + } + }, + "comment": { + "properties": { + "text": { + "type": "string" + }, + "timestamp": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/user" + } + }, + "type": "object", + "xml": { + "name": "comment" + } + }, + "compatibilities": { + "properties": { + "compatibility": { + "items": { + "$ref": "#/definitions/compatibility" + }, + "type": "array" + }, + "count": { + "format": "int32", + "type": "integer", + "xml": { + "attribute": true + } + } + }, + "type": "object", + "xml": { + "name": "compatibilities" + } + }, + "compatibility": { + "properties": { + "agent": { + "$ref": "#/definitions/agent" + }, + "buildType": { + "$ref": "#/definitions/buildType" + }, + "compatible": { + "default": false, + "type": "boolean", + "xml": { + "attribute": true + } + }, + "unmetRequirements": { + "$ref": "#/definitions/requirements" + } + }, + "type": "object", + "xml": { + "name": "compatibility" + } + }, + "datas": { + "properties": { + "count": { + "format": "int32", + "type": "integer", + "xml": { + "attribute": true + } + }, + "data": { + "items": { + "$ref": "#/definitions/metaData" + }, + "type": "array" + } + }, + "type": "object", + "xml": { + "name": "datas" + } + }, + "enabledInfo": { + "properties": { + "comment": { + "$ref": "#/definitions/comment" + }, + "status": { + "default": false, + "type": "boolean", + "xml": { + "attribute": true + } + }, + "statusSwitchTime": { + "type": "string", + "xml": { + "attribute": true + } + } + }, + "type": "object", + "xml": { + "name": "enabledInfo" + } + }, + "entries": { + "properties": { + "count": { + "format": "int32", + "type": "integer", + "xml": { + "attribute": true + } + }, + "entry": { + "items": { + "$ref": "#/definitions/entry" + }, + "type": "array" + } + }, + "type": "object", + "xml": { + "name": "entries" + } + }, + "entry": { + "properties": { + "name": { + "type": "string", + "xml": { + "attribute": true + } + }, + "value": { + "type": "string", + "xml": { + "attribute": true + } + } + }, + "type": "object", + "xml": { + "name": "entry" + } + }, + "feature": { + "properties": { + "disabled": { + "default": false, + "type": "boolean", + "xml": { + "attribute": true + } + }, + "href": { + "type": "string", + "xml": { + "attribute": true + } + }, + "id": { + "type": "string", + "xml": { + "attribute": true + } + }, + "inherited": { + "default": false, + "type": "boolean", + "xml": { + "attribute": true + } + }, + "name": { + "type": "string", + "xml": { + "attribute": true + } + }, + "properties": { + "$ref": "#/definitions/properties" + }, + "type": { + "type": "string", + "xml": { + "attribute": true + } + } + }, + "type": "object", + "xml": { + "name": "feature" + } + }, + "features": { + "properties": { + "count": { + "format": "int32", + "type": "integer", + "xml": { + "attribute": true + } + }, + "feature": { + "items": { + "$ref": "#/definitions/feature" + }, + "type": "array" + } + }, + "type": "object", + "xml": { + "name": "features" + } + }, + "federationServer": { + "properties": { + "name": { + "type": "string", + "xml": { + "attribute": true + } + }, + "url": { + "type": "string", + "xml": { + "attribute": true + } + } + }, + "type": "object", + "xml": { + "name": "federationServer" + } + }, + "file": { + "properties": { + "children": { + "$ref": "#/definitions/files" + }, + "content": { + "$ref": "#/definitions/href" + }, + "fullName": { + "type": "string", + "xml": { + "attribute": true + } + }, + "href": { + "type": "string", + "xml": { + "attribute": true + } + }, + "modificationTime": { + "type": "string", + "xml": { + "attribute": true + } + }, + "name": { + "type": "string", + "xml": { + "attribute": true + } + }, + "parent": { + "$ref": "#/definitions/file" + }, + "size": { + "format": "int64", + "type": "integer", + "xml": { + "attribute": true + } + } + }, + "type": "object", + "xml": { + "name": "file" + } + }, + "files": { + "properties": { + "count": { + "format": "int32", + "type": "integer", + "xml": { + "attribute": true + } + }, + "file": { + "items": { + "$ref": "#/definitions/file" + }, + "type": "array" + }, + "href": { + "type": "string", + "xml": { + "attribute": true + } + } + }, + "type": "object", + "xml": { + "name": "files" + } + }, + "group": { + "properties": { + "child-groups": { + "$ref": "#/definitions/groups" + }, + "description": { + "type": "string", + "xml": { + "attribute": true + } + }, + "href": { + "type": "string", + "xml": { + "attribute": true + } + }, + "key": { + "type": "string", + "xml": { + "attribute": true + } + }, + "name": { + "type": "string", + "xml": { + "attribute": true + } + }, + "parent-groups": { + "$ref": "#/definitions/groups" + }, + "properties": { + "$ref": "#/definitions/properties" + }, + "roles": { + "$ref": "#/definitions/roles" + }, + "users": { + "$ref": "#/definitions/users" + } + }, + "type": "object", + "xml": { + "name": "group" + } + }, + "groups": { + "properties": { + "count": { + "format": "int32", + "type": "integer", + "xml": { + "attribute": true + } + }, + "group": { + "items": { + "$ref": "#/definitions/group" + }, + "type": "array" + } + }, + "type": "object", + "xml": { + "name": "groups" + } + }, + "href": { + "properties": { + "href": { + "type": "string", + "xml": { + "attribute": true + } + } + }, + "type": "object", + "xml": { + "name": "href" + } + }, + "investigation": { + "properties": { + "assignee": { + "$ref": "#/definitions/user" + }, + "assignment": { + "$ref": "#/definitions/comment" + }, + "href": { + "type": "string", + "xml": { + "attribute": true + } + }, + "id": { + "type": "string", + "xml": { + "attribute": true + } + }, + "resolution": { + "$ref": "#/definitions/Resolution" + }, + "responsible": { + "$ref": "#/definitions/user" + }, + "scope": { + "$ref": "#/definitions/ProblemScope" + }, + "state": { + "type": "string", + "xml": { + "attribute": true + } + }, + "target": { + "$ref": "#/definitions/ProblemTarget" + } + }, + "type": "object", + "xml": { + "name": "investigation" + } + }, + "investigations": { + "properties": { + "count": { + "format": "int32", + "type": "integer", + "xml": { + "attribute": true + } + }, + "href": { + "type": "string", + "xml": { + "attribute": true + } + }, + "investigation": { + "items": { + "$ref": "#/definitions/investigation" + }, + "type": "array" + }, + "nextHref": { + "type": "string", + "xml": { + "attribute": true + } + }, + "prevHref": { + "type": "string", + "xml": { + "attribute": true + } + } + }, + "type": "object", + "xml": { + "name": "investigations" + } + }, + "issues": { + "properties": { + "issues": { + "items": { + "$ref": "#/definitions/Issue" + }, + "type": "array", + "xml": { + "name": "issue" + } + } + }, + "type": "object", + "xml": { + "name": "issues" + } + }, + "issuesUsages": { + "properties": { + "count": { + "format": "int32", + "type": "integer", + "xml": { + "attribute": true + } + }, + "href": { + "type": "string", + "xml": { + "attribute": true + } + }, + "issueUsage": { + "items": { + "$ref": "#/definitions/IssueUsage" + }, + "type": "array" + } + }, + "type": "object", + "xml": { + "name": "issuesUsages" + } + }, + "items": { + "properties": { + "item": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object", + "xml": { + "name": "items" + } + }, + "licenseKey": { + "properties": { + "active": { + "default": false, + "type": "boolean", + "xml": { + "attribute": true + } + }, + "agents": { + "format": "int32", + "type": "integer", + "xml": { + "attribute": true + } + }, + "buildTypes": { + "format": "int32", + "type": "integer", + "xml": { + "attribute": true + } + }, + "errorDetails": { + "type": "string", + "xml": { + "attribute": true + } + }, + "expirationDate": { + "type": "string", + "xml": { + "attribute": true + } + }, + "expired": { + "default": false, + "type": "boolean", + "xml": { + "attribute": true + } + }, + "key": { + "type": "string", + "xml": { + "attribute": true + } + }, + "maintenanceEndDate": { + "type": "string", + "xml": { + "attribute": true + } + }, + "obsolete": { + "default": false, + "type": "boolean", + "xml": { + "attribute": true + } + }, + "rawType": { + "type": "string", + "xml": { + "attribute": true + } + }, + "servers": { + "format": "int32", + "type": "integer", + "xml": { + "attribute": true + } + }, + "type": { + "type": "string", + "xml": { + "attribute": true + } + }, + "unlimitedAgents": { + "default": false, + "type": "boolean", + "xml": { + "attribute": true + } + }, + "unlimitedBuildTypes": { + "default": false, + "type": "boolean", + "xml": { + "attribute": true + } + }, + "valid": { + "default": false, + "type": "boolean", + "xml": { + "attribute": true + } + } + }, + "type": "object", + "xml": { + "name": "licenseKey" + } + }, + "licenseKeys": { + "properties": { + "count": { + "format": "int32", + "type": "integer", + "xml": { + "attribute": true + } + }, + "href": { + "type": "string", + "xml": { + "attribute": true + } + }, + "licenseKey": { + "items": { + "$ref": "#/definitions/licenseKey" + }, + "type": "array" + } + }, + "type": "object", + "xml": { + "name": "licenseKeys" + } + }, + "licensingData": { + "properties": { + "agentsLeft": { + "format": "int32", + "type": "integer", + "xml": { + "attribute": true + } + }, + "buildTypesLeft": { + "format": "int32", + "type": "integer", + "xml": { + "attribute": true + } + }, + "licenseKeys": { + "$ref": "#/definitions/licenseKeys" + }, + "licenseUseExceeded": { + "default": false, + "type": "boolean", + "xml": { + "attribute": true + } + }, + "maxAgents": { + "format": "int32", + "type": "integer", + "xml": { + "attribute": true + } + }, + "maxBuildTypes": { + "format": "int32", + "type": "integer", + "xml": { + "attribute": true + } + }, + "serverEffectiveReleaseDate": { + "type": "string", + "xml": { + "attribute": true + } + }, + "serverLicenseType": { + "type": "string", + "xml": { + "attribute": true + } + }, + "unlimitedAgents": { + "default": false, + "type": "boolean", + "xml": { + "attribute": true + } + }, + "unlimitedBuildTypes": { + "default": false, + "type": "boolean", + "xml": { + "attribute": true + } + } + }, + "type": "object", + "xml": { + "name": "licensingData" + } + }, + "link": { + "properties": { + "relativeUrl": { + "type": "string", + "xml": { + "attribute": true + } + }, + "type": { + "type": "string", + "xml": { + "attribute": true + } + }, + "url": { + "type": "string", + "xml": { + "attribute": true + } + } + }, + "type": "object", + "xml": { + "name": "link" + } + }, + "links": { + "properties": { + "count": { + "format": "int32", + "type": "integer", + "xml": { + "attribute": true + } + }, + "link": { + "items": { + "$ref": "#/definitions/link" + }, + "type": "array" + } + }, + "type": "object", + "xml": { + "name": "links" + } + }, + "metaData": { + "properties": { + "entries": { + "$ref": "#/definitions/entries" + }, + "id": { + "type": "string", + "xml": { + "attribute": true + } + } + }, + "type": "object", + "xml": { + "name": "metaData" + } + }, + "mutes": { + "properties": { + "count": { + "format": "int32", + "type": "integer", + "xml": { + "attribute": true + } + }, + "default": { + "default": false, + "type": "boolean" + }, + "href": { + "type": "string", + "xml": { + "attribute": true + } + }, + "mute": { + "items": { + "$ref": "#/definitions/Mute" + }, + "type": "array" + }, + "nextHref": { + "type": "string", + "xml": { + "attribute": true + } + }, + "prevHref": { + "type": "string", + "xml": { + "attribute": true + } + } + }, + "type": "object", + "xml": { + "name": "mutes" + } + }, + "newBuildTypeDescription": { + "properties": { + "buildTypesIdsMap": { + "$ref": "#/definitions/properties" + }, + "copyAllAssociatedSettings": { + "default": false, + "type": "boolean", + "xml": { + "attribute": true + } + }, + "id": { + "type": "string", + "xml": { + "attribute": true + } + }, + "name": { + "type": "string", + "xml": { + "attribute": true + } + }, + "projectsIdsMap": { + "$ref": "#/definitions/properties" + }, + "sourceBuildType": { + "$ref": "#/definitions/buildType" + }, + "sourceBuildTypeLocator": { + "type": "string", + "xml": { + "attribute": true + } + }, + "vcsRootsIdsMap": { + "$ref": "#/definitions/properties" + } + }, + "type": "object", + "xml": { + "name": "newBuildTypeDescription" + } + }, + "newProjectDescription": { + "properties": { + "buildTypesIdsMap": { + "$ref": "#/definitions/properties" + }, + "copyAllAssociatedSettings": { + "default": false, + "type": "boolean", + "xml": { + "attribute": true + } + }, + "id": { + "type": "string", + "xml": { + "attribute": true + } + }, + "name": { + "type": "string", + "xml": { + "attribute": true + } + }, + "parentProject": { + "$ref": "#/definitions/project" + }, + "projectsIdsMap": { + "$ref": "#/definitions/properties" + }, + "sourceProject": { + "$ref": "#/definitions/project" + }, + "sourceProjectLocator": { + "type": "string", + "xml": { + "attribute": true + } + }, + "vcsRootsIdsMap": { + "$ref": "#/definitions/properties" + } + }, + "type": "object", + "xml": { + "name": "newProjectDescription" + } + }, + "plugin": { + "properties": { + "displayName": { + "type": "string", + "xml": { + "attribute": true + } + }, + "loadPath": { + "type": "string", + "xml": { + "attribute": true + } + }, + "name": { + "type": "string", + "xml": { + "attribute": true + } + }, + "parameters": { + "$ref": "#/definitions/properties" + }, + "version": { + "type": "string", + "xml": { + "attribute": true + } + } + }, + "type": "object", + "xml": { + "name": "plugin" + } + }, + "plugins": { + "properties": { + "count": { + "format": "int32", + "type": "integer", + "xml": { + "attribute": true + } + }, + "plugin": { + "items": { + "$ref": "#/definitions/plugin" + }, + "type": "array" + } + }, + "type": "object", + "xml": { + "name": "plugins" + } + }, + "problem": { + "properties": { + "href": { + "type": "string", + "xml": { + "attribute": true + } + }, + "id": { + "type": "string", + "xml": { + "attribute": true + } + }, + "identity": { + "type": "string", + "xml": { + "attribute": true + } + }, + "investigations": { + "$ref": "#/definitions/investigations" + }, + "mutes": { + "$ref": "#/definitions/mutes" + }, + "problemOccurrences": { + "$ref": "#/definitions/problemOccurrences" + }, + "type": { + "type": "string", + "xml": { + "attribute": true + } + } + }, + "type": "object", + "xml": { + "name": "problem" + } + }, + "problemOccurrence": { + "properties": { + "additionalData": { + "type": "string" + }, + "build": { + "$ref": "#/definitions/build" + }, + "currentlyInvestigated": { + "default": false, + "type": "boolean", + "xml": { + "attribute": true + } + }, + "currentlyMuted": { + "default": false, + "type": "boolean", + "xml": { + "attribute": true + } + }, + "details": { + "type": "string" + }, + "href": { + "type": "string", + "xml": { + "attribute": true + } + }, + "id": { + "type": "string", + "xml": { + "attribute": true + } + }, + "identity": { + "type": "string", + "xml": { + "attribute": true + } + }, + "mute": { + "$ref": "#/definitions/Mute" + }, + "muted": { + "default": false, + "type": "boolean", + "xml": { + "attribute": true + } + }, + "problem": { + "$ref": "#/definitions/problem" + }, + "type": { + "type": "string", + "xml": { + "attribute": true + } + } + }, + "type": "object", + "xml": { + "name": "problemOccurrence" + } + }, + "problemOccurrences": { + "properties": { + "count": { + "format": "int32", + "type": "integer", + "xml": { + "attribute": true + } + }, + "default": { + "default": false, + "type": "boolean" + }, + "failed": { + "format": "int32", + "type": "integer", + "xml": { + "attribute": true + } + }, + "href": { + "type": "string", + "xml": { + "attribute": true + } + }, + "ignored": { + "format": "int32", + "type": "integer", + "xml": { + "attribute": true + } + }, + "muted": { + "format": "int32", + "type": "integer", + "xml": { + "attribute": true + } + }, + "newFailed": { + "format": "int32", + "type": "integer", + "xml": { + "attribute": true + } + }, + "nextHref": { + "type": "string", + "xml": { + "attribute": true + } + }, + "passed": { + "format": "int32", + "type": "integer", + "xml": { + "attribute": true + } + }, + "prevHref": { + "type": "string", + "xml": { + "attribute": true + } + }, + "problemOccurrence": { + "items": { + "$ref": "#/definitions/problemOccurrence" + }, + "type": "array" + } + }, + "type": "object", + "xml": { + "name": "problemOccurrences" + } + }, + "problems": { + "properties": { + "count": { + "format": "int32", + "type": "integer", + "xml": { + "attribute": true + } + }, + "default": { + "default": false, + "type": "boolean" + }, + "nextHref": { + "type": "string", + "xml": { + "attribute": true + } + }, + "prevHref": { + "type": "string", + "xml": { + "attribute": true + } + }, + "problem": { + "items": { + "$ref": "#/definitions/problem" + }, + "type": "array" + } + }, + "type": "object", + "xml": { + "name": "problems" + } + }, + "progress-info": { + "properties": { + "currentStageText": { + "type": "string", + "xml": { + "attribute": true + } + }, + "elapsedSeconds": { + "format": "int64", + "type": "integer", + "xml": { + "attribute": true + } + }, + "estimatedTotalSeconds": { + "format": "int64", + "type": "integer", + "xml": { + "attribute": true + } + }, + "outdated": { + "default": false, + "type": "boolean", + "xml": { + "attribute": true + } + }, + "percentageComplete": { + "format": "int32", + "type": "integer", + "xml": { + "attribute": true + } + }, + "probablyHanging": { + "default": false, + "type": "boolean", + "xml": { + "attribute": true + } + } + }, + "type": "object", + "xml": { + "name": "progress-info" + } + }, + "project": { + "properties": { + "archived": { + "default": false, + "type": "boolean", + "xml": { + "attribute": true + } + }, + "buildTypes": { + "$ref": "#/definitions/buildTypes" + }, + "description": { + "type": "string", + "xml": { + "attribute": true + } + }, + "href": { + "type": "string", + "xml": { + "attribute": true + } + }, + "id": { + "type": "string", + "xml": { + "attribute": true + } + }, + "internalId": { + "type": "string", + "xml": { + "attribute": true + } + }, + "links": { + "$ref": "#/definitions/links" + }, + "locator": { + "type": "string", + "xml": { + "attribute": true + } + }, + "name": { + "type": "string", + "xml": { + "attribute": true + } + }, + "parameters": { + "$ref": "#/definitions/properties" + }, + "parentProject": { + "$ref": "#/definitions/project" + }, + "parentProjectId": { + "type": "string", + "xml": { + "attribute": true + } + }, + "parentProjectInternalId": { + "type": "string", + "xml": { + "attribute": true + } + }, + "parentProjectName": { + "type": "string", + "xml": { + "attribute": true + } + }, + "projectFeatures": { + "$ref": "#/definitions/projectFeatures" + }, + "projects": { + "$ref": "#/definitions/projects" + }, + "readOnlyUI": { + "$ref": "#/definitions/StateField" + }, + "templates": { + "$ref": "#/definitions/buildTypes" + }, + "uuid": { + "type": "string", + "xml": { + "attribute": true + } + }, + "vcsRoots": { + "$ref": "#/definitions/vcs-roots" + }, + "webUrl": { + "type": "string", + "xml": { + "attribute": true + } + } + }, + "type": "object", + "xml": { + "name": "project" + } + }, + "projectFeature": { + "properties": { + "disabled": { + "default": false, + "type": "boolean", + "xml": { + "attribute": true + } + }, + "href": { + "type": "string", + "xml": { + "attribute": true + } + }, + "id": { + "type": "string", + "xml": { + "attribute": true + } + }, + "inherited": { + "default": false, + "type": "boolean", + "xml": { + "attribute": true + } + }, + "name": { + "type": "string", + "xml": { + "attribute": true + } + }, + "properties": { + "$ref": "#/definitions/properties" + }, + "type": { + "type": "string", + "xml": { + "attribute": true + } + } + }, + "type": "object", + "xml": { + "name": "projectFeature" + } + }, + "projectFeatures": { + "properties": { + "count": { + "format": "int32", + "type": "integer", + "xml": { + "attribute": true + } + }, + "href": { + "type": "string", + "xml": { + "attribute": true + } + }, + "projectFeature": { + "items": { + "$ref": "#/definitions/projectFeature" + }, + "type": "array" + } + }, + "type": "object", + "xml": { + "name": "projectFeatures" + } + }, + "projects": { + "properties": { + "count": { + "format": "int32", + "type": "integer", + "xml": { + "attribute": true + } + }, + "href": { + "type": "string", + "xml": { + "attribute": true + } + }, + "nextHref": { + "type": "string", + "xml": { + "attribute": true + } + }, + "prevHref": { + "type": "string", + "xml": { + "attribute": true + } + }, + "project": { + "items": { + "$ref": "#/definitions/project" + }, + "type": "array" + } + }, + "type": "object", + "xml": { + "name": "projects" + } + }, + "properties": { + "properties": { + "count": { + "format": "int32", + "type": "integer", + "xml": { + "attribute": true + } + }, + "href": { + "type": "string", + "xml": { + "attribute": true + } + }, + "property": { + "items": { + "$ref": "#/definitions/property" + }, + "type": "array" + } + }, + "type": "object", + "xml": { + "name": "properties" + } + }, + "property": { + "properties": { + "inherited": { + "default": false, + "type": "boolean", + "xml": { + "attribute": true + } + }, + "name": { + "type": "string", + "xml": { + "attribute": true + } + }, + "type": { + "$ref": "#/definitions/type" + }, + "value": { + "type": "string", + "xml": { + "attribute": true + } + } + }, + "type": "object", + "xml": { + "name": "property" + } + }, + "repositoryState": { + "properties": { + "branch": { + "items": { + "$ref": "#/definitions/branchVersion" + }, + "type": "array" + }, + "count": { + "format": "int32", + "type": "integer", + "xml": { + "attribute": true + } + }, + "timestamp": { + "type": "string", + "xml": { + "attribute": true + } + } + }, + "type": "object", + "xml": { + "name": "repositoryState" + } + }, + "requirements": { + "properties": { + "description": { + "type": "string", + "xml": { + "attribute": true + } + } + }, + "type": "object", + "xml": { + "name": "requirements" + } + }, + "role": { + "properties": { + "href": { + "type": "string", + "xml": { + "attribute": true + } + }, + "roleId": { + "type": "string", + "xml": { + "attribute": true + } + }, + "scope": { + "type": "string", + "xml": { + "attribute": true + } + } + }, + "type": "object", + "xml": { + "name": "role" + } + }, + "roles": { + "properties": { + "role": { + "items": { + "$ref": "#/definitions/role" + }, + "type": "array" + } + }, + "type": "object", + "xml": { + "name": "roles" + } + }, + "server": { + "properties": { + "agentPools": { + "$ref": "#/definitions/href" + }, + "agents": { + "$ref": "#/definitions/href" + }, + "buildDate": { + "type": "string", + "xml": { + "attribute": true + } + }, + "buildNumber": { + "type": "string", + "xml": { + "attribute": true + } + }, + "buildQueue": { + "$ref": "#/definitions/href" + }, + "builds": { + "$ref": "#/definitions/href" + }, + "currentTime": { + "type": "string", + "xml": { + "attribute": true + } + }, + "internalId": { + "type": "string", + "xml": { + "attribute": true + } + }, + "projects": { + "$ref": "#/definitions/href" + }, + "role": { + "type": "string", + "xml": { + "attribute": true + } + }, + "startTime": { + "type": "string", + "xml": { + "attribute": true + } + }, + "userGroups": { + "$ref": "#/definitions/href" + }, + "users": { + "$ref": "#/definitions/href" + }, + "vcsRoots": { + "$ref": "#/definitions/href" + }, + "version": { + "type": "string", + "xml": { + "attribute": true + } + }, + "versionMajor": { + "format": "int32", + "type": "integer", + "xml": { + "attribute": true + } + }, + "versionMinor": { + "format": "int32", + "type": "integer", + "xml": { + "attribute": true + } + }, + "webUrl": { + "type": "string", + "xml": { + "attribute": true + } + } + }, + "type": "object", + "xml": { + "name": "server" + } + }, + "servers": { + "properties": { + "count": { + "format": "int32", + "type": "integer", + "xml": { + "attribute": true + } + }, + "server": { + "items": { + "$ref": "#/definitions/federationServer" + }, + "type": "array" + } + }, + "type": "object", + "xml": { + "name": "servers" + } + }, + "session": { + "properties": { + "creationDate": { + "type": "string", + "xml": { + "attribute": true + } + }, + "id": { + "type": "string", + "xml": { + "attribute": true + } + }, + "lastAccessedDate": { + "type": "string", + "xml": { + "attribute": true + } + }, + "user": { + "$ref": "#/definitions/user" + } + }, + "type": "object", + "xml": { + "name": "session" + } + }, + "sessions": { + "properties": { + "count": { + "format": "int32", + "type": "integer", + "xml": { + "attribute": true + } + }, + "maxActive": { + "format": "int32", + "type": "integer", + "xml": { + "attribute": true + } + }, + "session": { + "items": { + "$ref": "#/definitions/session" + }, + "type": "array" + }, + "sessionCounter": { + "format": "int32", + "type": "integer", + "xml": { + "attribute": true + } + }, + "sessionCreateRate": { + "format": "int32", + "type": "integer", + "xml": { + "attribute": true + } + }, + "sessionExpireRate": { + "format": "int32", + "type": "integer", + "xml": { + "attribute": true + } + }, + "sessionMaxAliveTime": { + "format": "int32", + "type": "integer", + "xml": { + "attribute": true + } + } + }, + "type": "object", + "xml": { + "name": "sessions" + } + }, + "snapshot-dependencies": { + "properties": { + "count": { + "format": "int32", + "type": "integer", + "xml": { + "attribute": true + } + }, + "snapshot-dependency": { + "items": { + "$ref": "#/definitions/snapshot-dependency" + }, + "type": "array" + } + }, + "type": "object", + "xml": { + "name": "snapshot-dependencies" + } + }, + "snapshot-dependency": { + "properties": { + "disabled": { + "default": false, + "type": "boolean", + "xml": { + "attribute": true + } + }, + "href": { + "type": "string", + "xml": { + "attribute": true + } + }, + "id": { + "type": "string", + "xml": { + "attribute": true + } + }, + "inherited": { + "default": false, + "type": "boolean", + "xml": { + "attribute": true + } + }, + "name": { + "type": "string", + "xml": { + "attribute": true + } + }, + "properties": { + "$ref": "#/definitions/properties" + }, + "source-buildType": { + "$ref": "#/definitions/buildType" + }, + "type": { + "type": "string", + "xml": { + "attribute": true + } + } + }, + "type": "object", + "xml": { + "name": "snapshot-dependency" + } + }, + "step": { + "properties": { + "disabled": { + "default": false, + "type": "boolean", + "xml": { + "attribute": true + } + }, + "href": { + "type": "string", + "xml": { + "attribute": true + } + }, + "id": { + "type": "string", + "xml": { + "attribute": true + } + }, + "inherited": { + "default": false, + "type": "boolean", + "xml": { + "attribute": true + } + }, + "name": { + "type": "string", + "xml": { + "attribute": true + } + }, + "properties": { + "$ref": "#/definitions/properties" + }, + "type": { + "type": "string", + "xml": { + "attribute": true + } + } + }, + "type": "object", + "xml": { + "name": "step" + } + }, + "steps": { + "properties": { + "count": { + "format": "int32", + "type": "integer", + "xml": { + "attribute": true + } + }, + "step": { + "items": { + "$ref": "#/definitions/step" + }, + "type": "array" + } + }, + "type": "object", + "xml": { + "name": "steps" + } + }, + "tag": { + "properties": { + "name": { + "type": "string", + "xml": { + "attribute": true + } + }, + "owner": { + "$ref": "#/definitions/user" + }, + "private": { + "default": false, + "type": "boolean", + "xml": { + "attribute": true + } + } + }, + "type": "object", + "xml": { + "name": "tag" + } + }, + "tags": { + "properties": { + "count": { + "format": "int32", + "type": "integer", + "xml": { + "attribute": true + } + }, + "tag": { + "items": { + "$ref": "#/definitions/tag" + }, + "type": "array" + } + }, + "type": "object", + "xml": { + "name": "tags" + } + }, + "test": { + "properties": { + "href": { + "type": "string", + "xml": { + "attribute": true + } + }, + "id": { + "type": "string", + "xml": { + "attribute": true + } + }, + "investigations": { + "$ref": "#/definitions/investigations" + }, + "mutes": { + "$ref": "#/definitions/mutes" + }, + "name": { + "type": "string", + "xml": { + "attribute": true + } + }, + "testOccurrences": { + "$ref": "#/definitions/testOccurrences" + } + }, + "type": "object", + "xml": { + "name": "test" + } + }, + "testOccurrence": { + "properties": { + "build": { + "$ref": "#/definitions/build" + }, + "currentlyInvestigated": { + "default": false, + "type": "boolean", + "xml": { + "attribute": true + } + }, + "currentlyMuted": { + "default": false, + "type": "boolean", + "xml": { + "attribute": true + } + }, + "details": { + "type": "string" + }, + "duration": { + "format": "int32", + "type": "integer", + "xml": { + "attribute": true + } + }, + "firstFailed": { + "$ref": "#/definitions/testOccurrence" + }, + "href": { + "type": "string", + "xml": { + "attribute": true + } + }, + "id": { + "type": "string", + "xml": { + "attribute": true + } + }, + "ignoreDetails": { + "type": "string" + }, + "ignored": { + "default": false, + "type": "boolean", + "xml": { + "attribute": true + } + }, + "invocations": { + "$ref": "#/definitions/testOccurrences" + }, + "mute": { + "$ref": "#/definitions/Mute" + }, + "muted": { + "default": false, + "type": "boolean", + "xml": { + "attribute": true + } + }, + "name": { + "type": "string", + "xml": { + "attribute": true + } + }, + "nextFixed": { + "$ref": "#/definitions/testOccurrence" + }, + "runOrder": { + "type": "string", + "xml": { + "attribute": true + } + }, + "status": { + "type": "string", + "xml": { + "attribute": true + } + }, + "test": { + "$ref": "#/definitions/test" + } + }, + "type": "object", + "xml": { + "name": "testOccurrence" + } + }, + "testOccurrences": { + "properties": { + "count": { + "format": "int32", + "type": "integer", + "xml": { + "attribute": true + } + }, + "default": { + "default": false, + "type": "boolean" + }, + "failed": { + "format": "int32", + "type": "integer", + "xml": { + "attribute": true + } + }, + "href": { + "type": "string", + "xml": { + "attribute": true + } + }, + "ignored": { + "format": "int32", + "type": "integer", + "xml": { + "attribute": true + } + }, + "muted": { + "format": "int32", + "type": "integer", + "xml": { + "attribute": true + } + }, + "newFailed": { + "format": "int32", + "type": "integer", + "xml": { + "attribute": true + } + }, + "nextHref": { + "type": "string", + "xml": { + "attribute": true + } + }, + "passed": { + "format": "int32", + "type": "integer", + "xml": { + "attribute": true + } + }, + "prevHref": { + "type": "string", + "xml": { + "attribute": true + } + }, + "testOccurrence": { + "items": { + "$ref": "#/definitions/testOccurrence" + }, + "type": "array" + } + }, + "type": "object", + "xml": { + "name": "testOccurrences" + } + }, + "tests": { + "properties": { + "count": { + "format": "int32", + "type": "integer", + "xml": { + "attribute": true + } + }, + "default": { + "default": false, + "type": "boolean" + }, + "nextHref": { + "type": "string", + "xml": { + "attribute": true + } + }, + "prevHref": { + "type": "string", + "xml": { + "attribute": true + } + }, + "test": { + "items": { + "$ref": "#/definitions/test" + }, + "type": "array" + } + }, + "type": "object", + "xml": { + "name": "tests" + } + }, + "trigger": { + "properties": { + "disabled": { + "default": false, + "type": "boolean", + "xml": { + "attribute": true + } + }, + "href": { + "type": "string", + "xml": { + "attribute": true + } + }, + "id": { + "type": "string", + "xml": { + "attribute": true + } + }, + "inherited": { + "default": false, + "type": "boolean", + "xml": { + "attribute": true + } + }, + "name": { + "type": "string", + "xml": { + "attribute": true + } + }, + "properties": { + "$ref": "#/definitions/properties" + }, + "type": { + "type": "string", + "xml": { + "attribute": true + } + } + }, + "type": "object", + "xml": { + "name": "trigger" + } + }, + "triggers": { + "properties": { + "count": { + "format": "int32", + "type": "integer", + "xml": { + "attribute": true + } + }, + "trigger": { + "items": { + "$ref": "#/definitions/trigger" + }, + "type": "array" + } + }, + "type": "object", + "xml": { + "name": "triggers" + } + }, + "type": { + "properties": { + "rawValue": { + "type": "string", + "xml": { + "attribute": true + } + } + }, + "type": "object", + "xml": { + "name": "type" + } + }, + "user": { + "properties": { + "email": { + "type": "string", + "xml": { + "attribute": true + } + }, + "groups": { + "$ref": "#/definitions/groups" + }, + "hasPassword": { + "default": false, + "type": "boolean", + "xml": { + "attribute": true + } + }, + "href": { + "type": "string", + "xml": { + "attribute": true + } + }, + "id": { + "format": "int64", + "type": "integer", + "xml": { + "attribute": true + } + }, + "lastLogin": { + "type": "string", + "xml": { + "attribute": true + } + }, + "locator": { + "type": "string", + "xml": { + "attribute": true + } + }, + "name": { + "type": "string", + "xml": { + "attribute": true + } + }, + "password": { + "type": "string", + "xml": { + "attribute": true + } + }, + "properties": { + "$ref": "#/definitions/properties" + }, + "realm": { + "type": "string", + "xml": { + "attribute": true + } + }, + "roles": { + "$ref": "#/definitions/roles" + }, + "username": { + "type": "string", + "xml": { + "attribute": true + } + } + }, + "type": "object", + "xml": { + "name": "user" + } + }, + "users": { + "properties": { + "count": { + "format": "int32", + "type": "integer", + "xml": { + "attribute": true + } + }, + "user": { + "items": { + "$ref": "#/definitions/user" + }, + "type": "array" + } + }, + "type": "object", + "xml": { + "name": "users" + } + }, + "vcs-root": { + "properties": { + "href": { + "type": "string", + "xml": { + "attribute": true + } + }, + "id": { + "type": "string", + "xml": { + "attribute": true + } + }, + "internalId": { + "type": "string", + "xml": { + "attribute": true + } + }, + "locator": { + "type": "string", + "xml": { + "attribute": true + } + }, + "modificationCheckInterval": { + "format": "int32", + "type": "integer", + "xml": { + "attribute": true + } + }, + "name": { + "type": "string", + "xml": { + "attribute": true + } + }, + "project": { + "$ref": "#/definitions/project" + }, + "projectLocator": { + "type": "string", + "xml": { + "attribute": true + } + }, + "properties": { + "$ref": "#/definitions/properties" + }, + "repositoryIdStrings": { + "$ref": "#/definitions/items" + }, + "uuid": { + "type": "string", + "xml": { + "attribute": true + } + }, + "vcsName": { + "type": "string", + "xml": { + "attribute": true + } + }, + "vcsRootInstances": { + "$ref": "#/definitions/vcs-root-instances" + } + }, + "type": "object", + "xml": { + "name": "vcs-root" + } + }, + "vcs-root-entries": { + "properties": { + "count": { + "format": "int32", + "type": "integer", + "xml": { + "attribute": true + } + }, + "vcs-root-entry": { + "items": { + "$ref": "#/definitions/vcs-root-entry" + }, + "type": "array" + } + }, + "type": "object", + "xml": { + "name": "vcs-root-entries" + } + }, + "vcs-root-entry": { + "properties": { + "checkout-rules": { + "type": "string" + }, + "id": { + "type": "string", + "xml": { + "attribute": true + } + }, + "inherited": { + "default": false, + "type": "boolean", + "xml": { + "attribute": true + } + }, + "vcs-root": { + "$ref": "#/definitions/vcs-root" + } + }, + "type": "object", + "xml": { + "name": "vcs-root-entry" + } + }, + "vcs-root-instance": { + "properties": { + "commitHookMode": { + "default": false, + "type": "boolean", + "xml": { + "attribute": true + } + }, + "href": { + "type": "string", + "xml": { + "attribute": true + } + }, + "id": { + "type": "string", + "xml": { + "attribute": true + } + }, + "lastVersion": { + "type": "string", + "xml": { + "attribute": true + } + }, + "lastVersionInternal": { + "type": "string", + "xml": { + "attribute": true + } + }, + "modificationCheckInterval": { + "format": "int32", + "type": "integer", + "xml": { + "attribute": true + } + }, + "name": { + "type": "string", + "xml": { + "attribute": true + } + }, + "projectLocator": { + "type": "string", + "xml": { + "attribute": true + } + }, + "properties": { + "$ref": "#/definitions/properties" + }, + "repositoryIdStrings": { + "$ref": "#/definitions/items" + }, + "repositoryState": { + "$ref": "#/definitions/repositoryState" + }, + "status": { + "$ref": "#/definitions/vcsStatus" + }, + "vcs-root": { + "$ref": "#/definitions/vcs-root" + }, + "vcs-root-id": { + "type": "string", + "xml": { + "attribute": true + } + }, + "vcsName": { + "type": "string", + "xml": { + "attribute": true + } + }, + "vcsRootInternalId": { + "type": "string", + "xml": { + "attribute": true + } + } + }, + "type": "object", + "xml": { + "name": "vcs-root-instance" + } + }, + "vcs-root-instances": { + "properties": { + "count": { + "format": "int32", + "type": "integer", + "xml": { + "attribute": true + } + }, + "href": { + "type": "string", + "xml": { + "attribute": true + } + }, + "nextHref": { + "type": "string", + "xml": { + "attribute": true + } + }, + "prevHref": { + "type": "string", + "xml": { + "attribute": true + } + }, + "vcs-root-instance": { + "items": { + "$ref": "#/definitions/vcs-root-instance" + }, + "type": "array" + } + }, + "type": "object", + "xml": { + "name": "vcs-root-instances" + } + }, + "vcs-roots": { + "properties": { + "count": { + "format": "int32", + "type": "integer", + "xml": { + "attribute": true + } + }, + "href": { + "type": "string", + "xml": { + "attribute": true + } + }, + "nextHref": { + "type": "string", + "xml": { + "attribute": true + } + }, + "prevHref": { + "type": "string", + "xml": { + "attribute": true + } + }, + "vcs-root": { + "items": { + "$ref": "#/definitions/vcs-root" + }, + "type": "array" + } + }, + "type": "object", + "xml": { + "name": "vcs-roots" + } + }, + "vcsLabeling": { + "properties": { + "branchFilter": { + "type": "string" + }, + "labelName": { + "type": "string", + "xml": { + "attribute": true + } + }, + "type": { + "type": "string", + "xml": { + "attribute": true + } + }, + "vcsRoots": { + "$ref": "#/definitions/vcs-roots" + } + }, + "type": "object", + "xml": { + "name": "vcsLabeling" + } + }, + "vcsStatus": { + "properties": { + "current": { + "$ref": "#/definitions/VcsCheckStatus" + }, + "previous": { + "$ref": "#/definitions/VcsCheckStatus" + } + }, + "type": "object", + "xml": { + "name": "vcsStatus" + } + } + }, + "host": "teamcity.ptsecurity.ru", + "info": { + "title": "TeamCity REST API", + "version": "10.0" + }, + "paths": { + "/app/rest": { + "get": { + "operationId": "serveRoot", + "parameters": [], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "string" + } + } + }, + "security": [ + { + "none": [] + } + ] + } + }, + "/app/rest/agentPools": { + "get": { + "operationId": "getPools", + "parameters": [ + { + "in": "query", + "name": "locator", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/agentPools" + } + } + }, + "tags": [ + "AgentPool" + ] + }, + "post": { + "operationId": "createPool", + "parameters": [ + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/agentPool" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/agentPool" + } + } + }, + "tags": [ + "AgentPool" + ] + } + }, + "/app/rest/agentPools/{agentPoolLocator}": { + "delete": { + "operationId": "deletePool", + "parameters": [ + { + "in": "path", + "name": "agentPoolLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "default": { + "description": "successful operation" + } + }, + "tags": [ + "AgentPool" + ] + }, + "get": { + "operationId": "getPool", + "parameters": [ + { + "in": "path", + "name": "agentPoolLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/agentPool" + } + } + }, + "tags": [ + "AgentPool" + ] + } + }, + "/app/rest/agentPools/{agentPoolLocator}/agents": { + "get": { + "operationId": "getPoolAgents", + "parameters": [ + { + "in": "path", + "name": "agentPoolLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "locator", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/agents" + } + } + }, + "tags": [ + "AgentPool" + ] + }, + "post": { + "operationId": "addAgent", + "parameters": [ + { + "in": "path", + "name": "agentPoolLocator", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/agent" + } + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/agent" + } + } + }, + "tags": [ + "AgentPool" + ] + } + }, + "/app/rest/agentPools/{agentPoolLocator}/projects": { + "delete": { + "operationId": "deleteProjects", + "parameters": [ + { + "in": "path", + "name": "agentPoolLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "default": { + "description": "successful operation" + } + }, + "tags": [ + "AgentPool" + ] + }, + "get": { + "operationId": "getPoolProjects", + "parameters": [ + { + "in": "path", + "name": "agentPoolLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/projects" + } + } + }, + "tags": [ + "AgentPool" + ] + }, + "post": { + "operationId": "addProject", + "parameters": [ + { + "in": "path", + "name": "agentPoolLocator", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/project" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/project" + } + } + }, + "tags": [ + "AgentPool" + ] + }, + "put": { + "operationId": "replaceProjects", + "parameters": [ + { + "in": "path", + "name": "agentPoolLocator", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/projects" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/projects" + } + } + }, + "tags": [ + "AgentPool" + ] + } + }, + "/app/rest/agentPools/{agentPoolLocator}/projects/{projectLocator}": { + "delete": { + "operationId": "deletePoolProject", + "parameters": [ + { + "in": "path", + "name": "agentPoolLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "projectLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "default": { + "description": "successful operation" + } + }, + "tags": [ + "AgentPool" + ] + }, + "get": { + "operationId": "getPoolProject", + "parameters": [ + { + "in": "path", + "name": "agentPoolLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "projectLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/project" + } + } + }, + "tags": [ + "AgentPool" + ] + } + }, + "/app/rest/agentPools/{agentPoolLocator}/{field}": { + "get": { + "operationId": "getField", + "parameters": [ + { + "in": "path", + "name": "agentPoolLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "field", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "string" + } + } + }, + "tags": [ + "AgentPool" + ] + }, + "put": { + "operationId": "setField", + "parameters": [ + { + "in": "path", + "name": "agentPoolLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "field", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "string" + } + } + }, + "tags": [ + "AgentPool" + ] + } + }, + "/app/rest/agents": { + "get": { + "operationId": "serveAgents", + "parameters": [ + { + "in": "query", + "name": "includeDisconnected", + "required": false, + "type": "boolean" + }, + { + "in": "query", + "name": "includeUnauthorized", + "required": false, + "type": "boolean" + }, + { + "in": "query", + "name": "locator", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/agents" + } + } + }, + "tags": [ + "Agent" + ] + } + }, + "/app/rest/agents/{agentLocator}": { + "delete": { + "operationId": "deleteAgent", + "parameters": [ + { + "in": "path", + "name": "agentLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "default": { + "description": "successful operation" + } + }, + "tags": [ + "Agent" + ] + }, + "get": { + "operationId": "serveAgent", + "parameters": [ + { + "in": "path", + "name": "agentLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/agent" + } + } + }, + "tags": [ + "Agent" + ] + } + }, + "/app/rest/agents/{agentLocator}/authorizedInfo": { + "get": { + "operationId": "getAuthorizedInfo", + "parameters": [ + { + "in": "path", + "name": "agentLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/authorizedInfo" + } + } + }, + "tags": [ + "Agent" + ] + }, + "put": { + "operationId": "setAuthorizedInfo", + "parameters": [ + { + "in": "path", + "name": "agentLocator", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/authorizedInfo" + } + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/authorizedInfo" + } + } + }, + "tags": [ + "Agent" + ] + } + }, + "/app/rest/agents/{agentLocator}/compatibleBuildTypes": { + "get": { + "operationId": "getCompatibleBuildTypes", + "parameters": [ + { + "in": "path", + "name": "agentLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/buildTypes" + } + } + }, + "tags": [ + "Agent" + ] + } + }, + "/app/rest/agents/{agentLocator}/enabledInfo": { + "get": { + "operationId": "getEnabledInfo", + "parameters": [ + { + "in": "path", + "name": "agentLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/enabledInfo" + } + } + }, + "tags": [ + "Agent" + ] + }, + "put": { + "operationId": "setEnabledInfo", + "parameters": [ + { + "in": "path", + "name": "agentLocator", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/enabledInfo" + } + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/enabledInfo" + } + } + }, + "tags": [ + "Agent" + ] + } + }, + "/app/rest/agents/{agentLocator}/incompatibleBuildTypes": { + "get": { + "operationId": "geIncompatibleBuildTypes", + "parameters": [ + { + "in": "path", + "name": "agentLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/compatibilities" + } + } + }, + "tags": [ + "Agent" + ] + } + }, + "/app/rest/agents/{agentLocator}/pool": { + "get": { + "operationId": "getAgentPool", + "parameters": [ + { + "in": "path", + "name": "agentLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/agentPool" + } + } + }, + "tags": [ + "Agent" + ] + }, + "put": { + "operationId": "setAgentPool", + "parameters": [ + { + "in": "path", + "name": "agentLocator", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/agentPool" + } + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/agentPool" + } + } + }, + "tags": [ + "Agent" + ] + } + }, + "/app/rest/agents/{agentLocator}/{field}": { + "get": { + "operationId": "serveAgentField", + "parameters": [ + { + "in": "path", + "name": "agentLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "field", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "string" + } + } + }, + "tags": [ + "Agent" + ] + }, + "put": { + "operationId": "setAgentField", + "parameters": [ + { + "in": "path", + "name": "agentLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "field", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "string" + } + } + }, + "tags": [ + "Agent" + ] + } + }, + "/app/rest/apiVersion": { + "get": { + "operationId": "serveApiVersion", + "parameters": [], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "string" + } + } + }, + "security": [ + { + "none": [] + } + ] + } + }, + "/app/rest/buildQueue": { + "delete": { + "operationId": "deleteBuildsExperimental", + "parameters": [ + { + "in": "query", + "name": "locator", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "default": { + "description": "successful operation" + } + }, + "tags": [ + "BuildQueue" + ] + }, + "get": { + "operationId": "getBuilds", + "parameters": [ + { + "in": "query", + "name": "locator", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/builds" + } + } + }, + "tags": [ + "BuildQueue" + ] + }, + "post": { + "operationId": "queueNewBuild", + "parameters": [ + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/build" + } + }, + { + "in": "query", + "name": "moveToTop", + "required": false, + "type": "boolean" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/build" + } + } + }, + "tags": [ + "BuildQueue" + ] + }, + "put": { + "operationId": "replaceBuilds", + "parameters": [ + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/builds" + } + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/builds" + } + } + }, + "tags": [ + "BuildQueue" + ] + } + }, + "/app/rest/buildQueue/order": { + "put": { + "operationId": "setBuildQueueOrder", + "parameters": [ + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/builds" + } + }, + { + "in": "path", + "name": "fields", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/builds" + } + } + }, + "tags": [ + "BuildQueue" + ] + } + }, + "/app/rest/buildQueue/{buildLocator}/example/buildCancelRequest": { + "get": { + "operationId": "cancelBuild", + "parameters": [ + { + "in": "path", + "name": "buildLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/buildCancelRequest" + } + } + }, + "tags": [ + "BuildQueue" + ] + } + }, + "/app/rest/buildQueue/{buildLocator}/tags": { + "get": { + "operationId": "serveTags", + "parameters": [ + { + "in": "path", + "name": "buildLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "locator", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/tags" + } + } + }, + "tags": [ + "BuildQueue" + ] + }, + "post": { + "operationId": "addTags", + "parameters": [ + { + "in": "path", + "name": "buildLocator", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/tags" + } + } + ], + "responses": { + "default": { + "description": "successful operation" + } + }, + "tags": [ + "BuildQueue" + ] + }, + "put": { + "operationId": "replaceTags", + "parameters": [ + { + "in": "path", + "name": "buildLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "locator", + "required": false, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/tags" + } + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/tags" + } + } + }, + "tags": [ + "BuildQueue" + ] + } + }, + "/app/rest/buildQueue/{buildLocator}/{field}": { + "get": { + "operationId": "serveBuildFieldByBuildOnly", + "parameters": [ + { + "in": "path", + "name": "buildLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "field", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "string" + } + } + }, + "tags": [ + "BuildQueue" + ] + } + }, + "/app/rest/buildQueue/{queuedBuildLocator}": { + "delete": { + "operationId": "deleteBuild", + "parameters": [ + { + "in": "path", + "name": "queuedBuildLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "default": { + "description": "successful operation" + } + }, + "tags": [ + "BuildQueue" + ] + }, + "get": { + "operationId": "getBuild", + "parameters": [ + { + "in": "path", + "name": "queuedBuildLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/build" + } + } + }, + "tags": [ + "BuildQueue" + ] + }, + "post": { + "operationId": "cancelBuild", + "parameters": [ + { + "in": "path", + "name": "queuedBuildLocator", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/buildCancelRequest" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/build" + } + } + }, + "tags": [ + "BuildQueue" + ] + } + }, + "/app/rest/buildQueue/{queuedBuildLocator}/compatibleAgents": { + "get": { + "operationId": "serveCompatibleAgents", + "parameters": [ + { + "in": "path", + "name": "queuedBuildLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/agents" + } + } + }, + "tags": [ + "BuildQueue" + ] + } + }, + "/app/rest/buildTypes": { + "get": { + "operationId": "getBuildTypes", + "parameters": [ + { + "in": "query", + "name": "locator", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/buildTypes" + } + } + }, + "tags": [ + "BuildType" + ] + }, + "post": { + "operationId": "addBuildType", + "parameters": [ + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/buildType" + } + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/buildType" + } + } + }, + "tags": [ + "BuildType" + ] + } + }, + "/app/rest/buildTypes/{btLocator}": { + "delete": { + "operationId": "deleteBuildType", + "parameters": [ + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "default": { + "description": "successful operation" + } + }, + "tags": [ + "BuildType" + ] + }, + "get": { + "operationId": "serveBuildTypeXML", + "parameters": [ + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/buildType" + } + } + }, + "tags": [ + "BuildType" + ] + } + }, + "/app/rest/buildTypes/{btLocator}/agent-requirements": { + "get": { + "operationId": "getAgentRequirements", + "parameters": [ + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/agent-requirements" + } + } + }, + "tags": [ + "BuildType" + ] + }, + "post": { + "operationId": "addAgentRequirement", + "parameters": [ + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/agent-requirement" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/agent-requirement" + } + } + }, + "tags": [ + "BuildType" + ] + }, + "put": { + "operationId": "replaceAgentRequirements", + "parameters": [ + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/agent-requirements" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/agent-requirements" + } + } + }, + "tags": [ + "BuildType" + ] + } + }, + "/app/rest/buildTypes/{btLocator}/agent-requirements/{agentRequirementLocator}": { + "delete": { + "operationId": "deleteAgentRequirement", + "parameters": [ + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "agentRequirementLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "default": { + "description": "successful operation" + } + }, + "tags": [ + "BuildType" + ] + }, + "get": { + "operationId": "getAgentRequirement", + "parameters": [ + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "agentRequirementLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/agent-requirement" + } + } + }, + "tags": [ + "BuildType" + ] + }, + "put": { + "operationId": "replaceAgentRequirement", + "parameters": [ + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "agentRequirementLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/agent-requirement" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/agent-requirement" + } + } + }, + "tags": [ + "BuildType" + ] + } + }, + "/app/rest/buildTypes/{btLocator}/agent-requirements/{agentRequirementLocator}/{fieldName}": { + "get": { + "operationId": "getRequirementSetting", + "parameters": [ + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "agentRequirementLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "fieldName", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "string" + } + } + }, + "tags": [ + "BuildType" + ] + }, + "put": { + "operationId": "changeRequirementSetting", + "parameters": [ + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "agentRequirementLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "fieldName", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "string" + } + } + }, + "tags": [ + "BuildType" + ] + } + }, + "/app/rest/buildTypes/{btLocator}/aliases": { + "get": { + "operationId": "getAliases", + "parameters": [ + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "field", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/items" + } + } + }, + "tags": [ + "BuildType" + ] + } + }, + "/app/rest/buildTypes/{btLocator}/artifact-dependencies": { + "get": { + "operationId": "getArtifactDeps", + "parameters": [ + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/artifact-dependencies" + } + } + }, + "tags": [ + "BuildType" + ] + }, + "post": { + "operationId": "addArtifactDep", + "parameters": [ + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/artifact-dependency" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/artifact-dependency" + } + } + }, + "tags": [ + "BuildType" + ] + }, + "put": { + "operationId": "replaceArtifactDeps", + "parameters": [ + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/artifact-dependencies" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/artifact-dependencies" + } + } + }, + "tags": [ + "BuildType" + ] + } + }, + "/app/rest/buildTypes/{btLocator}/artifact-dependencies/{artifactDepLocator}": { + "delete": { + "operationId": "deleteArtifactDep", + "parameters": [ + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "artifactDepLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "default": { + "description": "successful operation" + } + }, + "tags": [ + "BuildType" + ] + }, + "get": { + "operationId": "getArtifactDep", + "parameters": [ + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "artifactDepLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/artifact-dependency" + } + } + }, + "tags": [ + "BuildType" + ] + }, + "put": { + "operationId": "replaceArtifactDep", + "parameters": [ + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "artifactDepLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/artifact-dependency" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/artifact-dependency" + } + } + }, + "tags": [ + "BuildType" + ] + } + }, + "/app/rest/buildTypes/{btLocator}/artifact-dependencies/{artifactDepLocator}/{fieldName}": { + "get": { + "operationId": "getArtifactDepSetting", + "parameters": [ + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "artifactDepLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "fieldName", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "string" + } + } + }, + "tags": [ + "BuildType" + ] + }, + "put": { + "operationId": "changeArtifactDepSetting", + "parameters": [ + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "artifactDepLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "fieldName", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "string" + } + } + }, + "tags": [ + "BuildType" + ] + } + }, + "/app/rest/buildTypes/{btLocator}/branches": { + "get": { + "operationId": "serveBranches", + "parameters": [ + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "locator", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/branches" + } + } + }, + "tags": [ + "BuildType" + ] + } + }, + "/app/rest/buildTypes/{btLocator}/buildTags": { + "get": { + "operationId": "serveBuildTypeBuildsTags", + "parameters": [ + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "field", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/tags" + } + } + }, + "tags": [ + "BuildType" + ] + } + }, + "/app/rest/buildTypes/{btLocator}/builds": { + "get": { + "operationId": "serveBuilds", + "parameters": [ + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "status", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "triggeredByUser", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "includePersonal", + "required": false, + "type": "boolean" + }, + { + "in": "query", + "name": "includeCanceled", + "required": false, + "type": "boolean" + }, + { + "in": "query", + "name": "onlyPinned", + "required": false, + "type": "boolean" + }, + { + "collectionFormat": "multi", + "in": "query", + "items": { + "type": "string" + }, + "name": "tag", + "required": false, + "type": "array" + }, + { + "in": "query", + "name": "agentName", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "sinceBuild", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "sinceDate", + "required": false, + "type": "string" + }, + { + "format": "int64", + "in": "query", + "name": "start", + "required": false, + "type": "integer" + }, + { + "format": "int32", + "in": "query", + "name": "count", + "required": false, + "type": "integer" + }, + { + "in": "query", + "name": "locator", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/builds" + } + } + }, + "tags": [ + "BuildType" + ] + } + }, + "/app/rest/buildTypes/{btLocator}/builds/{buildLocator}": { + "get": { + "operationId": "serveBuildWithProject", + "parameters": [ + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "buildLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/build" + } + } + }, + "tags": [ + "BuildType" + ] + } + }, + "/app/rest/buildTypes/{btLocator}/builds/{buildLocator}/{field}": { + "get": { + "operationId": "serveBuildField", + "parameters": [ + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "buildLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "field", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "string" + } + } + }, + "tags": [ + "BuildType" + ] + } + }, + "/app/rest/buildTypes/{btLocator}/example/newBuildTypeDescription": { + "get": { + "operationId": "getExampleNewProjectDescription", + "parameters": [ + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/newBuildTypeDescription" + } + } + }, + "tags": [ + "BuildType" + ] + } + }, + "/app/rest/buildTypes/{btLocator}/features": { + "get": { + "operationId": "getFeatures", + "parameters": [ + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/features" + } + } + }, + "tags": [ + "BuildType" + ] + }, + "post": { + "operationId": "addFeature", + "parameters": [ + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/feature" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/feature" + } + } + }, + "tags": [ + "BuildType" + ] + }, + "put": { + "operationId": "replaceFeatures", + "parameters": [ + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/features" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/features" + } + } + }, + "tags": [ + "BuildType" + ] + } + }, + "/app/rest/buildTypes/{btLocator}/features/{featureId}": { + "delete": { + "operationId": "deleteFeature", + "parameters": [ + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "featureId", + "required": true, + "type": "string" + } + ], + "responses": { + "default": { + "description": "successful operation" + } + }, + "tags": [ + "BuildType" + ] + }, + "get": { + "operationId": "getFeature", + "parameters": [ + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "featureId", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/feature" + } + } + }, + "tags": [ + "BuildType" + ] + }, + "put": { + "operationId": "replaceFeature", + "parameters": [ + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "featureId", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/feature" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/feature" + } + } + }, + "tags": [ + "BuildType" + ] + } + }, + "/app/rest/buildTypes/{btLocator}/features/{featureId}/parameters": { + "get": { + "operationId": "getFeatureParameters", + "parameters": [ + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "featureId", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/properties" + } + } + }, + "tags": [ + "BuildType" + ] + }, + "put": { + "operationId": "replaceFeatureParameters", + "parameters": [ + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "featureId", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/properties" + } + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/properties" + } + } + }, + "tags": [ + "BuildType" + ] + } + }, + "/app/rest/buildTypes/{btLocator}/features/{featureId}/parameters/{parameterName}": { + "get": { + "operationId": "getFeatureParameter", + "parameters": [ + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "featureId", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "parameterName", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "string" + } + } + }, + "tags": [ + "BuildType" + ] + }, + "put": { + "operationId": "addFeatureParameter", + "parameters": [ + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "featureId", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "parameterName", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "string" + } + } + }, + "tags": [ + "BuildType" + ] + } + }, + "/app/rest/buildTypes/{btLocator}/features/{featureId}/{name}": { + "get": { + "operationId": "getFeatureSetting", + "parameters": [ + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "featureId", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "name", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "string" + } + } + }, + "tags": [ + "BuildType" + ] + }, + "put": { + "operationId": "changeFeatureSetting", + "parameters": [ + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "featureId", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "name", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "string" + } + } + }, + "tags": [ + "BuildType" + ] + } + }, + "/app/rest/buildTypes/{btLocator}/investigations": { + "get": { + "operationId": "getInvestigations", + "parameters": [ + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/investigations" + } + } + }, + "tags": [ + "BuildType" + ] + } + }, + "/app/rest/buildTypes/{btLocator}/newBuildTypeDescription": { + "get": { + "operationId": "getExampleNewProjectDescriptionCompatibilityVersion1", + "parameters": [ + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/newBuildTypeDescription" + } + } + }, + "tags": [ + "BuildType" + ] + } + }, + "/app/rest/buildTypes/{btLocator}/parameters": { + "delete": { + "operationId": "deleteAllParameters", + "parameters": [ + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "default": { + "description": "successful operation" + } + }, + "tags": [ + "BuildType" + ] + }, + "get": { + "operationId": "getParameters", + "parameters": [ + { + "in": "query", + "name": "locator", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + }, + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/properties" + } + } + }, + "tags": [ + "BuildType" + ] + }, + "post": { + "operationId": "setParameter", + "parameters": [ + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/property" + } + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + }, + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/property" + } + } + }, + "tags": [ + "BuildType" + ] + }, + "put": { + "operationId": "setParameters", + "parameters": [ + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/properties" + } + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + }, + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/properties" + } + } + }, + "tags": [ + "BuildType" + ] + } + }, + "/app/rest/buildTypes/{btLocator}/parameters/{name}": { + "delete": { + "operationId": "deleteParameter", + "parameters": [ + { + "in": "path", + "name": "name", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "default": { + "description": "successful operation" + } + }, + "tags": [ + "BuildType" + ] + }, + "get": { + "operationId": "getParameter", + "parameters": [ + { + "in": "path", + "name": "name", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + }, + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/property" + } + } + }, + "tags": [ + "BuildType" + ] + }, + "put": { + "operationId": "setParameter", + "parameters": [ + { + "in": "path", + "name": "name", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/property" + } + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + }, + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/property" + } + } + }, + "tags": [ + "BuildType" + ] + } + }, + "/app/rest/buildTypes/{btLocator}/parameters/{name}/type": { + "get": { + "operationId": "getParameterType", + "parameters": [ + { + "in": "path", + "name": "name", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/type" + } + } + }, + "tags": [ + "BuildType" + ] + }, + "put": { + "operationId": "setParameterType", + "parameters": [ + { + "in": "path", + "name": "name", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/type" + } + }, + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/type" + } + } + }, + "tags": [ + "BuildType" + ] + } + }, + "/app/rest/buildTypes/{btLocator}/parameters/{name}/type/rawValue": { + "get": { + "operationId": "getParameterTypeRawValue", + "parameters": [ + { + "in": "path", + "name": "name", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "string" + } + } + }, + "tags": [ + "BuildType" + ] + }, + "put": { + "operationId": "setParameterTypeRawValue", + "parameters": [ + { + "in": "path", + "name": "name", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "string" + } + } + }, + "tags": [ + "BuildType" + ] + } + }, + "/app/rest/buildTypes/{btLocator}/parameters/{name}/value": { + "get": { + "operationId": "getParameterValueLong", + "parameters": [ + { + "in": "path", + "name": "name", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "string" + } + } + }, + "tags": [ + "BuildType" + ] + }, + "put": { + "operationId": "setParameterValueLong", + "parameters": [ + { + "in": "path", + "name": "name", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "string" + } + } + }, + "tags": [ + "BuildType" + ] + } + }, + "/app/rest/buildTypes/{btLocator}/settings": { + "delete": { + "operationId": "deleteAllParameters", + "parameters": [ + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "default": { + "description": "successful operation" + } + }, + "tags": [ + "BuildType" + ] + }, + "get": { + "operationId": "getParameters", + "parameters": [ + { + "in": "query", + "name": "locator", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + }, + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/properties" + } + } + }, + "tags": [ + "BuildType" + ] + }, + "post": { + "operationId": "setParameter", + "parameters": [ + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/property" + } + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + }, + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/property" + } + } + }, + "tags": [ + "BuildType" + ] + }, + "put": { + "operationId": "setParameters", + "parameters": [ + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/properties" + } + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + }, + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/properties" + } + } + }, + "tags": [ + "BuildType" + ] + } + }, + "/app/rest/buildTypes/{btLocator}/settings/{name}": { + "delete": { + "operationId": "deleteParameter", + "parameters": [ + { + "in": "path", + "name": "name", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "default": { + "description": "successful operation" + } + }, + "tags": [ + "BuildType" + ] + }, + "get": { + "operationId": "getParameter", + "parameters": [ + { + "in": "path", + "name": "name", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + }, + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/property" + } + } + }, + "tags": [ + "BuildType" + ] + }, + "put": { + "operationId": "setParameter", + "parameters": [ + { + "in": "path", + "name": "name", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/property" + } + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + }, + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/property" + } + } + }, + "tags": [ + "BuildType" + ] + } + }, + "/app/rest/buildTypes/{btLocator}/settings/{name}/value": { + "get": { + "operationId": "getParameterValueLong", + "parameters": [ + { + "in": "path", + "name": "name", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "string" + } + } + }, + "tags": [ + "BuildType" + ] + }, + "put": { + "operationId": "setParameterValueLong", + "parameters": [ + { + "in": "path", + "name": "name", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "string" + } + } + }, + "tags": [ + "BuildType" + ] + } + }, + "/app/rest/buildTypes/{btLocator}/settingsFile": { + "get": { + "operationId": "getSettingsFile", + "parameters": [ + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "string" + } + } + }, + "tags": [ + "BuildType" + ] + } + }, + "/app/rest/buildTypes/{btLocator}/snapshot-dependencies": { + "get": { + "operationId": "getSnapshotDeps", + "parameters": [ + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/snapshot-dependencies" + } + } + }, + "tags": [ + "BuildType" + ] + }, + "post": { + "operationId": "addSnapshotDep", + "parameters": [ + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/snapshot-dependency" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/snapshot-dependency" + } + } + }, + "tags": [ + "BuildType" + ] + }, + "put": { + "operationId": "replaceSnapshotDeps", + "parameters": [ + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/snapshot-dependencies" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/snapshot-dependencies" + } + } + }, + "tags": [ + "BuildType" + ] + } + }, + "/app/rest/buildTypes/{btLocator}/snapshot-dependencies/{snapshotDepLocator}": { + "delete": { + "operationId": "deleteSnapshotDep", + "parameters": [ + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "snapshotDepLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "default": { + "description": "successful operation" + } + }, + "tags": [ + "BuildType" + ] + }, + "get": { + "operationId": "getSnapshotDep", + "parameters": [ + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "snapshotDepLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/snapshot-dependency" + } + } + }, + "tags": [ + "BuildType" + ] + }, + "put": { + "operationId": "replaceSnapshotDep", + "parameters": [ + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "snapshotDepLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/snapshot-dependency" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/snapshot-dependency" + } + } + }, + "tags": [ + "BuildType" + ] + } + }, + "/app/rest/buildTypes/{btLocator}/steps": { + "get": { + "operationId": "getSteps", + "parameters": [ + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/steps" + } + } + }, + "tags": [ + "BuildType" + ] + }, + "post": { + "operationId": "addStep", + "parameters": [ + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/step" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/step" + } + } + }, + "tags": [ + "BuildType" + ] + }, + "put": { + "operationId": "replaceSteps", + "parameters": [ + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/steps" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/steps" + } + } + }, + "tags": [ + "BuildType" + ] + } + }, + "/app/rest/buildTypes/{btLocator}/steps/{stepId}": { + "delete": { + "operationId": "deleteStep", + "parameters": [ + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "stepId", + "required": true, + "type": "string" + } + ], + "responses": { + "default": { + "description": "successful operation" + } + }, + "tags": [ + "BuildType" + ] + }, + "get": { + "operationId": "getStep", + "parameters": [ + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "stepId", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/step" + } + } + }, + "tags": [ + "BuildType" + ] + }, + "put": { + "operationId": "replaceStep", + "parameters": [ + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "stepId", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/step" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/step" + } + } + }, + "tags": [ + "BuildType" + ] + } + }, + "/app/rest/buildTypes/{btLocator}/steps/{stepId}/parameters": { + "get": { + "operationId": "getStepParameters", + "parameters": [ + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "stepId", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/properties" + } + } + }, + "tags": [ + "BuildType" + ] + }, + "put": { + "operationId": "replaceStepParameters", + "parameters": [ + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "stepId", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/properties" + } + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/properties" + } + } + }, + "tags": [ + "BuildType" + ] + } + }, + "/app/rest/buildTypes/{btLocator}/steps/{stepId}/parameters/{parameterName}": { + "get": { + "operationId": "getStepParameter", + "parameters": [ + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "stepId", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "parameterName", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "string" + } + } + }, + "tags": [ + "BuildType" + ] + }, + "put": { + "operationId": "addStepParameter", + "parameters": [ + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "stepId", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "parameterName", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "string" + } + } + }, + "tags": [ + "BuildType" + ] + } + }, + "/app/rest/buildTypes/{btLocator}/steps/{stepId}/{fieldName}": { + "get": { + "operationId": "getStepSetting", + "parameters": [ + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "stepId", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "fieldName", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "string" + } + } + }, + "tags": [ + "BuildType" + ] + }, + "put": { + "operationId": "changeStepSetting", + "parameters": [ + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "stepId", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "fieldName", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "string" + } + } + }, + "tags": [ + "BuildType" + ] + } + }, + "/app/rest/buildTypes/{btLocator}/template": { + "delete": { + "operationId": "deleteTemplateAssociation", + "parameters": [ + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "default": { + "description": "successful operation" + } + }, + "tags": [ + "BuildType" + ] + }, + "get": { + "operationId": "serveBuildTypeTemplate", + "parameters": [ + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/buildType" + } + } + }, + "tags": [ + "BuildType" + ] + }, + "put": { + "operationId": "getTemplateAssociation", + "parameters": [ + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/buildType" + } + } + }, + "tags": [ + "BuildType" + ] + } + }, + "/app/rest/buildTypes/{btLocator}/triggers": { + "get": { + "operationId": "getTriggers", + "parameters": [ + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/triggers" + } + } + }, + "tags": [ + "BuildType" + ] + }, + "post": { + "operationId": "addTrigger", + "parameters": [ + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/trigger" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/trigger" + } + } + }, + "tags": [ + "BuildType" + ] + }, + "put": { + "operationId": "replaceTriggers", + "parameters": [ + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/triggers" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/triggers" + } + } + }, + "tags": [ + "BuildType" + ] + } + }, + "/app/rest/buildTypes/{btLocator}/triggers/{triggerLocator}": { + "delete": { + "operationId": "deleteTrigger", + "parameters": [ + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "triggerLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "default": { + "description": "successful operation" + } + }, + "tags": [ + "BuildType" + ] + }, + "get": { + "operationId": "getTrigger", + "parameters": [ + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "triggerLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/trigger" + } + } + }, + "tags": [ + "BuildType" + ] + }, + "put": { + "operationId": "replaceTrigger", + "parameters": [ + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "triggerLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/trigger" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/trigger" + } + } + }, + "tags": [ + "BuildType" + ] + } + }, + "/app/rest/buildTypes/{btLocator}/triggers/{triggerLocator}/{fieldName}": { + "get": { + "operationId": "getTriggerSetting", + "parameters": [ + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "triggerLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "fieldName", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "string" + } + } + }, + "tags": [ + "BuildType" + ] + }, + "put": { + "operationId": "changeTriggerSetting", + "parameters": [ + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "triggerLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "fieldName", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "string" + } + } + }, + "tags": [ + "BuildType" + ] + } + }, + "/app/rest/buildTypes/{btLocator}/vcs-root-entries": { + "get": { + "operationId": "getVcsRootEntries", + "parameters": [ + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/vcs-root-entries" + } + } + }, + "tags": [ + "BuildType" + ] + }, + "post": { + "operationId": "addVcsRootEntry", + "parameters": [ + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/vcs-root-entry" + } + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/vcs-root-entry" + } + } + }, + "tags": [ + "BuildType" + ] + }, + "put": { + "operationId": "replaceVcsRootEntries", + "parameters": [ + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/vcs-root-entries" + } + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/vcs-root-entries" + } + } + }, + "tags": [ + "BuildType" + ] + } + }, + "/app/rest/buildTypes/{btLocator}/vcs-root-entries/{vcsRootLocator}": { + "delete": { + "operationId": "deleteVcsRootEntry", + "parameters": [ + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "vcsRootLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "default": { + "description": "successful operation" + } + }, + "tags": [ + "BuildType" + ] + }, + "get": { + "operationId": "getVcsRootEntry", + "parameters": [ + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "vcsRootLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/vcs-root-entry" + } + } + }, + "tags": [ + "BuildType" + ] + }, + "put": { + "operationId": "updateVcsRootEntry", + "parameters": [ + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "vcsRootLocator", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/vcs-root-entry" + } + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/vcs-root-entry" + } + } + }, + "tags": [ + "BuildType" + ] + } + }, + "/app/rest/buildTypes/{btLocator}/vcs-root-entries/{vcsRootLocator}/checkout-rules": { + "get": { + "operationId": "getVcsRootEntryCheckoutRules", + "parameters": [ + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "vcsRootLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "string" + } + } + }, + "tags": [ + "BuildType" + ] + }, + "put": { + "operationId": "updateVcsRootEntryCheckoutRules", + "parameters": [ + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "vcsRootLocator", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "string" + } + } + }, + "tags": [ + "BuildType" + ] + } + }, + "/app/rest/buildTypes/{btLocator}/vcs-root-instances": { + "get": { + "operationId": "getCurrentVcsInstances", + "parameters": [ + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/vcs-root-instances" + } + } + }, + "tags": [ + "BuildType" + ] + } + }, + "/app/rest/buildTypes/{btLocator}/vcs/files/latest": { + "get": { + "operationId": "getRoot", + "parameters": [ + { + "in": "query", + "name": "basePath", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "locator", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + }, + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "resolveParameters", + "required": false, + "type": "boolean" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/files" + } + } + }, + "tags": [ + "BuildType" + ] + } + }, + "/app/rest/buildTypes/{btLocator}/vcs/files/latest/archived{path}": { + "get": { + "operationId": "getZipped", + "parameters": [ + { + "in": "path", + "name": "path", + "pattern": "(/.*)?", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "basePath", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "locator", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "name", + "required": false, + "type": "string" + }, + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "resolveParameters", + "required": false, + "type": "boolean" + } + ], + "responses": { + "default": { + "description": "successful operation" + } + }, + "tags": [ + "BuildType" + ] + } + }, + "/app/rest/buildTypes/{btLocator}/vcs/files/latest/children{path}": { + "get": { + "operationId": "getChildren", + "parameters": [ + { + "in": "path", + "name": "path", + "pattern": "(/.*)?", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "basePath", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "locator", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + }, + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "resolveParameters", + "required": false, + "type": "boolean" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/files" + } + } + }, + "tags": [ + "BuildType" + ] + } + }, + "/app/rest/buildTypes/{btLocator}/vcs/files/latest/content{path}": { + "get": { + "operationId": "getContent", + "parameters": [ + { + "in": "path", + "name": "path", + "pattern": "(/.*)?", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "resolveParameters", + "required": false, + "type": "boolean" + } + ], + "responses": { + "default": { + "description": "successful operation" + } + }, + "tags": [ + "BuildType" + ] + } + }, + "/app/rest/buildTypes/{btLocator}/vcs/files/latest/files{path}": { + "get": { + "operationId": "getContentAlias", + "parameters": [ + { + "in": "path", + "name": "path", + "pattern": "(/.*)?", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "resolveParameters", + "required": false, + "type": "boolean" + } + ], + "responses": { + "default": { + "description": "successful operation" + } + }, + "tags": [ + "BuildType" + ] + } + }, + "/app/rest/buildTypes/{btLocator}/vcs/files/latest/metadata{path}": { + "get": { + "operationId": "getMetadata", + "parameters": [ + { + "in": "path", + "name": "path", + "pattern": "(/.*)?", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + }, + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "resolveParameters", + "required": false, + "type": "boolean" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/file" + } + } + }, + "tags": [ + "BuildType" + ] + } + }, + "/app/rest/buildTypes/{btLocator}/vcs/files/latest/{path}": { + "get": { + "operationId": "getChildrenAlias", + "parameters": [ + { + "in": "path", + "name": "path", + "pattern": "(.*)?", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "basePath", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "locator", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + }, + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "resolveParameters", + "required": false, + "type": "boolean" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/files" + } + } + }, + "tags": [ + "BuildType" + ] + } + }, + "/app/rest/buildTypes/{btLocator}/vcsLabeling": { + "get": { + "operationId": "getVCSLabelingOptions", + "parameters": [ + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/vcsLabeling" + } + } + }, + "tags": [ + "BuildType" + ] + }, + "put": { + "operationId": "setVCSLabelingOptions", + "parameters": [ + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/vcsLabeling" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/vcsLabeling" + } + } + }, + "tags": [ + "BuildType" + ] + } + }, + "/app/rest/buildTypes/{btLocator}/{field}": { + "get": { + "operationId": "serveBuildTypeField", + "parameters": [ + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "field", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "string" + } + } + }, + "tags": [ + "BuildType" + ] + }, + "put": { + "operationId": "setBuildTypeField", + "parameters": [ + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "field", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "string" + } + } + }, + "tags": [ + "BuildType" + ] + } + }, + "/app/rest/builds": { + "delete": { + "operationId": "deleteBuilds", + "parameters": [ + { + "in": "query", + "name": "locator", + "required": false, + "type": "string" + } + ], + "responses": { + "default": { + "description": "successful operation" + } + }, + "tags": [ + "Build" + ] + }, + "get": { + "operationId": "serveAllBuilds", + "parameters": [ + { + "in": "query", + "name": "buildType", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "status", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "triggeredByUser", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "includePersonal", + "required": false, + "type": "boolean" + }, + { + "in": "query", + "name": "includeCanceled", + "required": false, + "type": "boolean" + }, + { + "in": "query", + "name": "onlyPinned", + "required": false, + "type": "boolean" + }, + { + "collectionFormat": "multi", + "in": "query", + "items": { + "type": "string" + }, + "name": "tag", + "required": false, + "type": "array" + }, + { + "in": "query", + "name": "agentName", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "sinceBuild", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "sinceDate", + "required": false, + "type": "string" + }, + { + "format": "int64", + "in": "query", + "name": "start", + "required": false, + "type": "integer" + }, + { + "format": "int32", + "in": "query", + "name": "count", + "required": false, + "type": "integer" + }, + { + "in": "query", + "name": "locator", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/builds" + } + } + }, + "tags": [ + "Build" + ] + } + }, + "/app/rest/builds/aggregated/{buildLocator}/status": { + "get": { + "operationId": "serveAggregatedBuildStatus", + "parameters": [ + { + "in": "path", + "name": "buildLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "string" + } + } + }, + "tags": [ + "Build" + ] + } + }, + "/app/rest/builds/aggregated/{buildLocator}/statusIcon{suffix}": { + "get": { + "operationId": "serveAggregatedBuildStatusIcon", + "parameters": [ + { + "in": "path", + "name": "buildLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "suffix", + "pattern": "(.*)?", + "required": true, + "type": "string" + } + ], + "responses": { + "default": { + "description": "successful operation" + } + }, + "tags": [ + "Build" + ] + } + }, + "/app/rest/builds/{buildLocator}": { + "delete": { + "operationId": "deleteBuild", + "parameters": [ + { + "in": "path", + "name": "buildLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "default": { + "description": "successful operation" + } + }, + "tags": [ + "Build" + ] + }, + "get": { + "operationId": "serveBuild", + "parameters": [ + { + "in": "path", + "name": "buildLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/build" + } + } + }, + "tags": [ + "Build" + ] + }, + "post": { + "operationId": "cancelBuild", + "parameters": [ + { + "in": "path", + "name": "buildLocator", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/buildCancelRequest" + } + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/build" + } + } + }, + "tags": [ + "Build" + ] + } + }, + "/app/rest/builds/{buildLocator}/artifacts": { + "get": { + "operationId": "getRoot", + "parameters": [ + { + "in": "query", + "name": "basePath", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "locator", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + }, + { + "in": "path", + "name": "buildLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "resolveParameters", + "required": false, + "type": "boolean" + }, + { + "in": "query", + "name": "logBuildUsage", + "required": false, + "type": "boolean" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/files" + } + } + }, + "tags": [ + "Build" + ] + } + }, + "/app/rest/builds/{buildLocator}/artifacts/archived{path}": { + "get": { + "operationId": "getZipped", + "parameters": [ + { + "in": "path", + "name": "path", + "pattern": "(/.*)?", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "basePath", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "locator", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "name", + "required": false, + "type": "string" + }, + { + "in": "path", + "name": "buildLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "resolveParameters", + "required": false, + "type": "boolean" + }, + { + "in": "query", + "name": "logBuildUsage", + "required": false, + "type": "boolean" + } + ], + "responses": { + "default": { + "description": "successful operation" + } + }, + "tags": [ + "Build" + ] + } + }, + "/app/rest/builds/{buildLocator}/artifacts/children{path}": { + "get": { + "operationId": "getChildren", + "parameters": [ + { + "in": "path", + "name": "path", + "pattern": "(/.*)?", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "basePath", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "locator", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + }, + { + "in": "path", + "name": "buildLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "resolveParameters", + "required": false, + "type": "boolean" + }, + { + "in": "query", + "name": "logBuildUsage", + "required": false, + "type": "boolean" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/files" + } + } + }, + "tags": [ + "Build" + ] + } + }, + "/app/rest/builds/{buildLocator}/artifacts/content{path}": { + "get": { + "operationId": "getContent", + "parameters": [ + { + "in": "path", + "name": "path", + "pattern": "(/.*)?", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "buildLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "resolveParameters", + "required": false, + "type": "boolean" + }, + { + "in": "query", + "name": "logBuildUsage", + "required": false, + "type": "boolean" + } + ], + "responses": { + "default": { + "description": "successful operation" + } + }, + "tags": [ + "Build" + ] + } + }, + "/app/rest/builds/{buildLocator}/artifacts/files{path}": { + "get": { + "operationId": "getContentAlias", + "parameters": [ + { + "in": "path", + "name": "path", + "pattern": "(/.*)?", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "buildLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "resolveParameters", + "required": false, + "type": "boolean" + }, + { + "in": "query", + "name": "logBuildUsage", + "required": false, + "type": "boolean" + } + ], + "responses": { + "default": { + "description": "successful operation" + } + }, + "tags": [ + "Build" + ] + } + }, + "/app/rest/builds/{buildLocator}/artifacts/metadata{path}": { + "get": { + "operationId": "getMetadata", + "parameters": [ + { + "in": "path", + "name": "path", + "pattern": "(/.*)?", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + }, + { + "in": "path", + "name": "buildLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "resolveParameters", + "required": false, + "type": "boolean" + }, + { + "in": "query", + "name": "logBuildUsage", + "required": false, + "type": "boolean" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/file" + } + } + }, + "tags": [ + "Build" + ] + } + }, + "/app/rest/builds/{buildLocator}/artifacts/{path}": { + "get": { + "operationId": "getChildrenAlias", + "parameters": [ + { + "in": "path", + "name": "path", + "pattern": "(.*)?", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "basePath", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "locator", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + }, + { + "in": "path", + "name": "buildLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "resolveParameters", + "required": false, + "type": "boolean" + }, + { + "in": "query", + "name": "logBuildUsage", + "required": false, + "type": "boolean" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/files" + } + } + }, + "tags": [ + "Build" + ] + } + }, + "/app/rest/builds/{buildLocator}/artifactsDirectory": { + "get": { + "operationId": "getArtifactsDirectory", + "parameters": [ + { + "in": "path", + "name": "buildLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "string" + } + } + }, + "tags": [ + "Build" + ] + } + }, + "/app/rest/builds/{buildLocator}/canceledInfo": { + "get": { + "operationId": "getCanceledInfo", + "parameters": [ + { + "in": "path", + "name": "buildLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/comment" + } + } + }, + "tags": [ + "Build" + ] + } + }, + "/app/rest/builds/{buildLocator}/comment": { + "delete": { + "operationId": "deleteComment", + "parameters": [ + { + "in": "path", + "name": "buildLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "default": { + "description": "successful operation" + } + }, + "tags": [ + "Build" + ] + }, + "put": { + "operationId": "replaceComment", + "parameters": [ + { + "in": "path", + "name": "buildLocator", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "default": { + "description": "successful operation" + } + }, + "tags": [ + "Build" + ] + } + }, + "/app/rest/builds/{buildLocator}/example/buildCancelRequest": { + "get": { + "operationId": "cancelBuild", + "parameters": [ + { + "in": "path", + "name": "buildLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/buildCancelRequest" + } + } + }, + "tags": [ + "Build" + ] + } + }, + "/app/rest/builds/{buildLocator}/pin": { + "delete": { + "operationId": "unpinBuild", + "parameters": [ + { + "in": "path", + "name": "buildLocator", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "default": { + "description": "successful operation" + } + }, + "tags": [ + "Build" + ] + }, + "get": { + "operationId": "getPinned", + "parameters": [ + { + "in": "path", + "name": "buildLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "string" + } + } + }, + "tags": [ + "Build" + ] + }, + "put": { + "operationId": "pinBuild", + "parameters": [ + { + "in": "path", + "name": "buildLocator", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "default": { + "description": "successful operation" + } + }, + "tags": [ + "Build" + ] + } + }, + "/app/rest/builds/{buildLocator}/problemOccurrences": { + "get": { + "operationId": "getProblems", + "parameters": [ + { + "in": "path", + "name": "buildLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/problemOccurrences" + } + } + }, + "tags": [ + "Build" + ] + } + }, + "/app/rest/builds/{buildLocator}/related-issues": { + "get": { + "operationId": "serveBuildRelatedIssuesOld", + "parameters": [ + { + "in": "path", + "name": "buildLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/issuesUsages" + } + } + }, + "tags": [ + "Build" + ] + } + }, + "/app/rest/builds/{buildLocator}/relatedIssues": { + "get": { + "operationId": "serveBuildRelatedIssues", + "parameters": [ + { + "in": "path", + "name": "buildLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/issuesUsages" + } + } + }, + "tags": [ + "Build" + ] + } + }, + "/app/rest/builds/{buildLocator}/resulting-properties": { + "get": { + "operationId": "serveBuildActualParameters", + "parameters": [ + { + "in": "path", + "name": "buildLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/properties" + } + } + }, + "tags": [ + "Build" + ] + } + }, + "/app/rest/builds/{buildLocator}/resulting-properties/{propertyName}": { + "get": { + "operationId": "getParameter", + "parameters": [ + { + "in": "path", + "name": "buildLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "propertyName", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "string" + } + } + }, + "tags": [ + "Build" + ] + } + }, + "/app/rest/builds/{buildLocator}/sources/files/{fileName}": { + "get": { + "operationId": "serveSourceFile", + "parameters": [ + { + "in": "path", + "name": "buildLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "fileName", + "pattern": ".+", + "required": true, + "type": "string" + } + ], + "responses": { + "default": { + "description": "successful operation" + } + }, + "tags": [ + "Build" + ] + } + }, + "/app/rest/builds/{buildLocator}/statistics": { + "get": { + "operationId": "serveBuildStatisticValues", + "parameters": [ + { + "in": "path", + "name": "buildLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/properties" + } + } + }, + "tags": [ + "Build" + ] + } + }, + "/app/rest/builds/{buildLocator}/statistics/{name}": { + "get": { + "operationId": "serveBuildStatisticValue", + "parameters": [ + { + "in": "path", + "name": "buildLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "name", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "string" + } + } + }, + "tags": [ + "Build" + ] + } + }, + "/app/rest/builds/{buildLocator}/statusIcon{suffix}": { + "get": { + "operationId": "serveBuildStatusIcon", + "parameters": [ + { + "in": "path", + "name": "buildLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "suffix", + "pattern": "(.*)?", + "required": true, + "type": "string" + } + ], + "responses": { + "default": { + "description": "successful operation" + } + }, + "tags": [ + "Build" + ] + } + }, + "/app/rest/builds/{buildLocator}/tags": { + "get": { + "operationId": "serveTags", + "parameters": [ + { + "in": "path", + "name": "buildLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "locator", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/tags" + } + } + }, + "tags": [ + "Build" + ] + }, + "post": { + "operationId": "addTags", + "parameters": [ + { + "in": "path", + "name": "buildLocator", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/tags" + } + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/tags" + } + } + }, + "tags": [ + "Build" + ] + }, + "put": { + "operationId": "replaceTags", + "parameters": [ + { + "in": "path", + "name": "buildLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "locator", + "required": false, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/tags" + } + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/tags" + } + } + }, + "tags": [ + "Build" + ] + } + }, + "/app/rest/builds/{buildLocator}/testOccurrences": { + "get": { + "operationId": "getTests", + "parameters": [ + { + "in": "path", + "name": "buildLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/testOccurrences" + } + } + }, + "tags": [ + "Build" + ] + } + }, + "/app/rest/builds/{buildLocator}/{field}": { + "get": { + "operationId": "serveBuildFieldByBuildOnly", + "parameters": [ + { + "in": "path", + "name": "buildLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "field", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "string" + } + } + }, + "tags": [ + "Build" + ] + } + }, + "/app/rest/changes": { + "get": { + "operationId": "serveChanges", + "parameters": [ + { + "in": "query", + "name": "project", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "buildType", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "build", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "vcsRoot", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "sinceChange", + "required": false, + "type": "string" + }, + { + "format": "int64", + "in": "query", + "name": "start", + "required": false, + "type": "integer" + }, + { + "format": "int32", + "in": "query", + "name": "count", + "required": false, + "type": "integer" + }, + { + "in": "query", + "name": "locator", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/changes" + } + } + }, + "tags": [ + "Change" + ] + } + }, + "/app/rest/changes/{changeLocator}": { + "get": { + "operationId": "serveChange", + "parameters": [ + { + "in": "path", + "name": "changeLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/change" + } + } + }, + "tags": [ + "Change" + ] + } + }, + "/app/rest/changes/{changeLocator}/attributes": { + "get": { + "operationId": "getChangeAttributes", + "parameters": [ + { + "in": "path", + "name": "changeLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/entries" + } + } + }, + "tags": [ + "Change" + ] + } + }, + "/app/rest/changes/{changeLocator}/buildTypes": { + "get": { + "operationId": "getRelatedBuildTypes", + "parameters": [ + { + "in": "path", + "name": "changeLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/buildTypes" + } + } + }, + "tags": [ + "Change" + ] + } + }, + "/app/rest/changes/{changeLocator}/duplicates": { + "get": { + "operationId": "getChangeDuplicates", + "parameters": [ + { + "in": "path", + "name": "changeLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/changes" + } + } + }, + "tags": [ + "Change" + ] + } + }, + "/app/rest/changes/{changeLocator}/firstBuilds": { + "get": { + "operationId": "getChangeFirstBuilds", + "parameters": [ + { + "in": "path", + "name": "changeLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/builds" + } + } + }, + "tags": [ + "Change" + ] + } + }, + "/app/rest/changes/{changeLocator}/issues": { + "get": { + "operationId": "getChangeIssue", + "parameters": [ + { + "in": "path", + "name": "changeLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/issues" + } + } + }, + "tags": [ + "Change" + ] + } + }, + "/app/rest/changes/{changeLocator}/parentChanges": { + "get": { + "operationId": "getParentChanges", + "parameters": [ + { + "in": "path", + "name": "changeLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/changes" + } + } + }, + "tags": [ + "Change" + ] + } + }, + "/app/rest/changes/{changeLocator}/parentRevisions": { + "get": { + "operationId": "getChangeParentRevisions", + "parameters": [ + { + "in": "path", + "name": "changeLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/items" + } + } + }, + "tags": [ + "Change" + ] + } + }, + "/app/rest/changes/{changeLocator}/vcsRoot": { + "get": { + "operationId": "getChangeVCSRoot", + "parameters": [ + { + "in": "path", + "name": "changeLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/vcs-root-instance" + } + } + }, + "tags": [ + "Change" + ] + } + }, + "/app/rest/changes/{changeLocator}/vcsRootInstance": { + "get": { + "operationId": "getChangeVCSRootInstance", + "parameters": [ + { + "in": "path", + "name": "changeLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/vcs-root-instance" + } + } + }, + "tags": [ + "Change" + ] + } + }, + "/app/rest/changes/{changeLocator}/{field}": { + "get": { + "operationId": "getChangeField", + "parameters": [ + { + "in": "path", + "name": "changeLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "field", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "string" + } + } + }, + "tags": [ + "Change" + ] + } + }, + "/app/rest/debug/currentRequest/details": { + "get": { + "operationId": "getRequestDetails", + "parameters": [], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "string" + } + } + }, + "tags": [ + "Debug" + ] + } + }, + "/app/rest/debug/currentRequest/rememberMe": { + "delete": { + "operationId": "deleteCurrentRememberMe", + "parameters": [], + "responses": { + "default": { + "description": "successful operation" + } + }, + "tags": [ + "Debug" + ] + }, + "post": { + "operationId": "newRememberMe", + "parameters": [], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "string" + } + } + }, + "tags": [ + "Debug" + ] + } + }, + "/app/rest/debug/currentRequest/session": { + "delete": { + "operationId": "invalidateCurrentSession", + "parameters": [], + "responses": { + "default": { + "description": "successful operation" + } + }, + "tags": [ + "Debug" + ] + }, + "get": { + "operationId": "getCurrentSession", + "parameters": [ + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/session" + } + } + }, + "tags": [ + "Debug" + ] + } + }, + "/app/rest/debug/currentRequest/session/maxInactiveSeconds": { + "get": { + "operationId": "getCurrentSessionMaxInactiveInterval", + "parameters": [], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "string" + } + } + }, + "tags": [ + "Debug" + ] + }, + "put": { + "operationId": "setCurrentSessionMaxInactiveInterval", + "parameters": [ + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "string" + } + } + }, + "tags": [ + "Debug" + ] + } + }, + "/app/rest/debug/currentUserPermissions": { + "get": { + "operationId": "getCurrentUserPermissions", + "parameters": [], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "string" + } + } + }, + "tags": [ + "Debug" + ] + } + }, + "/app/rest/debug/database/query/{query}": { + "get": { + "operationId": "executeDBQuery", + "parameters": [ + { + "in": "path", + "name": "query", + "required": true, + "type": "string" + }, + { + "default": ", ", + "in": "query", + "name": "fieldDelimiter", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "dataRetrieveQuery", + "required": false, + "type": "string" + }, + { + "default": 1000, + "format": "int32", + "in": "query", + "name": "count", + "required": false, + "type": "integer" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "string" + } + } + }, + "tags": [ + "Debug" + ] + } + }, + "/app/rest/debug/database/tables": { + "get": { + "operationId": "listDBTables", + "parameters": [], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "string" + } + } + }, + "tags": [ + "Debug" + ] + } + }, + "/app/rest/debug/date/{dateLocator}": { + "get": { + "operationId": "getDate", + "parameters": [ + { + "in": "path", + "name": "dateLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "format", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "timezone", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "string" + } + } + }, + "tags": [ + "Debug" + ] + } + }, + "/app/rest/debug/emptyTask": { + "post": { + "operationId": "emptyTask", + "parameters": [ + { + "in": "query", + "name": "time", + "required": false, + "type": "string" + }, + { + "format": "int32", + "in": "query", + "name": "load", + "required": false, + "type": "integer" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "string" + } + } + }, + "tags": [ + "Debug" + ] + } + }, + "/app/rest/debug/jvm/environmentVariables": { + "get": { + "operationId": "getEnvironmentVariables", + "parameters": [ + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/properties" + } + } + }, + "tags": [ + "Debug" + ] + } + }, + "/app/rest/debug/jvm/systemProperties": { + "get": { + "operationId": "getSystemProperties", + "parameters": [ + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/properties" + } + } + }, + "tags": [ + "Debug" + ] + } + }, + "/app/rest/debug/memory/dumps": { + "post": { + "operationId": "saveMemoryDump", + "parameters": [ + { + "in": "query", + "name": "archived", + "required": false, + "type": "boolean" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "string" + } + } + }, + "tags": [ + "Debug" + ] + } + }, + "/app/rest/debug/sessions": { + "get": { + "operationId": "getSessions", + "parameters": [ + { + "format": "int64", + "in": "query", + "name": "manager", + "required": false, + "type": "integer" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/sessions" + } + } + }, + "tags": [ + "Debug" + ] + } + }, + "/app/rest/debug/threadDump": { + "get": { + "operationId": "getThreadDump", + "parameters": [ + { + "in": "query", + "name": "lockedMonitors", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "lockedSynchronizers", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "detectLocks", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "string" + } + } + }, + "tags": [ + "Debug" + ] + } + }, + "/app/rest/debug/values/password/scrambled": { + "get": { + "operationId": "getScrambled", + "parameters": [ + { + "in": "query", + "name": "value", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "string" + } + } + }, + "tags": [ + "Debug" + ] + } + }, + "/app/rest/debug/values/password/unscrambled": { + "get": { + "operationId": "getUnscrambled", + "parameters": [ + { + "in": "query", + "name": "value", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "string" + } + } + }, + "tags": [ + "Debug" + ] + } + }, + "/app/rest/debug/values/transform/{method}": { + "get": { + "operationId": "getHashed", + "parameters": [ + { + "in": "path", + "name": "method", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "value", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "string" + } + } + }, + "tags": [ + "Debug" + ] + } + }, + "/app/rest/debug/vcsCheckingForChangesQueue": { + "post": { + "operationId": "scheduleCheckingForChanges", + "parameters": [ + { + "in": "query", + "name": "locator", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "requestor", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/vcs-root-instances" + } + } + }, + "tags": [ + "Debug" + ] + } + }, + "/app/rest/federation/servers": { + "get": { + "operationId": "servers", + "parameters": [ + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/servers" + } + } + }, + "tags": [ + "Federation" + ] + }, + "put": { + "operationId": "addServer", + "parameters": [ + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/servers" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/servers" + } + } + }, + "tags": [ + "Federation" + ] + } + }, + "/app/rest/info": { + "get": { + "operationId": "servePluginInfo", + "parameters": [ + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/plugin" + } + } + }, + "security": [ + { + "none": [] + } + ] + } + }, + "/app/rest/investigations": { + "get": { + "operationId": "getInvestigations", + "parameters": [ + { + "in": "query", + "name": "locator", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/investigations" + } + } + }, + "tags": [ + "Investigation" + ] + } + }, + "/app/rest/investigations/{investigationLocator}": { + "get": { + "operationId": "serveInstance", + "parameters": [ + { + "in": "path", + "name": "investigationLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/investigation" + } + } + }, + "tags": [ + "Investigation" + ] + } + }, + "/app/rest/problemOccurrences": { + "get": { + "operationId": "getProblems", + "parameters": [ + { + "in": "query", + "name": "locator", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/problemOccurrences" + } + } + }, + "tags": [ + "ProblemOccurrence" + ] + } + }, + "/app/rest/problemOccurrences/{problemLocator}": { + "get": { + "operationId": "serveInstance", + "parameters": [ + { + "in": "path", + "name": "problemLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/problemOccurrence" + } + } + }, + "tags": [ + "ProblemOccurrence" + ] + } + }, + "/app/rest/problems": { + "get": { + "operationId": "getProblems", + "parameters": [ + { + "in": "query", + "name": "locator", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/problems" + } + } + }, + "tags": [ + "Problem" + ] + } + }, + "/app/rest/problems/{problemLocator}": { + "get": { + "operationId": "serveInstance", + "parameters": [ + { + "in": "path", + "name": "problemLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/problem" + } + } + }, + "tags": [ + "Problem" + ] + } + }, + "/app/rest/projects": { + "get": { + "operationId": "serveProjects", + "parameters": [ + { + "in": "query", + "name": "locator", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/projects" + } + } + }, + "tags": [ + "Project" + ] + }, + "post": { + "operationId": "createProject", + "parameters": [ + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/newProjectDescription" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/project" + } + } + }, + "tags": [ + "Project" + ] + } + }, + "/app/rest/projects/{projectLocator}": { + "delete": { + "operationId": "deleteProject", + "parameters": [ + { + "in": "path", + "name": "projectLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "default": { + "description": "successful operation" + } + }, + "tags": [ + "Project" + ] + }, + "get": { + "operationId": "serveProject", + "parameters": [ + { + "in": "path", + "name": "projectLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/project" + } + } + }, + "tags": [ + "Project" + ] + } + }, + "/app/rest/projects/{projectLocator}/agentPools": { + "get": { + "operationId": "getProjectAgentPools", + "parameters": [ + { + "in": "path", + "name": "projectLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/agentPools" + } + } + }, + "tags": [ + "Project" + ] + }, + "post": { + "operationId": "setProjectAgentPools", + "parameters": [ + { + "in": "path", + "name": "projectLocator", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/agentPool" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/agentPool" + } + } + }, + "tags": [ + "Project" + ] + }, + "put": { + "operationId": "setProjectAgentPools", + "parameters": [ + { + "in": "path", + "name": "projectLocator", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/agentPools" + } + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/agentPools" + } + } + }, + "tags": [ + "Project" + ] + } + }, + "/app/rest/projects/{projectLocator}/agentPools/{agentPoolLocator}": { + "delete": { + "operationId": "deleteProjectAgentPools", + "parameters": [ + { + "in": "path", + "name": "projectLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "agentPoolLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "default": { + "description": "successful operation" + } + }, + "tags": [ + "Project" + ] + } + }, + "/app/rest/projects/{projectLocator}/buildTypes": { + "get": { + "operationId": "serveBuildTypesInProject", + "parameters": [ + { + "in": "path", + "name": "projectLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/buildTypes" + } + } + }, + "tags": [ + "Project" + ] + }, + "post": { + "operationId": "createBuildType", + "parameters": [ + { + "in": "path", + "name": "projectLocator", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/newBuildTypeDescription" + } + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/buildType" + } + } + }, + "tags": [ + "Project" + ] + } + }, + "/app/rest/projects/{projectLocator}/buildTypes/{btLocator}": { + "get": { + "operationId": "serveBuildType", + "parameters": [ + { + "in": "path", + "name": "projectLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/buildType" + } + } + }, + "tags": [ + "Project" + ] + } + }, + "/app/rest/projects/{projectLocator}/buildTypes/{btLocator}/builds": { + "get": { + "operationId": "serveBuilds", + "parameters": [ + { + "in": "path", + "name": "projectLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "status", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "triggeredByUser", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "includePersonal", + "required": false, + "type": "boolean" + }, + { + "in": "query", + "name": "includeCanceled", + "required": false, + "type": "boolean" + }, + { + "in": "query", + "name": "onlyPinned", + "required": false, + "type": "boolean" + }, + { + "collectionFormat": "multi", + "in": "query", + "items": { + "type": "string" + }, + "name": "tag", + "required": false, + "type": "array" + }, + { + "in": "query", + "name": "agentName", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "sinceBuild", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "sinceDate", + "required": false, + "type": "string" + }, + { + "format": "int64", + "in": "query", + "name": "start", + "required": false, + "type": "integer" + }, + { + "format": "int32", + "in": "query", + "name": "count", + "required": false, + "type": "integer" + }, + { + "in": "query", + "name": "locator", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/builds" + } + } + }, + "tags": [ + "Project" + ] + } + }, + "/app/rest/projects/{projectLocator}/buildTypes/{btLocator}/builds/{buildLocator}": { + "get": { + "operationId": "serveBuildWithProject", + "parameters": [ + { + "in": "path", + "name": "projectLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "buildLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/build" + } + } + }, + "tags": [ + "Project" + ] + } + }, + "/app/rest/projects/{projectLocator}/buildTypes/{btLocator}/builds/{buildLocator}/{field}": { + "get": { + "operationId": "serveBuildFieldWithProject", + "parameters": [ + { + "in": "path", + "name": "projectLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "buildLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "field", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "string" + } + } + }, + "tags": [ + "Project" + ] + } + }, + "/app/rest/projects/{projectLocator}/buildTypes/{btLocator}/{field}": { + "get": { + "operationId": "serveBuildTypeFieldWithProject", + "parameters": [ + { + "in": "path", + "name": "projectLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "field", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "string" + } + } + }, + "tags": [ + "Project" + ] + } + }, + "/app/rest/projects/{projectLocator}/example/newProjectDescription": { + "get": { + "operationId": "getExampleNewProjectDescription", + "parameters": [ + { + "in": "path", + "name": "projectLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "id", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/newProjectDescription" + } + } + }, + "tags": [ + "Project" + ] + } + }, + "/app/rest/projects/{projectLocator}/latest": { + "get": { + "operationId": "reloadSettingsFile", + "parameters": [ + { + "in": "path", + "name": "projectLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/project" + } + } + }, + "tags": [ + "Project" + ] + } + }, + "/app/rest/projects/{projectLocator}/newProjectDescription": { + "get": { + "operationId": "getExampleNewProjectDescriptionCompatibilityVersion1", + "parameters": [ + { + "in": "path", + "name": "projectLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "id", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/newProjectDescription" + } + } + }, + "tags": [ + "Project" + ] + } + }, + "/app/rest/projects/{projectLocator}/order/buildTypes": { + "get": { + "operationId": "getBuildTypesOrder", + "parameters": [ + { + "in": "path", + "name": "projectLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "field", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/buildTypes" + } + } + }, + "tags": [ + "Project" + ] + }, + "put": { + "operationId": "setBuildTypesOrder", + "parameters": [ + { + "in": "path", + "name": "projectLocator", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/buildTypes" + } + }, + { + "in": "path", + "name": "field", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/buildTypes" + } + } + }, + "tags": [ + "Project" + ] + } + }, + "/app/rest/projects/{projectLocator}/order/projects": { + "get": { + "operationId": "getProjectsOrder", + "parameters": [ + { + "in": "path", + "name": "projectLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "field", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/projects" + } + } + }, + "tags": [ + "Project" + ] + }, + "put": { + "operationId": "setProjectsOrder", + "parameters": [ + { + "in": "path", + "name": "projectLocator", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/projects" + } + }, + { + "in": "path", + "name": "field", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/projects" + } + } + }, + "tags": [ + "Project" + ] + } + }, + "/app/rest/projects/{projectLocator}/parameters": { + "delete": { + "operationId": "deleteAllParameters", + "parameters": [ + { + "in": "path", + "name": "projectLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "default": { + "description": "successful operation" + } + }, + "tags": [ + "Project" + ] + }, + "get": { + "operationId": "getParameters", + "parameters": [ + { + "in": "query", + "name": "locator", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + }, + { + "in": "path", + "name": "projectLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/properties" + } + } + }, + "tags": [ + "Project" + ] + }, + "post": { + "operationId": "setParameter", + "parameters": [ + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/property" + } + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + }, + { + "in": "path", + "name": "projectLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/property" + } + } + }, + "tags": [ + "Project" + ] + }, + "put": { + "operationId": "setParameters", + "parameters": [ + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/properties" + } + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + }, + { + "in": "path", + "name": "projectLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/properties" + } + } + }, + "tags": [ + "Project" + ] + } + }, + "/app/rest/projects/{projectLocator}/parameters/{name}": { + "delete": { + "operationId": "deleteParameter", + "parameters": [ + { + "in": "path", + "name": "name", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "projectLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "default": { + "description": "successful operation" + } + }, + "tags": [ + "Project" + ] + }, + "get": { + "operationId": "getParameter", + "parameters": [ + { + "in": "path", + "name": "name", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + }, + { + "in": "path", + "name": "projectLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/property" + } + } + }, + "tags": [ + "Project" + ] + }, + "put": { + "operationId": "setParameter", + "parameters": [ + { + "in": "path", + "name": "name", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/property" + } + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + }, + { + "in": "path", + "name": "projectLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/property" + } + } + }, + "tags": [ + "Project" + ] + } + }, + "/app/rest/projects/{projectLocator}/parameters/{name}/type": { + "get": { + "operationId": "getParameterType", + "parameters": [ + { + "in": "path", + "name": "name", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "projectLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/type" + } + } + }, + "tags": [ + "Project" + ] + }, + "put": { + "operationId": "setParameterType", + "parameters": [ + { + "in": "path", + "name": "name", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/type" + } + }, + { + "in": "path", + "name": "projectLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/type" + } + } + }, + "tags": [ + "Project" + ] + } + }, + "/app/rest/projects/{projectLocator}/parameters/{name}/type/rawValue": { + "get": { + "operationId": "getParameterTypeRawValue", + "parameters": [ + { + "in": "path", + "name": "name", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "projectLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "string" + } + } + }, + "tags": [ + "Project" + ] + }, + "put": { + "operationId": "setParameterTypeRawValue", + "parameters": [ + { + "in": "path", + "name": "name", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "projectLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "string" + } + } + }, + "tags": [ + "Project" + ] + } + }, + "/app/rest/projects/{projectLocator}/parameters/{name}/value": { + "get": { + "operationId": "getParameterValueLong", + "parameters": [ + { + "in": "path", + "name": "name", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "projectLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "string" + } + } + }, + "tags": [ + "Project" + ] + }, + "put": { + "operationId": "setParameterValueLong", + "parameters": [ + { + "in": "path", + "name": "name", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "projectLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "string" + } + } + }, + "tags": [ + "Project" + ] + } + }, + "/app/rest/projects/{projectLocator}/parentProject": { + "get": { + "operationId": "getParentProject", + "parameters": [ + { + "in": "path", + "name": "projectLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/project" + } + } + }, + "tags": [ + "Project" + ] + }, + "put": { + "operationId": "setParentProject", + "parameters": [ + { + "in": "path", + "name": "projectLocator", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/project" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/project" + } + } + }, + "tags": [ + "Project" + ] + } + }, + "/app/rest/projects/{projectLocator}/projectFeatures": { + "get": { + "operationId": "get", + "parameters": [ + { + "in": "query", + "name": "locator", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + }, + { + "in": "path", + "name": "projectLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "object" + } + } + }, + "tags": [ + "Project" + ] + }, + "post": { + "operationId": "add", + "parameters": [ + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/projectFeature" + } + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + }, + { + "in": "path", + "name": "projectLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "object" + } + } + }, + "tags": [ + "Project" + ] + }, + "put": { + "operationId": "replaceAll", + "parameters": [ + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/projectFeatures" + } + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + }, + { + "in": "path", + "name": "projectLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "object" + } + } + }, + "tags": [ + "Project" + ] + } + }, + "/app/rest/projects/{projectLocator}/projectFeatures/{featureLocator}": { + "delete": { + "operationId": "delete", + "parameters": [ + { + "in": "path", + "name": "featureLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "projectLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "default": { + "description": "successful operation" + } + }, + "tags": [ + "Project" + ] + }, + "get": { + "operationId": "getSingle", + "parameters": [ + { + "in": "path", + "name": "featureLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + }, + { + "in": "path", + "name": "projectLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "object" + } + } + }, + "tags": [ + "Project" + ] + }, + "put": { + "operationId": "replace", + "parameters": [ + { + "in": "path", + "name": "featureLocator", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/projectFeature" + } + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + }, + { + "in": "path", + "name": "projectLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "object" + } + } + }, + "tags": [ + "Project" + ] + } + }, + "/app/rest/projects/{projectLocator}/projectFeatures/{featureLocator}/properties": { + "delete": { + "operationId": "deleteAllParameters", + "parameters": [ + { + "in": "path", + "name": "featureLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + }, + { + "in": "path", + "name": "projectLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "default": { + "description": "successful operation" + } + }, + "tags": [ + "Project" + ] + }, + "get": { + "operationId": "getParameters", + "parameters": [ + { + "in": "query", + "name": "locator", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + }, + { + "in": "path", + "name": "featureLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + }, + { + "in": "path", + "name": "projectLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/properties" + } + } + }, + "tags": [ + "Project" + ] + }, + "post": { + "operationId": "setParameter", + "parameters": [ + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/property" + } + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + }, + { + "in": "path", + "name": "featureLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + }, + { + "in": "path", + "name": "projectLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/property" + } + } + }, + "tags": [ + "Project" + ] + }, + "put": { + "operationId": "setParameters", + "parameters": [ + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/properties" + } + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + }, + { + "in": "path", + "name": "featureLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + }, + { + "in": "path", + "name": "projectLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/properties" + } + } + }, + "tags": [ + "Project" + ] + } + }, + "/app/rest/projects/{projectLocator}/projectFeatures/{featureLocator}/properties/{name}": { + "delete": { + "operationId": "deleteParameter", + "parameters": [ + { + "in": "path", + "name": "name", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "featureLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + }, + { + "in": "path", + "name": "projectLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "default": { + "description": "successful operation" + } + }, + "tags": [ + "Project" + ] + }, + "get": { + "operationId": "getParameter", + "parameters": [ + { + "in": "path", + "name": "name", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + }, + { + "in": "path", + "name": "featureLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + }, + { + "in": "path", + "name": "projectLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/property" + } + } + }, + "tags": [ + "Project" + ] + }, + "put": { + "operationId": "setParameter", + "parameters": [ + { + "in": "path", + "name": "name", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/property" + } + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + }, + { + "in": "path", + "name": "featureLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + }, + { + "in": "path", + "name": "projectLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/property" + } + } + }, + "tags": [ + "Project" + ] + } + }, + "/app/rest/projects/{projectLocator}/projectFeatures/{featureLocator}/properties/{name}/value": { + "get": { + "operationId": "getParameterValueLong", + "parameters": [ + { + "in": "path", + "name": "name", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "featureLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + }, + { + "in": "path", + "name": "projectLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "string" + } + } + }, + "tags": [ + "Project" + ] + }, + "put": { + "operationId": "setParameterValueLong", + "parameters": [ + { + "in": "path", + "name": "name", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "featureLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + }, + { + "in": "path", + "name": "projectLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "string" + } + } + }, + "tags": [ + "Project" + ] + } + }, + "/app/rest/projects/{projectLocator}/settingsFile": { + "get": { + "operationId": "getSettingsFile", + "parameters": [ + { + "in": "path", + "name": "projectLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "string" + } + } + }, + "tags": [ + "Project" + ] + } + }, + "/app/rest/projects/{projectLocator}/templates": { + "get": { + "operationId": "serveTemplatesInProject", + "parameters": [ + { + "in": "path", + "name": "projectLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/buildTypes" + } + } + }, + "tags": [ + "Project" + ] + }, + "post": { + "operationId": "createBuildTypeTemplate", + "parameters": [ + { + "in": "path", + "name": "projectLocator", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/newBuildTypeDescription" + } + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/buildType" + } + } + }, + "tags": [ + "Project" + ] + } + }, + "/app/rest/projects/{projectLocator}/templates/{btLocator}": { + "get": { + "operationId": "serveBuildTypeTemplates", + "parameters": [ + { + "in": "path", + "name": "projectLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/buildType" + } + } + }, + "tags": [ + "Project" + ] + } + }, + "/app/rest/projects/{projectLocator}/{field}": { + "get": { + "operationId": "serveProjectField", + "parameters": [ + { + "in": "path", + "name": "projectLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "field", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "string" + } + } + }, + "tags": [ + "Project" + ] + }, + "put": { + "operationId": "setProjectFiled", + "parameters": [ + { + "in": "path", + "name": "projectLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "field", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "string" + } + } + }, + "tags": [ + "Project" + ] + } + }, + "/app/rest/server": { + "get": { + "operationId": "serveServerInfo", + "parameters": [ + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/server" + } + } + }, + "tags": [ + "Server" + ] + } + }, + "/app/rest/server/backup": { + "get": { + "operationId": "getBackupStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/BackupProcessManager" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "string" + } + } + }, + "tags": [ + "Server" + ] + }, + "post": { + "operationId": "startBackup", + "parameters": [ + { + "in": "query", + "name": "fileName", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "addTimestamp", + "required": false, + "type": "boolean" + }, + { + "in": "query", + "name": "includeConfigs", + "required": false, + "type": "boolean" + }, + { + "in": "query", + "name": "includeDatabase", + "required": false, + "type": "boolean" + }, + { + "in": "query", + "name": "includeBuildLogs", + "required": false, + "type": "boolean" + }, + { + "in": "query", + "name": "includePersonalChanges", + "required": false, + "type": "boolean" + }, + { + "in": "query", + "name": "includeRunningBuilds", + "required": false, + "type": "boolean" + }, + { + "in": "query", + "name": "includeSupplimentaryData", + "required": false, + "type": "boolean" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/BackupProcessManager" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "string" + } + } + }, + "tags": [ + "Server" + ] + } + }, + "/app/rest/server/files/{areaId}": { + "get": { + "operationId": "getRoot", + "parameters": [ + { + "in": "query", + "name": "basePath", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "locator", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + }, + { + "in": "path", + "name": "areaId", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/files" + } + } + }, + "tags": [ + "Server" + ] + } + }, + "/app/rest/server/files/{areaId}/archived{path}": { + "get": { + "operationId": "getZipped", + "parameters": [ + { + "in": "path", + "name": "path", + "pattern": "(/.*)?", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "basePath", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "locator", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "name", + "required": false, + "type": "string" + }, + { + "in": "path", + "name": "areaId", + "required": true, + "type": "string" + } + ], + "responses": { + "default": { + "description": "successful operation" + } + }, + "tags": [ + "Server" + ] + } + }, + "/app/rest/server/files/{areaId}/children{path}": { + "get": { + "operationId": "getChildren", + "parameters": [ + { + "in": "path", + "name": "path", + "pattern": "(/.*)?", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "basePath", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "locator", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + }, + { + "in": "path", + "name": "areaId", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/files" + } + } + }, + "tags": [ + "Server" + ] + } + }, + "/app/rest/server/files/{areaId}/content{path}": { + "get": { + "operationId": "getContent", + "parameters": [ + { + "in": "path", + "name": "path", + "pattern": "(/.*)?", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "areaId", + "required": true, + "type": "string" + } + ], + "responses": { + "default": { + "description": "successful operation" + } + }, + "tags": [ + "Server" + ] + } + }, + "/app/rest/server/files/{areaId}/files{path}": { + "get": { + "operationId": "getContentAlias", + "parameters": [ + { + "in": "path", + "name": "path", + "pattern": "(/.*)?", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "areaId", + "required": true, + "type": "string" + } + ], + "responses": { + "default": { + "description": "successful operation" + } + }, + "tags": [ + "Server" + ] + } + }, + "/app/rest/server/files/{areaId}/metadata{path}": { + "get": { + "operationId": "getMetadata", + "parameters": [ + { + "in": "path", + "name": "path", + "pattern": "(/.*)?", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + }, + { + "in": "path", + "name": "areaId", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/file" + } + } + }, + "tags": [ + "Server" + ] + } + }, + "/app/rest/server/files/{areaId}/{path}": { + "get": { + "operationId": "getChildrenAlias", + "parameters": [ + { + "in": "path", + "name": "path", + "pattern": "(.*)?", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "basePath", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "locator", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + }, + { + "in": "path", + "name": "areaId", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/files" + } + } + }, + "tags": [ + "Server" + ] + } + }, + "/app/rest/server/licensingData": { + "get": { + "operationId": "getLicensingData", + "parameters": [ + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/licensingData" + } + } + }, + "tags": [ + "Server" + ] + } + }, + "/app/rest/server/licensingData/licenseKeys": { + "get": { + "operationId": "getLicenseKeys", + "parameters": [ + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/licenseKeys" + } + } + }, + "tags": [ + "Server" + ] + }, + "post": { + "operationId": "addLicenseKeys", + "parameters": [ + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/licenseKeys" + } + } + }, + "tags": [ + "Server" + ] + } + }, + "/app/rest/server/licensingData/licenseKeys/{licenseKey}": { + "delete": { + "operationId": "deleteLicenseKey", + "parameters": [ + { + "in": "path", + "name": "licenseKey", + "required": true, + "type": "string" + } + ], + "responses": { + "default": { + "description": "successful operation" + } + }, + "tags": [ + "Server" + ] + }, + "get": { + "operationId": "getLicenseKey", + "parameters": [ + { + "in": "path", + "name": "licenseKey", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/licenseKey" + } + } + }, + "tags": [ + "Server" + ] + } + }, + "/app/rest/server/plugins": { + "get": { + "operationId": "servePlugins", + "parameters": [ + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/plugins" + } + } + }, + "tags": [ + "Server" + ] + } + }, + "/app/rest/server/{field}": { + "get": { + "operationId": "serveServerVersion", + "parameters": [ + { + "in": "path", + "name": "field", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "string" + } + } + }, + "tags": [ + "Server" + ] + } + }, + "/app/rest/testOccurrences": { + "get": { + "operationId": "getTestOccurrences", + "parameters": [ + { + "in": "query", + "name": "locator", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/testOccurrences" + } + } + }, + "tags": [ + "TestOccurrence" + ] + } + }, + "/app/rest/testOccurrences/{testLocator}": { + "get": { + "operationId": "serveInstance", + "parameters": [ + { + "in": "path", + "name": "testLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/testOccurrence" + } + } + }, + "tags": [ + "TestOccurrence" + ] + } + }, + "/app/rest/tests": { + "get": { + "operationId": "getTests", + "parameters": [ + { + "in": "query", + "name": "locator", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/tests" + } + } + }, + "tags": [ + "Test" + ] + } + }, + "/app/rest/tests/{testLocator}": { + "get": { + "operationId": "serveInstance", + "parameters": [ + { + "in": "path", + "name": "testLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/test" + } + } + }, + "tags": [ + "Test" + ] + } + }, + "/app/rest/userGroups": { + "get": { + "operationId": "serveGroups", + "parameters": [ + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/groups" + } + } + }, + "tags": [ + "Group" + ] + }, + "post": { + "operationId": "addGroup", + "parameters": [ + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/group" + } + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/group" + } + } + }, + "tags": [ + "Group" + ] + } + }, + "/app/rest/userGroups/{groupLocator}": { + "delete": { + "operationId": "deleteGroup", + "parameters": [ + { + "in": "path", + "name": "groupLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "default": { + "description": "successful operation" + } + }, + "tags": [ + "Group" + ] + }, + "get": { + "operationId": "serveGroup", + "parameters": [ + { + "in": "path", + "name": "groupLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/group" + } + } + }, + "tags": [ + "Group" + ] + } + }, + "/app/rest/userGroups/{groupLocator}/debug/permissions": { + "get": { + "operationId": "getPermissions", + "parameters": [ + { + "in": "path", + "name": "groupLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "string" + } + } + }, + "tags": [ + "Group" + ] + } + }, + "/app/rest/userGroups/{groupLocator}/properties": { + "get": { + "operationId": "getProperties", + "parameters": [ + { + "in": "path", + "name": "groupLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/properties" + } + } + }, + "tags": [ + "Group" + ] + } + }, + "/app/rest/userGroups/{groupLocator}/properties/{name}": { + "delete": { + "operationId": "removeUserProperty", + "parameters": [ + { + "in": "path", + "name": "groupLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "name", + "required": true, + "type": "string" + } + ], + "responses": { + "default": { + "description": "successful operation" + } + }, + "tags": [ + "Group" + ] + }, + "get": { + "operationId": "serveUserProperties", + "parameters": [ + { + "in": "path", + "name": "groupLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "name", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "string" + } + } + }, + "tags": [ + "Group" + ] + }, + "put": { + "operationId": "putUserProperty", + "parameters": [ + { + "in": "path", + "name": "groupLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "name", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "string" + } + } + }, + "tags": [ + "Group" + ] + } + }, + "/app/rest/userGroups/{groupLocator}/roles": { + "get": { + "operationId": "listRoles", + "parameters": [ + { + "in": "path", + "name": "groupLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/roles" + } + } + }, + "tags": [ + "Group" + ] + }, + "post": { + "operationId": "addRole", + "parameters": [ + { + "in": "path", + "name": "groupLocator", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/role" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/role" + } + } + }, + "tags": [ + "Group" + ] + }, + "put": { + "deprecated": true, + "operationId": "addRolePut", + "parameters": [ + { + "in": "path", + "name": "groupLocator", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/roles" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/roles" + } + } + }, + "tags": [ + "Group" + ] + } + }, + "/app/rest/userGroups/{groupLocator}/roles/{roleId}/{scope}": { + "delete": { + "operationId": "deleteRole", + "parameters": [ + { + "in": "path", + "name": "groupLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "roleId", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "scope", + "required": true, + "type": "string" + } + ], + "responses": { + "default": { + "description": "successful operation" + } + }, + "tags": [ + "Group" + ] + }, + "get": { + "operationId": "listRole", + "parameters": [ + { + "in": "path", + "name": "groupLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "roleId", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "scope", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/role" + } + } + }, + "tags": [ + "Group" + ] + }, + "post": { + "operationId": "addRoleSimple", + "parameters": [ + { + "in": "path", + "name": "groupLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "roleId", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "scope", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/role" + } + } + }, + "tags": [ + "Group" + ] + } + }, + "/app/rest/users": { + "get": { + "operationId": "serveUsers", + "parameters": [ + { + "in": "query", + "name": "locator", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/users" + } + } + }, + "tags": [ + "User" + ] + }, + "post": { + "operationId": "createUser", + "parameters": [ + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/user" + } + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/user" + } + } + }, + "tags": [ + "User" + ] + } + }, + "/app/rest/users/{userLocator}": { + "delete": { + "operationId": "deleteUser", + "parameters": [ + { + "in": "path", + "name": "userLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "default": { + "description": "successful operation" + } + }, + "tags": [ + "User" + ] + }, + "get": { + "operationId": "serveUser", + "parameters": [ + { + "in": "path", + "name": "userLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/user" + } + } + }, + "tags": [ + "User" + ] + }, + "put": { + "operationId": "updateUser", + "parameters": [ + { + "in": "path", + "name": "userLocator", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/user" + } + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/user" + } + } + }, + "tags": [ + "User" + ] + } + }, + "/app/rest/users/{userLocator}/debug/permissions": { + "get": { + "operationId": "getPermissions", + "parameters": [ + { + "in": "path", + "name": "userLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "string" + } + } + }, + "tags": [ + "User" + ] + } + }, + "/app/rest/users/{userLocator}/debug/rememberMe": { + "delete": { + "operationId": "deleteRememberMe", + "parameters": [ + { + "in": "path", + "name": "userLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "default": { + "description": "successful operation" + } + }, + "tags": [ + "User" + ] + } + }, + "/app/rest/users/{userLocator}/groups": { + "get": { + "operationId": "getGroups", + "parameters": [ + { + "in": "path", + "name": "userLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/groups" + } + } + }, + "tags": [ + "User" + ] + }, + "post": { + "operationId": "addGroup", + "parameters": [ + { + "in": "path", + "name": "userLocator", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/group" + } + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/group" + } + } + }, + "tags": [ + "User" + ] + }, + "put": { + "operationId": "replaceGroups", + "parameters": [ + { + "in": "path", + "name": "userLocator", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/groups" + } + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/groups" + } + } + }, + "tags": [ + "User" + ] + } + }, + "/app/rest/users/{userLocator}/properties": { + "get": { + "operationId": "serveUserProperties", + "parameters": [ + { + "in": "path", + "name": "userLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/properties" + } + } + }, + "tags": [ + "User" + ] + } + }, + "/app/rest/users/{userLocator}/properties/{name}": { + "delete": { + "operationId": "removeUserProperty", + "parameters": [ + { + "in": "path", + "name": "userLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "name", + "required": true, + "type": "string" + } + ], + "responses": { + "default": { + "description": "successful operation" + } + }, + "tags": [ + "User" + ] + }, + "get": { + "operationId": "serveUserProperty", + "parameters": [ + { + "in": "path", + "name": "userLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "name", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "string" + } + } + }, + "tags": [ + "User" + ] + }, + "put": { + "operationId": "putUserProperty", + "parameters": [ + { + "in": "path", + "name": "userLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "name", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "string" + } + } + }, + "tags": [ + "User" + ] + } + }, + "/app/rest/users/{userLocator}/roles": { + "get": { + "operationId": "listRoles", + "parameters": [ + { + "in": "path", + "name": "userLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/roles" + } + } + }, + "tags": [ + "User" + ] + }, + "post": { + "operationId": "addRole", + "parameters": [ + { + "in": "path", + "name": "userLocator", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/role" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/role" + } + } + }, + "tags": [ + "User" + ] + }, + "put": { + "operationId": "replaceRoles", + "parameters": [ + { + "in": "path", + "name": "userLocator", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/roles" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/roles" + } + } + }, + "tags": [ + "User" + ] + } + }, + "/app/rest/users/{userLocator}/roles/{roleId}/{scope}": { + "delete": { + "operationId": "deleteRole", + "parameters": [ + { + "in": "path", + "name": "userLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "roleId", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "scope", + "required": true, + "type": "string" + } + ], + "responses": { + "default": { + "description": "successful operation" + } + }, + "tags": [ + "User" + ] + }, + "get": { + "operationId": "listRole", + "parameters": [ + { + "in": "path", + "name": "userLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "roleId", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "scope", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/role" + } + } + }, + "tags": [ + "User" + ] + }, + "post": { + "deprecated": true, + "operationId": "addRoleSimplePost", + "parameters": [ + { + "in": "path", + "name": "userLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "roleId", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "scope", + "required": true, + "type": "string" + } + ], + "responses": { + "default": { + "description": "successful operation" + } + }, + "tags": [ + "User" + ] + }, + "put": { + "operationId": "addRoleSimple", + "parameters": [ + { + "in": "path", + "name": "userLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "roleId", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "scope", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/role" + } + } + }, + "tags": [ + "User" + ] + } + }, + "/app/rest/users/{userLocator}/{field}": { + "delete": { + "operationId": "deleteUserField", + "parameters": [ + { + "in": "path", + "name": "userLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "field", + "required": true, + "type": "string" + } + ], + "responses": { + "default": { + "description": "successful operation" + } + }, + "tags": [ + "User" + ] + }, + "get": { + "operationId": "serveUserField", + "parameters": [ + { + "in": "path", + "name": "userLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "field", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "string" + } + } + }, + "tags": [ + "User" + ] + }, + "put": { + "operationId": "setUserField", + "parameters": [ + { + "in": "path", + "name": "userLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "field", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "string" + } + } + }, + "tags": [ + "User" + ] + } + }, + "/app/rest/vcs-root-instances": { + "get": { + "operationId": "serveInstances", + "parameters": [ + { + "in": "query", + "name": "locator", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/vcs-root-instances" + } + } + }, + "tags": [ + "VcsRootInstance" + ] + } + }, + "/app/rest/vcs-root-instances/checkingForChangesQueue": { + "post": { + "operationId": "scheduleCheckingForChanges", + "parameters": [ + { + "in": "query", + "name": "locator", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "requestor", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/vcs-root-instances" + } + } + }, + "tags": [ + "VcsRootInstance" + ] + } + }, + "/app/rest/vcs-root-instances/commitHookNotification": { + "post": { + "operationId": "scheduleCheckingForChanges", + "parameters": [ + { + "in": "query", + "name": "locator", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "okOnNothingFound", + "required": false, + "type": "boolean" + } + ], + "responses": { + "default": { + "description": "successful operation" + } + }, + "tags": [ + "VcsRootInstance" + ] + } + }, + "/app/rest/vcs-root-instances/{vcsRootInstanceLocator}": { + "get": { + "operationId": "serveInstance", + "parameters": [ + { + "in": "path", + "name": "vcsRootInstanceLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/vcs-root-instance" + } + } + }, + "tags": [ + "VcsRootInstance" + ] + } + }, + "/app/rest/vcs-root-instances/{vcsRootInstanceLocator}/files/latest": { + "get": { + "operationId": "getRoot", + "parameters": [ + { + "in": "query", + "name": "basePath", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "locator", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + }, + { + "in": "path", + "name": "vcsRootInstanceLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/files" + } + } + }, + "tags": [ + "VcsRootInstance" + ] + } + }, + "/app/rest/vcs-root-instances/{vcsRootInstanceLocator}/files/latest/archived{path}": { + "get": { + "operationId": "getZipped", + "parameters": [ + { + "in": "path", + "name": "path", + "pattern": "(/.*)?", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "basePath", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "locator", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "name", + "required": false, + "type": "string" + }, + { + "in": "path", + "name": "vcsRootInstanceLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "default": { + "description": "successful operation" + } + }, + "tags": [ + "VcsRootInstance" + ] + } + }, + "/app/rest/vcs-root-instances/{vcsRootInstanceLocator}/files/latest/children{path}": { + "get": { + "operationId": "getChildren", + "parameters": [ + { + "in": "path", + "name": "path", + "pattern": "(/.*)?", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "basePath", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "locator", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + }, + { + "in": "path", + "name": "vcsRootInstanceLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/files" + } + } + }, + "tags": [ + "VcsRootInstance" + ] + } + }, + "/app/rest/vcs-root-instances/{vcsRootInstanceLocator}/files/latest/content{path}": { + "get": { + "operationId": "getContent", + "parameters": [ + { + "in": "path", + "name": "path", + "pattern": "(/.*)?", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "vcsRootInstanceLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "default": { + "description": "successful operation" + } + }, + "tags": [ + "VcsRootInstance" + ] + } + }, + "/app/rest/vcs-root-instances/{vcsRootInstanceLocator}/files/latest/files{path}": { + "get": { + "operationId": "getContentAlias", + "parameters": [ + { + "in": "path", + "name": "path", + "pattern": "(/.*)?", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "vcsRootInstanceLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "default": { + "description": "successful operation" + } + }, + "tags": [ + "VcsRootInstance" + ] + } + }, + "/app/rest/vcs-root-instances/{vcsRootInstanceLocator}/files/latest/metadata{path}": { + "get": { + "operationId": "getMetadata", + "parameters": [ + { + "in": "path", + "name": "path", + "pattern": "(/.*)?", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + }, + { + "in": "path", + "name": "vcsRootInstanceLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/file" + } + } + }, + "tags": [ + "VcsRootInstance" + ] + } + }, + "/app/rest/vcs-root-instances/{vcsRootInstanceLocator}/files/latest/{path}": { + "get": { + "operationId": "getChildrenAlias", + "parameters": [ + { + "in": "path", + "name": "path", + "pattern": "(.*)?", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "basePath", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "locator", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + }, + { + "in": "path", + "name": "vcsRootInstanceLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/files" + } + } + }, + "tags": [ + "VcsRootInstance" + ] + } + }, + "/app/rest/vcs-root-instances/{vcsRootInstanceLocator}/properties": { + "get": { + "operationId": "serveRootInstanceProperties", + "parameters": [ + { + "in": "path", + "name": "vcsRootInstanceLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/properties" + } + } + }, + "tags": [ + "VcsRootInstance" + ] + } + }, + "/app/rest/vcs-root-instances/{vcsRootInstanceLocator}/repositoryState": { + "delete": { + "operationId": "deleteRepositoryState", + "parameters": [ + { + "in": "path", + "name": "vcsRootInstanceLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "default": { + "description": "successful operation" + } + }, + "tags": [ + "VcsRootInstance" + ] + }, + "get": { + "operationId": "getRepositoryState", + "parameters": [ + { + "in": "path", + "name": "vcsRootInstanceLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/entries" + } + } + }, + "tags": [ + "VcsRootInstance" + ] + }, + "put": { + "operationId": "setRepositoryState", + "parameters": [ + { + "in": "path", + "name": "vcsRootInstanceLocator", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/entries" + } + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/entries" + } + } + }, + "tags": [ + "VcsRootInstance" + ] + } + }, + "/app/rest/vcs-root-instances/{vcsRootInstanceLocator}/repositoryState/creationDate": { + "get": { + "operationId": "getRepositoryStateCreationDate", + "parameters": [ + { + "in": "path", + "name": "vcsRootInstanceLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "string" + } + } + }, + "tags": [ + "VcsRootInstance" + ] + } + }, + "/app/rest/vcs-root-instances/{vcsRootInstanceLocator}/{field}": { + "delete": { + "operationId": "deleteInstanceField", + "parameters": [ + { + "in": "path", + "name": "vcsRootInstanceLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "field", + "required": true, + "type": "string" + } + ], + "responses": { + "default": { + "description": "successful operation" + } + }, + "tags": [ + "VcsRootInstance" + ] + }, + "get": { + "operationId": "serveInstanceField", + "parameters": [ + { + "in": "path", + "name": "vcsRootInstanceLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "field", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "string" + } + } + }, + "tags": [ + "VcsRootInstance" + ] + }, + "put": { + "operationId": "setInstanceField", + "parameters": [ + { + "in": "path", + "name": "vcsRootInstanceLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "field", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "string" + } + } + }, + "tags": [ + "VcsRootInstance" + ] + } + }, + "/app/rest/vcs-roots": { + "get": { + "operationId": "serveRoots", + "parameters": [ + { + "in": "query", + "name": "locator", + "required": false, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/vcs-roots" + } + } + }, + "tags": [ + "VcsRoot" + ] + }, + "post": { + "operationId": "addRoot", + "parameters": [ + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/vcs-root" + } + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/vcs-root" + } + } + }, + "tags": [ + "VcsRoot" + ] + } + }, + "/app/rest/vcs-roots/{vcsRootLocator}": { + "delete": { + "operationId": "deleteRoot", + "parameters": [ + { + "in": "path", + "name": "vcsRootLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "default": { + "description": "successful operation" + } + }, + "tags": [ + "VcsRoot" + ] + }, + "get": { + "operationId": "serveRoot", + "parameters": [ + { + "in": "path", + "name": "vcsRootLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/vcs-root" + } + } + }, + "tags": [ + "VcsRoot" + ] + } + }, + "/app/rest/vcs-roots/{vcsRootLocator}/instances": { + "get": { + "operationId": "serveRootInstances", + "parameters": [ + { + "in": "path", + "name": "vcsRootLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/vcs-root-instances" + } + } + }, + "tags": [ + "VcsRoot" + ] + } + }, + "/app/rest/vcs-roots/{vcsRootLocator}/instances/{vcsRootInstanceLocator}": { + "get": { + "operationId": "serveRootInstance", + "parameters": [ + { + "in": "path", + "name": "vcsRootLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "vcsRootInstanceLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/vcs-root-instance" + } + } + }, + "tags": [ + "VcsRoot" + ] + } + }, + "/app/rest/vcs-roots/{vcsRootLocator}/instances/{vcsRootInstanceLocator}/properties": { + "get": { + "operationId": "serveRootInstanceProperties", + "parameters": [ + { + "in": "path", + "name": "vcsRootLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "vcsRootInstanceLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/properties" + } + } + }, + "tags": [ + "VcsRoot" + ] + } + }, + "/app/rest/vcs-roots/{vcsRootLocator}/instances/{vcsRootInstanceLocator}/{field}": { + "get": { + "operationId": "serveInstanceField", + "parameters": [ + { + "in": "path", + "name": "vcsRootLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "vcsRootInstanceLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "field", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "string" + } + } + }, + "tags": [ + "VcsRoot" + ] + }, + "put": { + "operationId": "setInstanceField", + "parameters": [ + { + "in": "path", + "name": "vcsRootLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "vcsRootInstanceLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "field", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "string" + } + } + }, + "tags": [ + "VcsRoot" + ] + } + }, + "/app/rest/vcs-roots/{vcsRootLocator}/properties": { + "delete": { + "operationId": "deleteAllProperties", + "parameters": [ + { + "in": "path", + "name": "vcsRootLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "default": { + "description": "successful operation" + } + }, + "tags": [ + "VcsRoot" + ] + }, + "get": { + "operationId": "serveProperties", + "parameters": [ + { + "in": "path", + "name": "vcsRootLocator", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/properties" + } + } + }, + "tags": [ + "VcsRoot" + ] + }, + "put": { + "operationId": "changeProperties", + "parameters": [ + { + "in": "path", + "name": "vcsRootLocator", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/properties" + } + }, + { + "in": "query", + "name": "fields", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "$ref": "#/definitions/properties" + } + } + }, + "tags": [ + "VcsRoot" + ] + } + }, + "/app/rest/vcs-roots/{vcsRootLocator}/properties/{name}": { + "delete": { + "operationId": "deleteParameter", + "parameters": [ + { + "in": "path", + "name": "vcsRootLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "name", + "required": true, + "type": "string" + } + ], + "responses": { + "default": { + "description": "successful operation" + } + }, + "tags": [ + "VcsRoot" + ] + }, + "get": { + "operationId": "serveProperty", + "parameters": [ + { + "in": "path", + "name": "vcsRootLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "name", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "string" + } + } + }, + "tags": [ + "VcsRoot" + ] + }, + "put": { + "operationId": "putParameter", + "parameters": [ + { + "in": "path", + "name": "vcsRootLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "name", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "string" + } + } + }, + "tags": [ + "VcsRoot" + ] + } + }, + "/app/rest/vcs-roots/{vcsRootLocator}/settingsFile": { + "get": { + "operationId": "getSettingsFile", + "parameters": [ + { + "in": "path", + "name": "vcsRootLocator", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "string" + } + } + }, + "tags": [ + "VcsRoot" + ] + } + }, + "/app/rest/vcs-roots/{vcsRootLocator}/{field}": { + "get": { + "operationId": "serveField", + "parameters": [ + { + "in": "path", + "name": "vcsRootLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "field", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "string" + } + } + }, + "tags": [ + "VcsRoot" + ] + }, + "put": { + "operationId": "setField", + "parameters": [ + { + "in": "path", + "name": "vcsRootLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "field", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "string" + } + } + }, + "tags": [ + "VcsRoot" + ] + } + }, + "/app/rest/version": { + "get": { + "operationId": "serveVersion", + "parameters": [], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "string" + } + } + }, + "security": [ + { + "none": [] + } + ] + } + }, + "/app/rest/{projectLocator}/{btLocator}/{buildLocator}/{field}": { + "get": { + "operationId": "serveBuildFieldShort", + "parameters": [ + { + "in": "path", + "name": "projectLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "btLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "buildLocator", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "field", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { + "type": "string" + } + } + }, + "security": [ + { + "none": [] + } + ] + } + } + }, + "securityDefinitions": { + "Basic": { + "type": "basic" + } + }, + "securityRequirement": [ + { + "Basic": [] + } + ], + "swagger": "2.0", + "tags": [ + { + "name": "Agent" + }, + { + "name": "AgentPool" + }, + { + "name": "Build" + }, + { + "name": "BuildQueue" + }, + { + "name": "BuildType" + }, + { + "name": "Change" + }, + { + "name": "Debug" + }, + { + "name": "Federation" + }, + { + "name": "Group" + }, + { + "name": "Investigation" + }, + { + "name": "Problem" + }, + { + "name": "ProblemOccurrence" + }, + { + "name": "Project" + }, + { + "name": "Server" + }, + { + "name": "Test" + }, + { + "name": "TestOccurrence" + }, + { + "name": "User" + }, + { + "name": "VcsRoot" + }, + { + "name": "VcsRootInstance" + } + ] +} \ No newline at end of file diff --git a/swagger_client/__init__.py b/swagger_client/__init__.py new file mode 100644 index 0000000..c8f5064 --- /dev/null +++ b/swagger_client/__init__.py @@ -0,0 +1,155 @@ +# coding: utf-8 + +# flake8: noqa + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +# import apis into sdk package +from swagger_client.api.agent_api import AgentApi +from swagger_client.api.agent_pool_api import AgentPoolApi +from swagger_client.api.build_api import BuildApi +from swagger_client.api.build_queue_api import BuildQueueApi +from swagger_client.api.build_type_api import BuildTypeApi +from swagger_client.api.change_api import ChangeApi +from swagger_client.api.debug_api import DebugApi +from swagger_client.api.federation_api import FederationApi +from swagger_client.api.group_api import GroupApi +from swagger_client.api.investigation_api import InvestigationApi +from swagger_client.api.problem_api import ProblemApi +from swagger_client.api.problem_occurrence_api import ProblemOccurrenceApi +from swagger_client.api.project_api import ProjectApi +from swagger_client.api.server_api import ServerApi +from swagger_client.api.test_api import TestApi +from swagger_client.api.test_occurrence_api import TestOccurrenceApi +from swagger_client.api.user_api import UserApi +from swagger_client.api.vcs_root_api import VcsRootApi +from swagger_client.api.vcs_root_instance_api import VcsRootInstanceApi +from swagger_client.api.default_api import DefaultApi + +# import ApiClient +from swagger_client.api_client import ApiClient +from swagger_client.configuration import Configuration +# import models into sdk package +from swagger_client.models.agent import Agent +from swagger_client.models.agent_pool import AgentPool +from swagger_client.models.agent_pools import AgentPools +from swagger_client.models.agent_requirement import AgentRequirement +from swagger_client.models.agent_requirements import AgentRequirements +from swagger_client.models.agents import Agents +from swagger_client.models.artifact_dependencies import ArtifactDependencies +from swagger_client.models.artifact_dependency import ArtifactDependency +from swagger_client.models.authorized_info import AuthorizedInfo +from swagger_client.models.backup_process import BackupProcess +from swagger_client.models.backup_process_info import BackupProcessInfo +from swagger_client.models.backup_process_manager import BackupProcessManager +from swagger_client.models.branch import Branch +from swagger_client.models.branch_version import BranchVersion +from swagger_client.models.branches import Branches +from swagger_client.models.build import Build +from swagger_client.models.build_cancel_request import BuildCancelRequest +from swagger_client.models.build_triggering_options import BuildTriggeringOptions +from swagger_client.models.build_type import BuildType +from swagger_client.models.build_types import BuildTypes +from swagger_client.models.builds import Builds +from swagger_client.models.change import Change +from swagger_client.models.changes import Changes +from swagger_client.models.comment import Comment +from swagger_client.models.compatibilities import Compatibilities +from swagger_client.models.compatibility import Compatibility +from swagger_client.models.datas import Datas +from swagger_client.models.enabled_info import EnabledInfo +from swagger_client.models.entries import Entries +from swagger_client.models.entry import Entry +from swagger_client.models.exception import Exception +from swagger_client.models.feature import Feature +from swagger_client.models.features import Features +from swagger_client.models.federation_server import FederationServer +from swagger_client.models.file import File +from swagger_client.models.file_change import FileChange +from swagger_client.models.file_changes import FileChanges +from swagger_client.models.files import Files +from swagger_client.models.group import Group +from swagger_client.models.groups import Groups +from swagger_client.models.href import Href +from swagger_client.models.investigation import Investigation +from swagger_client.models.investigations import Investigations +from swagger_client.models.issue import Issue +from swagger_client.models.issue_usage import IssueUsage +from swagger_client.models.issues import Issues +from swagger_client.models.issues_usages import IssuesUsages +from swagger_client.models.items import Items +from swagger_client.models.license_key import LicenseKey +from swagger_client.models.license_keys import LicenseKeys +from swagger_client.models.licensing_data import LicensingData +from swagger_client.models.link import Link +from swagger_client.models.links import Links +from swagger_client.models.meta_data import MetaData +from swagger_client.models.model_property import ModelProperty +from swagger_client.models.mute import Mute +from swagger_client.models.mutes import Mutes +from swagger_client.models.new_build_type_description import NewBuildTypeDescription +from swagger_client.models.new_project_description import NewProjectDescription +from swagger_client.models.plugin import Plugin +from swagger_client.models.plugins import Plugins +from swagger_client.models.problem import Problem +from swagger_client.models.problem_occurrence import ProblemOccurrence +from swagger_client.models.problem_occurrences import ProblemOccurrences +from swagger_client.models.problem_scope import ProblemScope +from swagger_client.models.problem_target import ProblemTarget +from swagger_client.models.problems import Problems +from swagger_client.models.progress_info import ProgressInfo +from swagger_client.models.project import Project +from swagger_client.models.project_feature import ProjectFeature +from swagger_client.models.project_features import ProjectFeatures +from swagger_client.models.projects import Projects +from swagger_client.models.properties import Properties +from swagger_client.models.repository_state import RepositoryState +from swagger_client.models.requirements import Requirements +from swagger_client.models.resolution import Resolution +from swagger_client.models.revision import Revision +from swagger_client.models.revisions import Revisions +from swagger_client.models.role import Role +from swagger_client.models.roles import Roles +from swagger_client.models.server import Server +from swagger_client.models.servers import Servers +from swagger_client.models.session import Session +from swagger_client.models.sessions import Sessions +from swagger_client.models.snapshot_dependencies import SnapshotDependencies +from swagger_client.models.snapshot_dependency import SnapshotDependency +from swagger_client.models.stack_trace_element import StackTraceElement +from swagger_client.models.state_field import StateField +from swagger_client.models.step import Step +from swagger_client.models.steps import Steps +from swagger_client.models.tag import Tag +from swagger_client.models.tags import Tags +from swagger_client.models.test import Test +from swagger_client.models.test_occurrence import TestOccurrence +from swagger_client.models.test_occurrences import TestOccurrences +from swagger_client.models.tests import Tests +from swagger_client.models.throwable import Throwable +from swagger_client.models.trigger import Trigger +from swagger_client.models.triggered_by import TriggeredBy +from swagger_client.models.triggers import Triggers +from swagger_client.models.type import Type +from swagger_client.models.user import User +from swagger_client.models.users import Users +from swagger_client.models.vcs_check_status import VcsCheckStatus +from swagger_client.models.vcs_labeling import VcsLabeling +from swagger_client.models.vcs_root import VcsRoot +from swagger_client.models.vcs_root_entries import VcsRootEntries +from swagger_client.models.vcs_root_entry import VcsRootEntry +from swagger_client.models.vcs_root_instance import VcsRootInstance +from swagger_client.models.vcs_root_instances import VcsRootInstances +from swagger_client.models.vcs_roots import VcsRoots +from swagger_client.models.vcs_status import VcsStatus diff --git a/swagger_client/api/__init__.py b/swagger_client/api/__init__.py new file mode 100644 index 0000000..d2f6c3b --- /dev/null +++ b/swagger_client/api/__init__.py @@ -0,0 +1,25 @@ +from __future__ import absolute_import + +# flake8: noqa + +# import apis into api package +from swagger_client.api.agent_api import AgentApi +from swagger_client.api.agent_pool_api import AgentPoolApi +from swagger_client.api.build_api import BuildApi +from swagger_client.api.build_queue_api import BuildQueueApi +from swagger_client.api.build_type_api import BuildTypeApi +from swagger_client.api.change_api import ChangeApi +from swagger_client.api.debug_api import DebugApi +from swagger_client.api.federation_api import FederationApi +from swagger_client.api.group_api import GroupApi +from swagger_client.api.investigation_api import InvestigationApi +from swagger_client.api.problem_api import ProblemApi +from swagger_client.api.problem_occurrence_api import ProblemOccurrenceApi +from swagger_client.api.project_api import ProjectApi +from swagger_client.api.server_api import ServerApi +from swagger_client.api.test_api import TestApi +from swagger_client.api.test_occurrence_api import TestOccurrenceApi +from swagger_client.api.user_api import UserApi +from swagger_client.api.vcs_root_api import VcsRootApi +from swagger_client.api.vcs_root_instance_api import VcsRootInstanceApi +from swagger_client.api.default_api import DefaultApi diff --git a/swagger_client/api/agent_api.py b/swagger_client/api/agent_api.py new file mode 100644 index 0000000..364c22a --- /dev/null +++ b/swagger_client/api/agent_api.py @@ -0,0 +1,1267 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from swagger_client.api_client import ApiClient + + +class AgentApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def delete_agent(self, agent_locator, **kwargs): # noqa: E501 + """delete_agent # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_agent(agent_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str agent_locator: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.delete_agent_with_http_info(agent_locator, **kwargs) # noqa: E501 + else: + (data) = self.delete_agent_with_http_info(agent_locator, **kwargs) # noqa: E501 + return data + + def delete_agent_with_http_info(self, agent_locator, **kwargs): # noqa: E501 + """delete_agent # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_agent_with_http_info(agent_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str agent_locator: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['agent_locator'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_agent" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'agent_locator' is set + if ('agent_locator' not in params or + params['agent_locator'] is None): + raise ValueError("Missing the required parameter `agent_locator` when calling `delete_agent`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'agent_locator' in params: + path_params['agentLocator'] = params['agent_locator'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/agents/{agentLocator}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def ge_incompatible_build_types(self, agent_locator, **kwargs): # noqa: E501 + """ge_incompatible_build_types # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.ge_incompatible_build_types(agent_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str agent_locator: (required) + :param str fields: + :return: Compatibilities + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.ge_incompatible_build_types_with_http_info(agent_locator, **kwargs) # noqa: E501 + else: + (data) = self.ge_incompatible_build_types_with_http_info(agent_locator, **kwargs) # noqa: E501 + return data + + def ge_incompatible_build_types_with_http_info(self, agent_locator, **kwargs): # noqa: E501 + """ge_incompatible_build_types # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.ge_incompatible_build_types_with_http_info(agent_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str agent_locator: (required) + :param str fields: + :return: Compatibilities + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['agent_locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method ge_incompatible_build_types" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'agent_locator' is set + if ('agent_locator' not in params or + params['agent_locator'] is None): + raise ValueError("Missing the required parameter `agent_locator` when calling `ge_incompatible_build_types`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'agent_locator' in params: + path_params['agentLocator'] = params['agent_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/agents/{agentLocator}/incompatibleBuildTypes', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Compatibilities', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_agent_pool(self, agent_locator, **kwargs): # noqa: E501 + """get_agent_pool # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_agent_pool(agent_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str agent_locator: (required) + :param str fields: + :return: AgentPool + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_agent_pool_with_http_info(agent_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_agent_pool_with_http_info(agent_locator, **kwargs) # noqa: E501 + return data + + def get_agent_pool_with_http_info(self, agent_locator, **kwargs): # noqa: E501 + """get_agent_pool # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_agent_pool_with_http_info(agent_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str agent_locator: (required) + :param str fields: + :return: AgentPool + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['agent_locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_agent_pool" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'agent_locator' is set + if ('agent_locator' not in params or + params['agent_locator'] is None): + raise ValueError("Missing the required parameter `agent_locator` when calling `get_agent_pool`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'agent_locator' in params: + path_params['agentLocator'] = params['agent_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/agents/{agentLocator}/pool', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AgentPool', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_authorized_info(self, agent_locator, **kwargs): # noqa: E501 + """get_authorized_info # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_authorized_info(agent_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str agent_locator: (required) + :param str fields: + :return: AuthorizedInfo + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_authorized_info_with_http_info(agent_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_authorized_info_with_http_info(agent_locator, **kwargs) # noqa: E501 + return data + + def get_authorized_info_with_http_info(self, agent_locator, **kwargs): # noqa: E501 + """get_authorized_info # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_authorized_info_with_http_info(agent_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str agent_locator: (required) + :param str fields: + :return: AuthorizedInfo + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['agent_locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_authorized_info" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'agent_locator' is set + if ('agent_locator' not in params or + params['agent_locator'] is None): + raise ValueError("Missing the required parameter `agent_locator` when calling `get_authorized_info`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'agent_locator' in params: + path_params['agentLocator'] = params['agent_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/agents/{agentLocator}/authorizedInfo', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AuthorizedInfo', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_compatible_build_types(self, agent_locator, **kwargs): # noqa: E501 + """get_compatible_build_types # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_compatible_build_types(agent_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str agent_locator: (required) + :param str fields: + :return: BuildTypes + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_compatible_build_types_with_http_info(agent_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_compatible_build_types_with_http_info(agent_locator, **kwargs) # noqa: E501 + return data + + def get_compatible_build_types_with_http_info(self, agent_locator, **kwargs): # noqa: E501 + """get_compatible_build_types # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_compatible_build_types_with_http_info(agent_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str agent_locator: (required) + :param str fields: + :return: BuildTypes + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['agent_locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_compatible_build_types" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'agent_locator' is set + if ('agent_locator' not in params or + params['agent_locator'] is None): + raise ValueError("Missing the required parameter `agent_locator` when calling `get_compatible_build_types`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'agent_locator' in params: + path_params['agentLocator'] = params['agent_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/agents/{agentLocator}/compatibleBuildTypes', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='BuildTypes', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_enabled_info(self, agent_locator, **kwargs): # noqa: E501 + """get_enabled_info # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_enabled_info(agent_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str agent_locator: (required) + :param str fields: + :return: EnabledInfo + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_enabled_info_with_http_info(agent_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_enabled_info_with_http_info(agent_locator, **kwargs) # noqa: E501 + return data + + def get_enabled_info_with_http_info(self, agent_locator, **kwargs): # noqa: E501 + """get_enabled_info # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_enabled_info_with_http_info(agent_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str agent_locator: (required) + :param str fields: + :return: EnabledInfo + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['agent_locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_enabled_info" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'agent_locator' is set + if ('agent_locator' not in params or + params['agent_locator'] is None): + raise ValueError("Missing the required parameter `agent_locator` when calling `get_enabled_info`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'agent_locator' in params: + path_params['agentLocator'] = params['agent_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/agents/{agentLocator}/enabledInfo', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='EnabledInfo', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def serve_agent(self, agent_locator, **kwargs): # noqa: E501 + """serve_agent # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_agent(agent_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str agent_locator: (required) + :param str fields: + :return: Agent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.serve_agent_with_http_info(agent_locator, **kwargs) # noqa: E501 + else: + (data) = self.serve_agent_with_http_info(agent_locator, **kwargs) # noqa: E501 + return data + + def serve_agent_with_http_info(self, agent_locator, **kwargs): # noqa: E501 + """serve_agent # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_agent_with_http_info(agent_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str agent_locator: (required) + :param str fields: + :return: Agent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['agent_locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method serve_agent" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'agent_locator' is set + if ('agent_locator' not in params or + params['agent_locator'] is None): + raise ValueError("Missing the required parameter `agent_locator` when calling `serve_agent`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'agent_locator' in params: + path_params['agentLocator'] = params['agent_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/agents/{agentLocator}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Agent', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def serve_agent_field(self, agent_locator, field, **kwargs): # noqa: E501 + """serve_agent_field # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_agent_field(agent_locator, field, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str agent_locator: (required) + :param str field: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.serve_agent_field_with_http_info(agent_locator, field, **kwargs) # noqa: E501 + else: + (data) = self.serve_agent_field_with_http_info(agent_locator, field, **kwargs) # noqa: E501 + return data + + def serve_agent_field_with_http_info(self, agent_locator, field, **kwargs): # noqa: E501 + """serve_agent_field # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_agent_field_with_http_info(agent_locator, field, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str agent_locator: (required) + :param str field: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['agent_locator', 'field'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method serve_agent_field" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'agent_locator' is set + if ('agent_locator' not in params or + params['agent_locator'] is None): + raise ValueError("Missing the required parameter `agent_locator` when calling `serve_agent_field`") # noqa: E501 + # verify the required parameter 'field' is set + if ('field' not in params or + params['field'] is None): + raise ValueError("Missing the required parameter `field` when calling `serve_agent_field`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'agent_locator' in params: + path_params['agentLocator'] = params['agent_locator'] # noqa: E501 + if 'field' in params: + path_params['field'] = params['field'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/agents/{agentLocator}/{field}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def serve_agents(self, **kwargs): # noqa: E501 + """serve_agents # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_agents(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param bool include_disconnected: + :param bool include_unauthorized: + :param str locator: + :param str fields: + :return: Agents + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.serve_agents_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.serve_agents_with_http_info(**kwargs) # noqa: E501 + return data + + def serve_agents_with_http_info(self, **kwargs): # noqa: E501 + """serve_agents # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_agents_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param bool include_disconnected: + :param bool include_unauthorized: + :param str locator: + :param str fields: + :return: Agents + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['include_disconnected', 'include_unauthorized', 'locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method serve_agents" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'include_disconnected' in params: + query_params.append(('includeDisconnected', params['include_disconnected'])) # noqa: E501 + if 'include_unauthorized' in params: + query_params.append(('includeUnauthorized', params['include_unauthorized'])) # noqa: E501 + if 'locator' in params: + query_params.append(('locator', params['locator'])) # noqa: E501 + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/agents', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Agents', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def set_agent_field(self, agent_locator, field, **kwargs): # noqa: E501 + """set_agent_field # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.set_agent_field(agent_locator, field, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str agent_locator: (required) + :param str field: (required) + :param str body: + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.set_agent_field_with_http_info(agent_locator, field, **kwargs) # noqa: E501 + else: + (data) = self.set_agent_field_with_http_info(agent_locator, field, **kwargs) # noqa: E501 + return data + + def set_agent_field_with_http_info(self, agent_locator, field, **kwargs): # noqa: E501 + """set_agent_field # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.set_agent_field_with_http_info(agent_locator, field, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str agent_locator: (required) + :param str field: (required) + :param str body: + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['agent_locator', 'field', 'body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method set_agent_field" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'agent_locator' is set + if ('agent_locator' not in params or + params['agent_locator'] is None): + raise ValueError("Missing the required parameter `agent_locator` when calling `set_agent_field`") # noqa: E501 + # verify the required parameter 'field' is set + if ('field' not in params or + params['field'] is None): + raise ValueError("Missing the required parameter `field` when calling `set_agent_field`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'agent_locator' in params: + path_params['agentLocator'] = params['agent_locator'] # noqa: E501 + if 'field' in params: + path_params['field'] = params['field'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/agents/{agentLocator}/{field}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def set_agent_pool(self, agent_locator, **kwargs): # noqa: E501 + """set_agent_pool # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.set_agent_pool(agent_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str agent_locator: (required) + :param AgentPool body: + :param str fields: + :return: AgentPool + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.set_agent_pool_with_http_info(agent_locator, **kwargs) # noqa: E501 + else: + (data) = self.set_agent_pool_with_http_info(agent_locator, **kwargs) # noqa: E501 + return data + + def set_agent_pool_with_http_info(self, agent_locator, **kwargs): # noqa: E501 + """set_agent_pool # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.set_agent_pool_with_http_info(agent_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str agent_locator: (required) + :param AgentPool body: + :param str fields: + :return: AgentPool + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['agent_locator', 'body', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method set_agent_pool" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'agent_locator' is set + if ('agent_locator' not in params or + params['agent_locator'] is None): + raise ValueError("Missing the required parameter `agent_locator` when calling `set_agent_pool`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'agent_locator' in params: + path_params['agentLocator'] = params['agent_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/agents/{agentLocator}/pool', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AgentPool', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def set_authorized_info(self, agent_locator, **kwargs): # noqa: E501 + """set_authorized_info # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.set_authorized_info(agent_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str agent_locator: (required) + :param AuthorizedInfo body: + :param str fields: + :return: AuthorizedInfo + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.set_authorized_info_with_http_info(agent_locator, **kwargs) # noqa: E501 + else: + (data) = self.set_authorized_info_with_http_info(agent_locator, **kwargs) # noqa: E501 + return data + + def set_authorized_info_with_http_info(self, agent_locator, **kwargs): # noqa: E501 + """set_authorized_info # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.set_authorized_info_with_http_info(agent_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str agent_locator: (required) + :param AuthorizedInfo body: + :param str fields: + :return: AuthorizedInfo + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['agent_locator', 'body', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method set_authorized_info" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'agent_locator' is set + if ('agent_locator' not in params or + params['agent_locator'] is None): + raise ValueError("Missing the required parameter `agent_locator` when calling `set_authorized_info`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'agent_locator' in params: + path_params['agentLocator'] = params['agent_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/agents/{agentLocator}/authorizedInfo', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AuthorizedInfo', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def set_enabled_info(self, agent_locator, **kwargs): # noqa: E501 + """set_enabled_info # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.set_enabled_info(agent_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str agent_locator: (required) + :param EnabledInfo body: + :param str fields: + :return: EnabledInfo + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.set_enabled_info_with_http_info(agent_locator, **kwargs) # noqa: E501 + else: + (data) = self.set_enabled_info_with_http_info(agent_locator, **kwargs) # noqa: E501 + return data + + def set_enabled_info_with_http_info(self, agent_locator, **kwargs): # noqa: E501 + """set_enabled_info # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.set_enabled_info_with_http_info(agent_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str agent_locator: (required) + :param EnabledInfo body: + :param str fields: + :return: EnabledInfo + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['agent_locator', 'body', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method set_enabled_info" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'agent_locator' is set + if ('agent_locator' not in params or + params['agent_locator'] is None): + raise ValueError("Missing the required parameter `agent_locator` when calling `set_enabled_info`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'agent_locator' in params: + path_params['agentLocator'] = params['agent_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/agents/{agentLocator}/enabledInfo', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='EnabledInfo', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/swagger_client/api/agent_pool_api.py b/swagger_client/api/agent_pool_api.py new file mode 100644 index 0000000..d173ff3 --- /dev/null +++ b/swagger_client/api/agent_pool_api.py @@ -0,0 +1,1348 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from swagger_client.api_client import ApiClient + + +class AgentPoolApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def add_agent(self, agent_pool_locator, **kwargs): # noqa: E501 + """add_agent # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_agent(agent_pool_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str agent_pool_locator: (required) + :param Agent body: + :param str fields: + :return: Agent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.add_agent_with_http_info(agent_pool_locator, **kwargs) # noqa: E501 + else: + (data) = self.add_agent_with_http_info(agent_pool_locator, **kwargs) # noqa: E501 + return data + + def add_agent_with_http_info(self, agent_pool_locator, **kwargs): # noqa: E501 + """add_agent # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_agent_with_http_info(agent_pool_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str agent_pool_locator: (required) + :param Agent body: + :param str fields: + :return: Agent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['agent_pool_locator', 'body', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method add_agent" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'agent_pool_locator' is set + if ('agent_pool_locator' not in params or + params['agent_pool_locator'] is None): + raise ValueError("Missing the required parameter `agent_pool_locator` when calling `add_agent`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'agent_pool_locator' in params: + path_params['agentPoolLocator'] = params['agent_pool_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/agentPools/{agentPoolLocator}/agents', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Agent', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def add_project(self, agent_pool_locator, **kwargs): # noqa: E501 + """add_project # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_project(agent_pool_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str agent_pool_locator: (required) + :param Project body: + :return: Project + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.add_project_with_http_info(agent_pool_locator, **kwargs) # noqa: E501 + else: + (data) = self.add_project_with_http_info(agent_pool_locator, **kwargs) # noqa: E501 + return data + + def add_project_with_http_info(self, agent_pool_locator, **kwargs): # noqa: E501 + """add_project # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_project_with_http_info(agent_pool_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str agent_pool_locator: (required) + :param Project body: + :return: Project + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['agent_pool_locator', 'body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method add_project" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'agent_pool_locator' is set + if ('agent_pool_locator' not in params or + params['agent_pool_locator'] is None): + raise ValueError("Missing the required parameter `agent_pool_locator` when calling `add_project`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'agent_pool_locator' in params: + path_params['agentPoolLocator'] = params['agent_pool_locator'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/agentPools/{agentPoolLocator}/projects', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Project', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_pool(self, **kwargs): # noqa: E501 + """create_pool # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_pool(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param AgentPool body: + :return: AgentPool + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.create_pool_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.create_pool_with_http_info(**kwargs) # noqa: E501 + return data + + def create_pool_with_http_info(self, **kwargs): # noqa: E501 + """create_pool # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_pool_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param AgentPool body: + :return: AgentPool + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_pool" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/agentPools', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AgentPool', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_pool(self, agent_pool_locator, **kwargs): # noqa: E501 + """delete_pool # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_pool(agent_pool_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str agent_pool_locator: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.delete_pool_with_http_info(agent_pool_locator, **kwargs) # noqa: E501 + else: + (data) = self.delete_pool_with_http_info(agent_pool_locator, **kwargs) # noqa: E501 + return data + + def delete_pool_with_http_info(self, agent_pool_locator, **kwargs): # noqa: E501 + """delete_pool # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_pool_with_http_info(agent_pool_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str agent_pool_locator: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['agent_pool_locator'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_pool" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'agent_pool_locator' is set + if ('agent_pool_locator' not in params or + params['agent_pool_locator'] is None): + raise ValueError("Missing the required parameter `agent_pool_locator` when calling `delete_pool`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'agent_pool_locator' in params: + path_params['agentPoolLocator'] = params['agent_pool_locator'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/agentPools/{agentPoolLocator}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_pool_project(self, agent_pool_locator, project_locator, **kwargs): # noqa: E501 + """delete_pool_project # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_pool_project(agent_pool_locator, project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str agent_pool_locator: (required) + :param str project_locator: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.delete_pool_project_with_http_info(agent_pool_locator, project_locator, **kwargs) # noqa: E501 + else: + (data) = self.delete_pool_project_with_http_info(agent_pool_locator, project_locator, **kwargs) # noqa: E501 + return data + + def delete_pool_project_with_http_info(self, agent_pool_locator, project_locator, **kwargs): # noqa: E501 + """delete_pool_project # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_pool_project_with_http_info(agent_pool_locator, project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str agent_pool_locator: (required) + :param str project_locator: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['agent_pool_locator', 'project_locator'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_pool_project" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'agent_pool_locator' is set + if ('agent_pool_locator' not in params or + params['agent_pool_locator'] is None): + raise ValueError("Missing the required parameter `agent_pool_locator` when calling `delete_pool_project`") # noqa: E501 + # verify the required parameter 'project_locator' is set + if ('project_locator' not in params or + params['project_locator'] is None): + raise ValueError("Missing the required parameter `project_locator` when calling `delete_pool_project`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'agent_pool_locator' in params: + path_params['agentPoolLocator'] = params['agent_pool_locator'] # noqa: E501 + if 'project_locator' in params: + path_params['projectLocator'] = params['project_locator'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/agentPools/{agentPoolLocator}/projects/{projectLocator}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_projects(self, agent_pool_locator, **kwargs): # noqa: E501 + """delete_projects # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_projects(agent_pool_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str agent_pool_locator: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.delete_projects_with_http_info(agent_pool_locator, **kwargs) # noqa: E501 + else: + (data) = self.delete_projects_with_http_info(agent_pool_locator, **kwargs) # noqa: E501 + return data + + def delete_projects_with_http_info(self, agent_pool_locator, **kwargs): # noqa: E501 + """delete_projects # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_projects_with_http_info(agent_pool_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str agent_pool_locator: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['agent_pool_locator'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_projects" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'agent_pool_locator' is set + if ('agent_pool_locator' not in params or + params['agent_pool_locator'] is None): + raise ValueError("Missing the required parameter `agent_pool_locator` when calling `delete_projects`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'agent_pool_locator' in params: + path_params['agentPoolLocator'] = params['agent_pool_locator'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/agentPools/{agentPoolLocator}/projects', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_field(self, agent_pool_locator, field, **kwargs): # noqa: E501 + """get_field # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_field(agent_pool_locator, field, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str agent_pool_locator: (required) + :param str field: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_field_with_http_info(agent_pool_locator, field, **kwargs) # noqa: E501 + else: + (data) = self.get_field_with_http_info(agent_pool_locator, field, **kwargs) # noqa: E501 + return data + + def get_field_with_http_info(self, agent_pool_locator, field, **kwargs): # noqa: E501 + """get_field # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_field_with_http_info(agent_pool_locator, field, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str agent_pool_locator: (required) + :param str field: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['agent_pool_locator', 'field'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_field" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'agent_pool_locator' is set + if ('agent_pool_locator' not in params or + params['agent_pool_locator'] is None): + raise ValueError("Missing the required parameter `agent_pool_locator` when calling `get_field`") # noqa: E501 + # verify the required parameter 'field' is set + if ('field' not in params or + params['field'] is None): + raise ValueError("Missing the required parameter `field` when calling `get_field`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'agent_pool_locator' in params: + path_params['agentPoolLocator'] = params['agent_pool_locator'] # noqa: E501 + if 'field' in params: + path_params['field'] = params['field'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/agentPools/{agentPoolLocator}/{field}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_pool(self, agent_pool_locator, **kwargs): # noqa: E501 + """get_pool # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_pool(agent_pool_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str agent_pool_locator: (required) + :param str fields: + :return: AgentPool + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_pool_with_http_info(agent_pool_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_pool_with_http_info(agent_pool_locator, **kwargs) # noqa: E501 + return data + + def get_pool_with_http_info(self, agent_pool_locator, **kwargs): # noqa: E501 + """get_pool # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_pool_with_http_info(agent_pool_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str agent_pool_locator: (required) + :param str fields: + :return: AgentPool + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['agent_pool_locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_pool" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'agent_pool_locator' is set + if ('agent_pool_locator' not in params or + params['agent_pool_locator'] is None): + raise ValueError("Missing the required parameter `agent_pool_locator` when calling `get_pool`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'agent_pool_locator' in params: + path_params['agentPoolLocator'] = params['agent_pool_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/agentPools/{agentPoolLocator}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AgentPool', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_pool_agents(self, agent_pool_locator, **kwargs): # noqa: E501 + """get_pool_agents # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_pool_agents(agent_pool_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str agent_pool_locator: (required) + :param str locator: + :param str fields: + :return: Agents + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_pool_agents_with_http_info(agent_pool_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_pool_agents_with_http_info(agent_pool_locator, **kwargs) # noqa: E501 + return data + + def get_pool_agents_with_http_info(self, agent_pool_locator, **kwargs): # noqa: E501 + """get_pool_agents # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_pool_agents_with_http_info(agent_pool_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str agent_pool_locator: (required) + :param str locator: + :param str fields: + :return: Agents + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['agent_pool_locator', 'locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_pool_agents" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'agent_pool_locator' is set + if ('agent_pool_locator' not in params or + params['agent_pool_locator'] is None): + raise ValueError("Missing the required parameter `agent_pool_locator` when calling `get_pool_agents`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'agent_pool_locator' in params: + path_params['agentPoolLocator'] = params['agent_pool_locator'] # noqa: E501 + + query_params = [] + if 'locator' in params: + query_params.append(('locator', params['locator'])) # noqa: E501 + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/agentPools/{agentPoolLocator}/agents', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Agents', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_pool_project(self, agent_pool_locator, project_locator, **kwargs): # noqa: E501 + """get_pool_project # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_pool_project(agent_pool_locator, project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str agent_pool_locator: (required) + :param str project_locator: (required) + :param str fields: + :return: Project + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_pool_project_with_http_info(agent_pool_locator, project_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_pool_project_with_http_info(agent_pool_locator, project_locator, **kwargs) # noqa: E501 + return data + + def get_pool_project_with_http_info(self, agent_pool_locator, project_locator, **kwargs): # noqa: E501 + """get_pool_project # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_pool_project_with_http_info(agent_pool_locator, project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str agent_pool_locator: (required) + :param str project_locator: (required) + :param str fields: + :return: Project + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['agent_pool_locator', 'project_locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_pool_project" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'agent_pool_locator' is set + if ('agent_pool_locator' not in params or + params['agent_pool_locator'] is None): + raise ValueError("Missing the required parameter `agent_pool_locator` when calling `get_pool_project`") # noqa: E501 + # verify the required parameter 'project_locator' is set + if ('project_locator' not in params or + params['project_locator'] is None): + raise ValueError("Missing the required parameter `project_locator` when calling `get_pool_project`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'agent_pool_locator' in params: + path_params['agentPoolLocator'] = params['agent_pool_locator'] # noqa: E501 + if 'project_locator' in params: + path_params['projectLocator'] = params['project_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/agentPools/{agentPoolLocator}/projects/{projectLocator}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Project', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_pool_projects(self, agent_pool_locator, **kwargs): # noqa: E501 + """get_pool_projects # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_pool_projects(agent_pool_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str agent_pool_locator: (required) + :param str fields: + :return: Projects + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_pool_projects_with_http_info(agent_pool_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_pool_projects_with_http_info(agent_pool_locator, **kwargs) # noqa: E501 + return data + + def get_pool_projects_with_http_info(self, agent_pool_locator, **kwargs): # noqa: E501 + """get_pool_projects # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_pool_projects_with_http_info(agent_pool_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str agent_pool_locator: (required) + :param str fields: + :return: Projects + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['agent_pool_locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_pool_projects" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'agent_pool_locator' is set + if ('agent_pool_locator' not in params or + params['agent_pool_locator'] is None): + raise ValueError("Missing the required parameter `agent_pool_locator` when calling `get_pool_projects`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'agent_pool_locator' in params: + path_params['agentPoolLocator'] = params['agent_pool_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/agentPools/{agentPoolLocator}/projects', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Projects', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_pools(self, **kwargs): # noqa: E501 + """get_pools # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_pools(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str locator: + :param str fields: + :return: AgentPools + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_pools_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.get_pools_with_http_info(**kwargs) # noqa: E501 + return data + + def get_pools_with_http_info(self, **kwargs): # noqa: E501 + """get_pools # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_pools_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str locator: + :param str fields: + :return: AgentPools + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_pools" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'locator' in params: + query_params.append(('locator', params['locator'])) # noqa: E501 + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/agentPools', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AgentPools', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_projects(self, agent_pool_locator, **kwargs): # noqa: E501 + """replace_projects # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.replace_projects(agent_pool_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str agent_pool_locator: (required) + :param Projects body: + :return: Projects + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.replace_projects_with_http_info(agent_pool_locator, **kwargs) # noqa: E501 + else: + (data) = self.replace_projects_with_http_info(agent_pool_locator, **kwargs) # noqa: E501 + return data + + def replace_projects_with_http_info(self, agent_pool_locator, **kwargs): # noqa: E501 + """replace_projects # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.replace_projects_with_http_info(agent_pool_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str agent_pool_locator: (required) + :param Projects body: + :return: Projects + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['agent_pool_locator', 'body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_projects" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'agent_pool_locator' is set + if ('agent_pool_locator' not in params or + params['agent_pool_locator'] is None): + raise ValueError("Missing the required parameter `agent_pool_locator` when calling `replace_projects`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'agent_pool_locator' in params: + path_params['agentPoolLocator'] = params['agent_pool_locator'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/agentPools/{agentPoolLocator}/projects', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Projects', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def set_field(self, agent_pool_locator, field, **kwargs): # noqa: E501 + """set_field # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.set_field(agent_pool_locator, field, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str agent_pool_locator: (required) + :param str field: (required) + :param str body: + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.set_field_with_http_info(agent_pool_locator, field, **kwargs) # noqa: E501 + else: + (data) = self.set_field_with_http_info(agent_pool_locator, field, **kwargs) # noqa: E501 + return data + + def set_field_with_http_info(self, agent_pool_locator, field, **kwargs): # noqa: E501 + """set_field # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.set_field_with_http_info(agent_pool_locator, field, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str agent_pool_locator: (required) + :param str field: (required) + :param str body: + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['agent_pool_locator', 'field', 'body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method set_field" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'agent_pool_locator' is set + if ('agent_pool_locator' not in params or + params['agent_pool_locator'] is None): + raise ValueError("Missing the required parameter `agent_pool_locator` when calling `set_field`") # noqa: E501 + # verify the required parameter 'field' is set + if ('field' not in params or + params['field'] is None): + raise ValueError("Missing the required parameter `field` when calling `set_field`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'agent_pool_locator' in params: + path_params['agentPoolLocator'] = params['agent_pool_locator'] # noqa: E501 + if 'field' in params: + path_params['field'] = params['field'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/agentPools/{agentPoolLocator}/{field}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/swagger_client/api/build_api.py b/swagger_client/api/build_api.py new file mode 100644 index 0000000..7d19036 --- /dev/null +++ b/swagger_client/api/build_api.py @@ -0,0 +1,3585 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from swagger_client.api_client import ApiClient + + +class BuildApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def add_tags(self, build_locator, **kwargs): # noqa: E501 + """add_tags # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_tags(build_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str build_locator: (required) + :param Tags body: + :param str fields: + :return: Tags + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.add_tags_with_http_info(build_locator, **kwargs) # noqa: E501 + else: + (data) = self.add_tags_with_http_info(build_locator, **kwargs) # noqa: E501 + return data + + def add_tags_with_http_info(self, build_locator, **kwargs): # noqa: E501 + """add_tags # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_tags_with_http_info(build_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str build_locator: (required) + :param Tags body: + :param str fields: + :return: Tags + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['build_locator', 'body', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method add_tags" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'build_locator' is set + if ('build_locator' not in params or + params['build_locator'] is None): + raise ValueError("Missing the required parameter `build_locator` when calling `add_tags`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'build_locator' in params: + path_params['buildLocator'] = params['build_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/builds/{buildLocator}/tags', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Tags', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def cancel_build(self, build_locator, **kwargs): # noqa: E501 + """cancel_build # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.cancel_build(build_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str build_locator: (required) + :param BuildCancelRequest body: + :param str fields: + :return: Build + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.cancel_build_with_http_info(build_locator, **kwargs) # noqa: E501 + else: + (data) = self.cancel_build_with_http_info(build_locator, **kwargs) # noqa: E501 + return data + + def cancel_build_with_http_info(self, build_locator, **kwargs): # noqa: E501 + """cancel_build # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.cancel_build_with_http_info(build_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str build_locator: (required) + :param BuildCancelRequest body: + :param str fields: + :return: Build + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['build_locator', 'body', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method cancel_build" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'build_locator' is set + if ('build_locator' not in params or + params['build_locator'] is None): + raise ValueError("Missing the required parameter `build_locator` when calling `cancel_build`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'build_locator' in params: + path_params['buildLocator'] = params['build_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/builds/{buildLocator}', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Build', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def cancel_build_0(self, build_locator, **kwargs): # noqa: E501 + """cancel_build_0 # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.cancel_build_0(build_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str build_locator: (required) + :return: BuildCancelRequest + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.cancel_build_0_with_http_info(build_locator, **kwargs) # noqa: E501 + else: + (data) = self.cancel_build_0_with_http_info(build_locator, **kwargs) # noqa: E501 + return data + + def cancel_build_0_with_http_info(self, build_locator, **kwargs): # noqa: E501 + """cancel_build_0 # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.cancel_build_0_with_http_info(build_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str build_locator: (required) + :return: BuildCancelRequest + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['build_locator'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method cancel_build_0" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'build_locator' is set + if ('build_locator' not in params or + params['build_locator'] is None): + raise ValueError("Missing the required parameter `build_locator` when calling `cancel_build_0`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'build_locator' in params: + path_params['buildLocator'] = params['build_locator'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/builds/{buildLocator}/example/buildCancelRequest', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='BuildCancelRequest', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_build(self, build_locator, **kwargs): # noqa: E501 + """delete_build # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_build(build_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str build_locator: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.delete_build_with_http_info(build_locator, **kwargs) # noqa: E501 + else: + (data) = self.delete_build_with_http_info(build_locator, **kwargs) # noqa: E501 + return data + + def delete_build_with_http_info(self, build_locator, **kwargs): # noqa: E501 + """delete_build # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_build_with_http_info(build_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str build_locator: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['build_locator'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_build" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'build_locator' is set + if ('build_locator' not in params or + params['build_locator'] is None): + raise ValueError("Missing the required parameter `build_locator` when calling `delete_build`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'build_locator' in params: + path_params['buildLocator'] = params['build_locator'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/builds/{buildLocator}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_builds(self, **kwargs): # noqa: E501 + """delete_builds # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_builds(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str locator: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.delete_builds_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.delete_builds_with_http_info(**kwargs) # noqa: E501 + return data + + def delete_builds_with_http_info(self, **kwargs): # noqa: E501 + """delete_builds # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_builds_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str locator: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['locator'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_builds" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'locator' in params: + query_params.append(('locator', params['locator'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/builds', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_comment(self, build_locator, **kwargs): # noqa: E501 + """delete_comment # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_comment(build_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str build_locator: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.delete_comment_with_http_info(build_locator, **kwargs) # noqa: E501 + else: + (data) = self.delete_comment_with_http_info(build_locator, **kwargs) # noqa: E501 + return data + + def delete_comment_with_http_info(self, build_locator, **kwargs): # noqa: E501 + """delete_comment # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_comment_with_http_info(build_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str build_locator: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['build_locator'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_comment" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'build_locator' is set + if ('build_locator' not in params or + params['build_locator'] is None): + raise ValueError("Missing the required parameter `build_locator` when calling `delete_comment`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'build_locator' in params: + path_params['buildLocator'] = params['build_locator'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/builds/{buildLocator}/comment', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_artifacts_directory(self, build_locator, **kwargs): # noqa: E501 + """get_artifacts_directory # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_artifacts_directory(build_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str build_locator: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_artifacts_directory_with_http_info(build_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_artifacts_directory_with_http_info(build_locator, **kwargs) # noqa: E501 + return data + + def get_artifacts_directory_with_http_info(self, build_locator, **kwargs): # noqa: E501 + """get_artifacts_directory # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_artifacts_directory_with_http_info(build_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str build_locator: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['build_locator'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_artifacts_directory" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'build_locator' is set + if ('build_locator' not in params or + params['build_locator'] is None): + raise ValueError("Missing the required parameter `build_locator` when calling `get_artifacts_directory`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'build_locator' in params: + path_params['buildLocator'] = params['build_locator'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/builds/{buildLocator}/artifactsDirectory', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_canceled_info(self, build_locator, **kwargs): # noqa: E501 + """get_canceled_info # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_canceled_info(build_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str build_locator: (required) + :param str fields: + :return: Comment + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_canceled_info_with_http_info(build_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_canceled_info_with_http_info(build_locator, **kwargs) # noqa: E501 + return data + + def get_canceled_info_with_http_info(self, build_locator, **kwargs): # noqa: E501 + """get_canceled_info # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_canceled_info_with_http_info(build_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str build_locator: (required) + :param str fields: + :return: Comment + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['build_locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_canceled_info" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'build_locator' is set + if ('build_locator' not in params or + params['build_locator'] is None): + raise ValueError("Missing the required parameter `build_locator` when calling `get_canceled_info`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'build_locator' in params: + path_params['buildLocator'] = params['build_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/builds/{buildLocator}/canceledInfo', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Comment', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_children(self, path, build_locator, **kwargs): # noqa: E501 + """get_children # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_children(path, build_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str path: (required) + :param str build_locator: (required) + :param str base_path: + :param str locator: + :param str fields: + :param bool resolve_parameters: + :param bool log_build_usage: + :return: Files + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_children_with_http_info(path, build_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_children_with_http_info(path, build_locator, **kwargs) # noqa: E501 + return data + + def get_children_with_http_info(self, path, build_locator, **kwargs): # noqa: E501 + """get_children # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_children_with_http_info(path, build_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str path: (required) + :param str build_locator: (required) + :param str base_path: + :param str locator: + :param str fields: + :param bool resolve_parameters: + :param bool log_build_usage: + :return: Files + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['path', 'build_locator', 'base_path', 'locator', 'fields', 'resolve_parameters', 'log_build_usage'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_children" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'path' is set + if ('path' not in params or + params['path'] is None): + raise ValueError("Missing the required parameter `path` when calling `get_children`") # noqa: E501 + # verify the required parameter 'build_locator' is set + if ('build_locator' not in params or + params['build_locator'] is None): + raise ValueError("Missing the required parameter `build_locator` when calling `get_children`") # noqa: E501 + + if 'path' in params and not re.search('(\/.*)?', params['path']): # noqa: E501 + raise ValueError("Invalid value for parameter `path` when calling `get_children`, must conform to the pattern `/(\/.*)?/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'path' in params: + path_params['path'] = params['path'] # noqa: E501 + if 'build_locator' in params: + path_params['buildLocator'] = params['build_locator'] # noqa: E501 + + query_params = [] + if 'base_path' in params: + query_params.append(('basePath', params['base_path'])) # noqa: E501 + if 'locator' in params: + query_params.append(('locator', params['locator'])) # noqa: E501 + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + if 'resolve_parameters' in params: + query_params.append(('resolveParameters', params['resolve_parameters'])) # noqa: E501 + if 'log_build_usage' in params: + query_params.append(('logBuildUsage', params['log_build_usage'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/builds/{buildLocator}/artifacts/children{path}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Files', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_children_alias(self, path, build_locator, **kwargs): # noqa: E501 + """get_children_alias # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_children_alias(path, build_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str path: (required) + :param str build_locator: (required) + :param str base_path: + :param str locator: + :param str fields: + :param bool resolve_parameters: + :param bool log_build_usage: + :return: Files + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_children_alias_with_http_info(path, build_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_children_alias_with_http_info(path, build_locator, **kwargs) # noqa: E501 + return data + + def get_children_alias_with_http_info(self, path, build_locator, **kwargs): # noqa: E501 + """get_children_alias # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_children_alias_with_http_info(path, build_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str path: (required) + :param str build_locator: (required) + :param str base_path: + :param str locator: + :param str fields: + :param bool resolve_parameters: + :param bool log_build_usage: + :return: Files + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['path', 'build_locator', 'base_path', 'locator', 'fields', 'resolve_parameters', 'log_build_usage'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_children_alias" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'path' is set + if ('path' not in params or + params['path'] is None): + raise ValueError("Missing the required parameter `path` when calling `get_children_alias`") # noqa: E501 + # verify the required parameter 'build_locator' is set + if ('build_locator' not in params or + params['build_locator'] is None): + raise ValueError("Missing the required parameter `build_locator` when calling `get_children_alias`") # noqa: E501 + + if 'path' in params and not re.search('(.*)?', params['path']): # noqa: E501 + raise ValueError("Invalid value for parameter `path` when calling `get_children_alias`, must conform to the pattern `/(.*)?/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'path' in params: + path_params['path'] = params['path'] # noqa: E501 + if 'build_locator' in params: + path_params['buildLocator'] = params['build_locator'] # noqa: E501 + + query_params = [] + if 'base_path' in params: + query_params.append(('basePath', params['base_path'])) # noqa: E501 + if 'locator' in params: + query_params.append(('locator', params['locator'])) # noqa: E501 + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + if 'resolve_parameters' in params: + query_params.append(('resolveParameters', params['resolve_parameters'])) # noqa: E501 + if 'log_build_usage' in params: + query_params.append(('logBuildUsage', params['log_build_usage'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/builds/{buildLocator}/artifacts/{path}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Files', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_content(self, path, build_locator, **kwargs): # noqa: E501 + """get_content # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_content(path, build_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str path: (required) + :param str build_locator: (required) + :param bool resolve_parameters: + :param bool log_build_usage: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_content_with_http_info(path, build_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_content_with_http_info(path, build_locator, **kwargs) # noqa: E501 + return data + + def get_content_with_http_info(self, path, build_locator, **kwargs): # noqa: E501 + """get_content # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_content_with_http_info(path, build_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str path: (required) + :param str build_locator: (required) + :param bool resolve_parameters: + :param bool log_build_usage: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['path', 'build_locator', 'resolve_parameters', 'log_build_usage'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_content" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'path' is set + if ('path' not in params or + params['path'] is None): + raise ValueError("Missing the required parameter `path` when calling `get_content`") # noqa: E501 + # verify the required parameter 'build_locator' is set + if ('build_locator' not in params or + params['build_locator'] is None): + raise ValueError("Missing the required parameter `build_locator` when calling `get_content`") # noqa: E501 + + if 'path' in params and not re.search('(\/.*)?', params['path']): # noqa: E501 + raise ValueError("Invalid value for parameter `path` when calling `get_content`, must conform to the pattern `/(\/.*)?/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'path' in params: + path_params['path'] = params['path'] # noqa: E501 + if 'build_locator' in params: + path_params['buildLocator'] = params['build_locator'] # noqa: E501 + + query_params = [] + if 'resolve_parameters' in params: + query_params.append(('resolveParameters', params['resolve_parameters'])) # noqa: E501 + if 'log_build_usage' in params: + query_params.append(('logBuildUsage', params['log_build_usage'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/builds/{buildLocator}/artifacts/content{path}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_content_alias(self, path, build_locator, **kwargs): # noqa: E501 + """get_content_alias # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_content_alias(path, build_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str path: (required) + :param str build_locator: (required) + :param bool resolve_parameters: + :param bool log_build_usage: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_content_alias_with_http_info(path, build_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_content_alias_with_http_info(path, build_locator, **kwargs) # noqa: E501 + return data + + def get_content_alias_with_http_info(self, path, build_locator, **kwargs): # noqa: E501 + """get_content_alias # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_content_alias_with_http_info(path, build_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str path: (required) + :param str build_locator: (required) + :param bool resolve_parameters: + :param bool log_build_usage: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['path', 'build_locator', 'resolve_parameters', 'log_build_usage'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_content_alias" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'path' is set + if ('path' not in params or + params['path'] is None): + raise ValueError("Missing the required parameter `path` when calling `get_content_alias`") # noqa: E501 + # verify the required parameter 'build_locator' is set + if ('build_locator' not in params or + params['build_locator'] is None): + raise ValueError("Missing the required parameter `build_locator` when calling `get_content_alias`") # noqa: E501 + + if 'path' in params and not re.search('(\/.*)?', params['path']): # noqa: E501 + raise ValueError("Invalid value for parameter `path` when calling `get_content_alias`, must conform to the pattern `/(\/.*)?/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'path' in params: + path_params['path'] = params['path'] # noqa: E501 + if 'build_locator' in params: + path_params['buildLocator'] = params['build_locator'] # noqa: E501 + + query_params = [] + if 'resolve_parameters' in params: + query_params.append(('resolveParameters', params['resolve_parameters'])) # noqa: E501 + if 'log_build_usage' in params: + query_params.append(('logBuildUsage', params['log_build_usage'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/builds/{buildLocator}/artifacts/files{path}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_metadata(self, path, build_locator, **kwargs): # noqa: E501 + """get_metadata # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_metadata(path, build_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str path: (required) + :param str build_locator: (required) + :param str fields: + :param bool resolve_parameters: + :param bool log_build_usage: + :return: file + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_metadata_with_http_info(path, build_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_metadata_with_http_info(path, build_locator, **kwargs) # noqa: E501 + return data + + def get_metadata_with_http_info(self, path, build_locator, **kwargs): # noqa: E501 + """get_metadata # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_metadata_with_http_info(path, build_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str path: (required) + :param str build_locator: (required) + :param str fields: + :param bool resolve_parameters: + :param bool log_build_usage: + :return: file + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['path', 'build_locator', 'fields', 'resolve_parameters', 'log_build_usage'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_metadata" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'path' is set + if ('path' not in params or + params['path'] is None): + raise ValueError("Missing the required parameter `path` when calling `get_metadata`") # noqa: E501 + # verify the required parameter 'build_locator' is set + if ('build_locator' not in params or + params['build_locator'] is None): + raise ValueError("Missing the required parameter `build_locator` when calling `get_metadata`") # noqa: E501 + + if 'path' in params and not re.search('(\/.*)?', params['path']): # noqa: E501 + raise ValueError("Invalid value for parameter `path` when calling `get_metadata`, must conform to the pattern `/(\/.*)?/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'path' in params: + path_params['path'] = params['path'] # noqa: E501 + if 'build_locator' in params: + path_params['buildLocator'] = params['build_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + if 'resolve_parameters' in params: + query_params.append(('resolveParameters', params['resolve_parameters'])) # noqa: E501 + if 'log_build_usage' in params: + query_params.append(('logBuildUsage', params['log_build_usage'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/builds/{buildLocator}/artifacts/metadata{path}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='file', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_parameter(self, build_locator, property_name, **kwargs): # noqa: E501 + """get_parameter # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_parameter(build_locator, property_name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str build_locator: (required) + :param str property_name: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_parameter_with_http_info(build_locator, property_name, **kwargs) # noqa: E501 + else: + (data) = self.get_parameter_with_http_info(build_locator, property_name, **kwargs) # noqa: E501 + return data + + def get_parameter_with_http_info(self, build_locator, property_name, **kwargs): # noqa: E501 + """get_parameter # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_parameter_with_http_info(build_locator, property_name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str build_locator: (required) + :param str property_name: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['build_locator', 'property_name'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_parameter" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'build_locator' is set + if ('build_locator' not in params or + params['build_locator'] is None): + raise ValueError("Missing the required parameter `build_locator` when calling `get_parameter`") # noqa: E501 + # verify the required parameter 'property_name' is set + if ('property_name' not in params or + params['property_name'] is None): + raise ValueError("Missing the required parameter `property_name` when calling `get_parameter`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'build_locator' in params: + path_params['buildLocator'] = params['build_locator'] # noqa: E501 + if 'property_name' in params: + path_params['propertyName'] = params['property_name'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/builds/{buildLocator}/resulting-properties/{propertyName}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_pinned(self, build_locator, **kwargs): # noqa: E501 + """get_pinned # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_pinned(build_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str build_locator: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_pinned_with_http_info(build_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_pinned_with_http_info(build_locator, **kwargs) # noqa: E501 + return data + + def get_pinned_with_http_info(self, build_locator, **kwargs): # noqa: E501 + """get_pinned # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_pinned_with_http_info(build_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str build_locator: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['build_locator'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_pinned" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'build_locator' is set + if ('build_locator' not in params or + params['build_locator'] is None): + raise ValueError("Missing the required parameter `build_locator` when calling `get_pinned`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'build_locator' in params: + path_params['buildLocator'] = params['build_locator'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/builds/{buildLocator}/pin', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_problems(self, build_locator, **kwargs): # noqa: E501 + """get_problems # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_problems(build_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str build_locator: (required) + :param str fields: + :return: ProblemOccurrences + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_problems_with_http_info(build_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_problems_with_http_info(build_locator, **kwargs) # noqa: E501 + return data + + def get_problems_with_http_info(self, build_locator, **kwargs): # noqa: E501 + """get_problems # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_problems_with_http_info(build_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str build_locator: (required) + :param str fields: + :return: ProblemOccurrences + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['build_locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_problems" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'build_locator' is set + if ('build_locator' not in params or + params['build_locator'] is None): + raise ValueError("Missing the required parameter `build_locator` when calling `get_problems`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'build_locator' in params: + path_params['buildLocator'] = params['build_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/builds/{buildLocator}/problemOccurrences', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ProblemOccurrences', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_root(self, build_locator, **kwargs): # noqa: E501 + """get_root # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_root(build_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str build_locator: (required) + :param str base_path: + :param str locator: + :param str fields: + :param bool resolve_parameters: + :param bool log_build_usage: + :return: Files + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_root_with_http_info(build_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_root_with_http_info(build_locator, **kwargs) # noqa: E501 + return data + + def get_root_with_http_info(self, build_locator, **kwargs): # noqa: E501 + """get_root # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_root_with_http_info(build_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str build_locator: (required) + :param str base_path: + :param str locator: + :param str fields: + :param bool resolve_parameters: + :param bool log_build_usage: + :return: Files + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['build_locator', 'base_path', 'locator', 'fields', 'resolve_parameters', 'log_build_usage'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_root" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'build_locator' is set + if ('build_locator' not in params or + params['build_locator'] is None): + raise ValueError("Missing the required parameter `build_locator` when calling `get_root`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'build_locator' in params: + path_params['buildLocator'] = params['build_locator'] # noqa: E501 + + query_params = [] + if 'base_path' in params: + query_params.append(('basePath', params['base_path'])) # noqa: E501 + if 'locator' in params: + query_params.append(('locator', params['locator'])) # noqa: E501 + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + if 'resolve_parameters' in params: + query_params.append(('resolveParameters', params['resolve_parameters'])) # noqa: E501 + if 'log_build_usage' in params: + query_params.append(('logBuildUsage', params['log_build_usage'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/builds/{buildLocator}/artifacts', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Files', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_tests(self, build_locator, **kwargs): # noqa: E501 + """get_tests # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_tests(build_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str build_locator: (required) + :param str fields: + :return: TestOccurrences + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_tests_with_http_info(build_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_tests_with_http_info(build_locator, **kwargs) # noqa: E501 + return data + + def get_tests_with_http_info(self, build_locator, **kwargs): # noqa: E501 + """get_tests # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_tests_with_http_info(build_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str build_locator: (required) + :param str fields: + :return: TestOccurrences + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['build_locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_tests" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'build_locator' is set + if ('build_locator' not in params or + params['build_locator'] is None): + raise ValueError("Missing the required parameter `build_locator` when calling `get_tests`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'build_locator' in params: + path_params['buildLocator'] = params['build_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/builds/{buildLocator}/testOccurrences', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='TestOccurrences', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_zipped(self, path, build_locator, **kwargs): # noqa: E501 + """get_zipped # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_zipped(path, build_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str path: (required) + :param str build_locator: (required) + :param str base_path: + :param str locator: + :param str name: + :param bool resolve_parameters: + :param bool log_build_usage: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_zipped_with_http_info(path, build_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_zipped_with_http_info(path, build_locator, **kwargs) # noqa: E501 + return data + + def get_zipped_with_http_info(self, path, build_locator, **kwargs): # noqa: E501 + """get_zipped # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_zipped_with_http_info(path, build_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str path: (required) + :param str build_locator: (required) + :param str base_path: + :param str locator: + :param str name: + :param bool resolve_parameters: + :param bool log_build_usage: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['path', 'build_locator', 'base_path', 'locator', 'name', 'resolve_parameters', 'log_build_usage'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_zipped" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'path' is set + if ('path' not in params or + params['path'] is None): + raise ValueError("Missing the required parameter `path` when calling `get_zipped`") # noqa: E501 + # verify the required parameter 'build_locator' is set + if ('build_locator' not in params or + params['build_locator'] is None): + raise ValueError("Missing the required parameter `build_locator` when calling `get_zipped`") # noqa: E501 + + if 'path' in params and not re.search('(\/.*)?', params['path']): # noqa: E501 + raise ValueError("Invalid value for parameter `path` when calling `get_zipped`, must conform to the pattern `/(\/.*)?/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'path' in params: + path_params['path'] = params['path'] # noqa: E501 + if 'build_locator' in params: + path_params['buildLocator'] = params['build_locator'] # noqa: E501 + + query_params = [] + if 'base_path' in params: + query_params.append(('basePath', params['base_path'])) # noqa: E501 + if 'locator' in params: + query_params.append(('locator', params['locator'])) # noqa: E501 + if 'name' in params: + query_params.append(('name', params['name'])) # noqa: E501 + if 'resolve_parameters' in params: + query_params.append(('resolveParameters', params['resolve_parameters'])) # noqa: E501 + if 'log_build_usage' in params: + query_params.append(('logBuildUsage', params['log_build_usage'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/builds/{buildLocator}/artifacts/archived{path}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def pin_build(self, build_locator, **kwargs): # noqa: E501 + """pin_build # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.pin_build(build_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str build_locator: (required) + :param str body: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.pin_build_with_http_info(build_locator, **kwargs) # noqa: E501 + else: + (data) = self.pin_build_with_http_info(build_locator, **kwargs) # noqa: E501 + return data + + def pin_build_with_http_info(self, build_locator, **kwargs): # noqa: E501 + """pin_build # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.pin_build_with_http_info(build_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str build_locator: (required) + :param str body: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['build_locator', 'body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method pin_build" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'build_locator' is set + if ('build_locator' not in params or + params['build_locator'] is None): + raise ValueError("Missing the required parameter `build_locator` when calling `pin_build`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'build_locator' in params: + path_params['buildLocator'] = params['build_locator'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/builds/{buildLocator}/pin', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_comment(self, build_locator, **kwargs): # noqa: E501 + """replace_comment # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.replace_comment(build_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str build_locator: (required) + :param str body: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.replace_comment_with_http_info(build_locator, **kwargs) # noqa: E501 + else: + (data) = self.replace_comment_with_http_info(build_locator, **kwargs) # noqa: E501 + return data + + def replace_comment_with_http_info(self, build_locator, **kwargs): # noqa: E501 + """replace_comment # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.replace_comment_with_http_info(build_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str build_locator: (required) + :param str body: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['build_locator', 'body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_comment" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'build_locator' is set + if ('build_locator' not in params or + params['build_locator'] is None): + raise ValueError("Missing the required parameter `build_locator` when calling `replace_comment`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'build_locator' in params: + path_params['buildLocator'] = params['build_locator'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/builds/{buildLocator}/comment', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_tags(self, build_locator, **kwargs): # noqa: E501 + """replace_tags # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.replace_tags(build_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str build_locator: (required) + :param str locator: + :param Tags body: + :param str fields: + :return: Tags + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.replace_tags_with_http_info(build_locator, **kwargs) # noqa: E501 + else: + (data) = self.replace_tags_with_http_info(build_locator, **kwargs) # noqa: E501 + return data + + def replace_tags_with_http_info(self, build_locator, **kwargs): # noqa: E501 + """replace_tags # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.replace_tags_with_http_info(build_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str build_locator: (required) + :param str locator: + :param Tags body: + :param str fields: + :return: Tags + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['build_locator', 'locator', 'body', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_tags" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'build_locator' is set + if ('build_locator' not in params or + params['build_locator'] is None): + raise ValueError("Missing the required parameter `build_locator` when calling `replace_tags`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'build_locator' in params: + path_params['buildLocator'] = params['build_locator'] # noqa: E501 + + query_params = [] + if 'locator' in params: + query_params.append(('locator', params['locator'])) # noqa: E501 + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/builds/{buildLocator}/tags', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Tags', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def serve_aggregated_build_status(self, build_locator, **kwargs): # noqa: E501 + """serve_aggregated_build_status # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_aggregated_build_status(build_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str build_locator: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.serve_aggregated_build_status_with_http_info(build_locator, **kwargs) # noqa: E501 + else: + (data) = self.serve_aggregated_build_status_with_http_info(build_locator, **kwargs) # noqa: E501 + return data + + def serve_aggregated_build_status_with_http_info(self, build_locator, **kwargs): # noqa: E501 + """serve_aggregated_build_status # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_aggregated_build_status_with_http_info(build_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str build_locator: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['build_locator'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method serve_aggregated_build_status" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'build_locator' is set + if ('build_locator' not in params or + params['build_locator'] is None): + raise ValueError("Missing the required parameter `build_locator` when calling `serve_aggregated_build_status`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'build_locator' in params: + path_params['buildLocator'] = params['build_locator'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/builds/aggregated/{buildLocator}/status', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def serve_aggregated_build_status_icon(self, build_locator, suffix, **kwargs): # noqa: E501 + """serve_aggregated_build_status_icon # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_aggregated_build_status_icon(build_locator, suffix, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str build_locator: (required) + :param str suffix: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.serve_aggregated_build_status_icon_with_http_info(build_locator, suffix, **kwargs) # noqa: E501 + else: + (data) = self.serve_aggregated_build_status_icon_with_http_info(build_locator, suffix, **kwargs) # noqa: E501 + return data + + def serve_aggregated_build_status_icon_with_http_info(self, build_locator, suffix, **kwargs): # noqa: E501 + """serve_aggregated_build_status_icon # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_aggregated_build_status_icon_with_http_info(build_locator, suffix, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str build_locator: (required) + :param str suffix: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['build_locator', 'suffix'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method serve_aggregated_build_status_icon" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'build_locator' is set + if ('build_locator' not in params or + params['build_locator'] is None): + raise ValueError("Missing the required parameter `build_locator` when calling `serve_aggregated_build_status_icon`") # noqa: E501 + # verify the required parameter 'suffix' is set + if ('suffix' not in params or + params['suffix'] is None): + raise ValueError("Missing the required parameter `suffix` when calling `serve_aggregated_build_status_icon`") # noqa: E501 + + if 'suffix' in params and not re.search('(.*)?', params['suffix']): # noqa: E501 + raise ValueError("Invalid value for parameter `suffix` when calling `serve_aggregated_build_status_icon`, must conform to the pattern `/(.*)?/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'build_locator' in params: + path_params['buildLocator'] = params['build_locator'] # noqa: E501 + if 'suffix' in params: + path_params['suffix'] = params['suffix'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/builds/aggregated/{buildLocator}/statusIcon{suffix}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def serve_all_builds(self, **kwargs): # noqa: E501 + """serve_all_builds # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_all_builds(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str build_type: + :param str status: + :param str triggered_by_user: + :param bool include_personal: + :param bool include_canceled: + :param bool only_pinned: + :param list[str] tag: + :param str agent_name: + :param str since_build: + :param str since_date: + :param int start: + :param int count: + :param str locator: + :param str fields: + :return: Builds + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.serve_all_builds_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.serve_all_builds_with_http_info(**kwargs) # noqa: E501 + return data + + def serve_all_builds_with_http_info(self, **kwargs): # noqa: E501 + """serve_all_builds # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_all_builds_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str build_type: + :param str status: + :param str triggered_by_user: + :param bool include_personal: + :param bool include_canceled: + :param bool only_pinned: + :param list[str] tag: + :param str agent_name: + :param str since_build: + :param str since_date: + :param int start: + :param int count: + :param str locator: + :param str fields: + :return: Builds + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['build_type', 'status', 'triggered_by_user', 'include_personal', 'include_canceled', 'only_pinned', 'tag', 'agent_name', 'since_build', 'since_date', 'start', 'count', 'locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method serve_all_builds" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'build_type' in params: + query_params.append(('buildType', params['build_type'])) # noqa: E501 + if 'status' in params: + query_params.append(('status', params['status'])) # noqa: E501 + if 'triggered_by_user' in params: + query_params.append(('triggeredByUser', params['triggered_by_user'])) # noqa: E501 + if 'include_personal' in params: + query_params.append(('includePersonal', params['include_personal'])) # noqa: E501 + if 'include_canceled' in params: + query_params.append(('includeCanceled', params['include_canceled'])) # noqa: E501 + if 'only_pinned' in params: + query_params.append(('onlyPinned', params['only_pinned'])) # noqa: E501 + if 'tag' in params: + query_params.append(('tag', params['tag'])) # noqa: E501 + collection_formats['tag'] = 'multi' # noqa: E501 + if 'agent_name' in params: + query_params.append(('agentName', params['agent_name'])) # noqa: E501 + if 'since_build' in params: + query_params.append(('sinceBuild', params['since_build'])) # noqa: E501 + if 'since_date' in params: + query_params.append(('sinceDate', params['since_date'])) # noqa: E501 + if 'start' in params: + query_params.append(('start', params['start'])) # noqa: E501 + if 'count' in params: + query_params.append(('count', params['count'])) # noqa: E501 + if 'locator' in params: + query_params.append(('locator', params['locator'])) # noqa: E501 + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/builds', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Builds', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def serve_build(self, build_locator, **kwargs): # noqa: E501 + """serve_build # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_build(build_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str build_locator: (required) + :param str fields: + :return: Build + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.serve_build_with_http_info(build_locator, **kwargs) # noqa: E501 + else: + (data) = self.serve_build_with_http_info(build_locator, **kwargs) # noqa: E501 + return data + + def serve_build_with_http_info(self, build_locator, **kwargs): # noqa: E501 + """serve_build # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_build_with_http_info(build_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str build_locator: (required) + :param str fields: + :return: Build + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['build_locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method serve_build" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'build_locator' is set + if ('build_locator' not in params or + params['build_locator'] is None): + raise ValueError("Missing the required parameter `build_locator` when calling `serve_build`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'build_locator' in params: + path_params['buildLocator'] = params['build_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/builds/{buildLocator}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Build', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def serve_build_actual_parameters(self, build_locator, **kwargs): # noqa: E501 + """serve_build_actual_parameters # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_build_actual_parameters(build_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str build_locator: (required) + :param str fields: + :return: Properties + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.serve_build_actual_parameters_with_http_info(build_locator, **kwargs) # noqa: E501 + else: + (data) = self.serve_build_actual_parameters_with_http_info(build_locator, **kwargs) # noqa: E501 + return data + + def serve_build_actual_parameters_with_http_info(self, build_locator, **kwargs): # noqa: E501 + """serve_build_actual_parameters # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_build_actual_parameters_with_http_info(build_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str build_locator: (required) + :param str fields: + :return: Properties + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['build_locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method serve_build_actual_parameters" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'build_locator' is set + if ('build_locator' not in params or + params['build_locator'] is None): + raise ValueError("Missing the required parameter `build_locator` when calling `serve_build_actual_parameters`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'build_locator' in params: + path_params['buildLocator'] = params['build_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/builds/{buildLocator}/resulting-properties', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Properties', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def serve_build_field_by_build_only(self, build_locator, field, **kwargs): # noqa: E501 + """serve_build_field_by_build_only # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_build_field_by_build_only(build_locator, field, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str build_locator: (required) + :param str field: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.serve_build_field_by_build_only_with_http_info(build_locator, field, **kwargs) # noqa: E501 + else: + (data) = self.serve_build_field_by_build_only_with_http_info(build_locator, field, **kwargs) # noqa: E501 + return data + + def serve_build_field_by_build_only_with_http_info(self, build_locator, field, **kwargs): # noqa: E501 + """serve_build_field_by_build_only # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_build_field_by_build_only_with_http_info(build_locator, field, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str build_locator: (required) + :param str field: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['build_locator', 'field'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method serve_build_field_by_build_only" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'build_locator' is set + if ('build_locator' not in params or + params['build_locator'] is None): + raise ValueError("Missing the required parameter `build_locator` when calling `serve_build_field_by_build_only`") # noqa: E501 + # verify the required parameter 'field' is set + if ('field' not in params or + params['field'] is None): + raise ValueError("Missing the required parameter `field` when calling `serve_build_field_by_build_only`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'build_locator' in params: + path_params['buildLocator'] = params['build_locator'] # noqa: E501 + if 'field' in params: + path_params['field'] = params['field'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/builds/{buildLocator}/{field}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def serve_build_related_issues(self, build_locator, **kwargs): # noqa: E501 + """serve_build_related_issues # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_build_related_issues(build_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str build_locator: (required) + :param str fields: + :return: IssuesUsages + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.serve_build_related_issues_with_http_info(build_locator, **kwargs) # noqa: E501 + else: + (data) = self.serve_build_related_issues_with_http_info(build_locator, **kwargs) # noqa: E501 + return data + + def serve_build_related_issues_with_http_info(self, build_locator, **kwargs): # noqa: E501 + """serve_build_related_issues # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_build_related_issues_with_http_info(build_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str build_locator: (required) + :param str fields: + :return: IssuesUsages + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['build_locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method serve_build_related_issues" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'build_locator' is set + if ('build_locator' not in params or + params['build_locator'] is None): + raise ValueError("Missing the required parameter `build_locator` when calling `serve_build_related_issues`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'build_locator' in params: + path_params['buildLocator'] = params['build_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/builds/{buildLocator}/relatedIssues', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='IssuesUsages', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def serve_build_related_issues_old(self, build_locator, **kwargs): # noqa: E501 + """serve_build_related_issues_old # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_build_related_issues_old(build_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str build_locator: (required) + :param str fields: + :return: IssuesUsages + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.serve_build_related_issues_old_with_http_info(build_locator, **kwargs) # noqa: E501 + else: + (data) = self.serve_build_related_issues_old_with_http_info(build_locator, **kwargs) # noqa: E501 + return data + + def serve_build_related_issues_old_with_http_info(self, build_locator, **kwargs): # noqa: E501 + """serve_build_related_issues_old # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_build_related_issues_old_with_http_info(build_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str build_locator: (required) + :param str fields: + :return: IssuesUsages + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['build_locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method serve_build_related_issues_old" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'build_locator' is set + if ('build_locator' not in params or + params['build_locator'] is None): + raise ValueError("Missing the required parameter `build_locator` when calling `serve_build_related_issues_old`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'build_locator' in params: + path_params['buildLocator'] = params['build_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/builds/{buildLocator}/related-issues', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='IssuesUsages', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def serve_build_statistic_value(self, build_locator, name, **kwargs): # noqa: E501 + """serve_build_statistic_value # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_build_statistic_value(build_locator, name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str build_locator: (required) + :param str name: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.serve_build_statistic_value_with_http_info(build_locator, name, **kwargs) # noqa: E501 + else: + (data) = self.serve_build_statistic_value_with_http_info(build_locator, name, **kwargs) # noqa: E501 + return data + + def serve_build_statistic_value_with_http_info(self, build_locator, name, **kwargs): # noqa: E501 + """serve_build_statistic_value # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_build_statistic_value_with_http_info(build_locator, name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str build_locator: (required) + :param str name: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['build_locator', 'name'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method serve_build_statistic_value" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'build_locator' is set + if ('build_locator' not in params or + params['build_locator'] is None): + raise ValueError("Missing the required parameter `build_locator` when calling `serve_build_statistic_value`") # noqa: E501 + # verify the required parameter 'name' is set + if ('name' not in params or + params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `serve_build_statistic_value`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'build_locator' in params: + path_params['buildLocator'] = params['build_locator'] # noqa: E501 + if 'name' in params: + path_params['name'] = params['name'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/builds/{buildLocator}/statistics/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def serve_build_statistic_values(self, build_locator, **kwargs): # noqa: E501 + """serve_build_statistic_values # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_build_statistic_values(build_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str build_locator: (required) + :param str fields: + :return: Properties + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.serve_build_statistic_values_with_http_info(build_locator, **kwargs) # noqa: E501 + else: + (data) = self.serve_build_statistic_values_with_http_info(build_locator, **kwargs) # noqa: E501 + return data + + def serve_build_statistic_values_with_http_info(self, build_locator, **kwargs): # noqa: E501 + """serve_build_statistic_values # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_build_statistic_values_with_http_info(build_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str build_locator: (required) + :param str fields: + :return: Properties + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['build_locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method serve_build_statistic_values" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'build_locator' is set + if ('build_locator' not in params or + params['build_locator'] is None): + raise ValueError("Missing the required parameter `build_locator` when calling `serve_build_statistic_values`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'build_locator' in params: + path_params['buildLocator'] = params['build_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/builds/{buildLocator}/statistics', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Properties', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def serve_build_status_icon(self, build_locator, suffix, **kwargs): # noqa: E501 + """serve_build_status_icon # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_build_status_icon(build_locator, suffix, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str build_locator: (required) + :param str suffix: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.serve_build_status_icon_with_http_info(build_locator, suffix, **kwargs) # noqa: E501 + else: + (data) = self.serve_build_status_icon_with_http_info(build_locator, suffix, **kwargs) # noqa: E501 + return data + + def serve_build_status_icon_with_http_info(self, build_locator, suffix, **kwargs): # noqa: E501 + """serve_build_status_icon # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_build_status_icon_with_http_info(build_locator, suffix, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str build_locator: (required) + :param str suffix: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['build_locator', 'suffix'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method serve_build_status_icon" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'build_locator' is set + if ('build_locator' not in params or + params['build_locator'] is None): + raise ValueError("Missing the required parameter `build_locator` when calling `serve_build_status_icon`") # noqa: E501 + # verify the required parameter 'suffix' is set + if ('suffix' not in params or + params['suffix'] is None): + raise ValueError("Missing the required parameter `suffix` when calling `serve_build_status_icon`") # noqa: E501 + + if 'suffix' in params and not re.search('(.*)?', params['suffix']): # noqa: E501 + raise ValueError("Invalid value for parameter `suffix` when calling `serve_build_status_icon`, must conform to the pattern `/(.*)?/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'build_locator' in params: + path_params['buildLocator'] = params['build_locator'] # noqa: E501 + if 'suffix' in params: + path_params['suffix'] = params['suffix'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/builds/{buildLocator}/statusIcon{suffix}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def serve_source_file(self, build_locator, file_name, **kwargs): # noqa: E501 + """serve_source_file # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_source_file(build_locator, file_name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str build_locator: (required) + :param str file_name: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.serve_source_file_with_http_info(build_locator, file_name, **kwargs) # noqa: E501 + else: + (data) = self.serve_source_file_with_http_info(build_locator, file_name, **kwargs) # noqa: E501 + return data + + def serve_source_file_with_http_info(self, build_locator, file_name, **kwargs): # noqa: E501 + """serve_source_file # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_source_file_with_http_info(build_locator, file_name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str build_locator: (required) + :param str file_name: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['build_locator', 'file_name'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method serve_source_file" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'build_locator' is set + if ('build_locator' not in params or + params['build_locator'] is None): + raise ValueError("Missing the required parameter `build_locator` when calling `serve_source_file`") # noqa: E501 + # verify the required parameter 'file_name' is set + if ('file_name' not in params or + params['file_name'] is None): + raise ValueError("Missing the required parameter `file_name` when calling `serve_source_file`") # noqa: E501 + + if 'file_name' in params and not re.search('.+', params['file_name']): # noqa: E501 + raise ValueError("Invalid value for parameter `file_name` when calling `serve_source_file`, must conform to the pattern `/.+/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'build_locator' in params: + path_params['buildLocator'] = params['build_locator'] # noqa: E501 + if 'file_name' in params: + path_params['fileName'] = params['file_name'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/builds/{buildLocator}/sources/files/{fileName}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def serve_tags(self, build_locator, **kwargs): # noqa: E501 + """serve_tags # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_tags(build_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str build_locator: (required) + :param str locator: + :param str fields: + :return: Tags + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.serve_tags_with_http_info(build_locator, **kwargs) # noqa: E501 + else: + (data) = self.serve_tags_with_http_info(build_locator, **kwargs) # noqa: E501 + return data + + def serve_tags_with_http_info(self, build_locator, **kwargs): # noqa: E501 + """serve_tags # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_tags_with_http_info(build_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str build_locator: (required) + :param str locator: + :param str fields: + :return: Tags + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['build_locator', 'locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method serve_tags" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'build_locator' is set + if ('build_locator' not in params or + params['build_locator'] is None): + raise ValueError("Missing the required parameter `build_locator` when calling `serve_tags`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'build_locator' in params: + path_params['buildLocator'] = params['build_locator'] # noqa: E501 + + query_params = [] + if 'locator' in params: + query_params.append(('locator', params['locator'])) # noqa: E501 + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/builds/{buildLocator}/tags', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Tags', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def unpin_build(self, build_locator, **kwargs): # noqa: E501 + """unpin_build # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.unpin_build(build_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str build_locator: (required) + :param str body: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.unpin_build_with_http_info(build_locator, **kwargs) # noqa: E501 + else: + (data) = self.unpin_build_with_http_info(build_locator, **kwargs) # noqa: E501 + return data + + def unpin_build_with_http_info(self, build_locator, **kwargs): # noqa: E501 + """unpin_build # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.unpin_build_with_http_info(build_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str build_locator: (required) + :param str body: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['build_locator', 'body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method unpin_build" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'build_locator' is set + if ('build_locator' not in params or + params['build_locator'] is None): + raise ValueError("Missing the required parameter `build_locator` when calling `unpin_build`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'build_locator' in params: + path_params['buildLocator'] = params['build_locator'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/builds/{buildLocator}/pin', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/swagger_client/api/build_queue_api.py b/swagger_client/api/build_queue_api.py new file mode 100644 index 0000000..a974e00 --- /dev/null +++ b/swagger_client/api/build_queue_api.py @@ -0,0 +1,1328 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from swagger_client.api_client import ApiClient + + +class BuildQueueApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def add_tags(self, build_locator, **kwargs): # noqa: E501 + """add_tags # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_tags(build_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str build_locator: (required) + :param Tags body: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.add_tags_with_http_info(build_locator, **kwargs) # noqa: E501 + else: + (data) = self.add_tags_with_http_info(build_locator, **kwargs) # noqa: E501 + return data + + def add_tags_with_http_info(self, build_locator, **kwargs): # noqa: E501 + """add_tags # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_tags_with_http_info(build_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str build_locator: (required) + :param Tags body: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['build_locator', 'body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method add_tags" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'build_locator' is set + if ('build_locator' not in params or + params['build_locator'] is None): + raise ValueError("Missing the required parameter `build_locator` when calling `add_tags`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'build_locator' in params: + path_params['buildLocator'] = params['build_locator'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildQueue/{buildLocator}/tags', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def cancel_build(self, build_locator, **kwargs): # noqa: E501 + """cancel_build # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.cancel_build(build_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str build_locator: (required) + :return: BuildCancelRequest + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.cancel_build_with_http_info(build_locator, **kwargs) # noqa: E501 + else: + (data) = self.cancel_build_with_http_info(build_locator, **kwargs) # noqa: E501 + return data + + def cancel_build_with_http_info(self, build_locator, **kwargs): # noqa: E501 + """cancel_build # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.cancel_build_with_http_info(build_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str build_locator: (required) + :return: BuildCancelRequest + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['build_locator'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method cancel_build" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'build_locator' is set + if ('build_locator' not in params or + params['build_locator'] is None): + raise ValueError("Missing the required parameter `build_locator` when calling `cancel_build`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'build_locator' in params: + path_params['buildLocator'] = params['build_locator'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildQueue/{buildLocator}/example/buildCancelRequest', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='BuildCancelRequest', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def cancel_build_0(self, queued_build_locator, **kwargs): # noqa: E501 + """cancel_build_0 # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.cancel_build_0(queued_build_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str queued_build_locator: (required) + :param BuildCancelRequest body: + :return: Build + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.cancel_build_0_with_http_info(queued_build_locator, **kwargs) # noqa: E501 + else: + (data) = self.cancel_build_0_with_http_info(queued_build_locator, **kwargs) # noqa: E501 + return data + + def cancel_build_0_with_http_info(self, queued_build_locator, **kwargs): # noqa: E501 + """cancel_build_0 # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.cancel_build_0_with_http_info(queued_build_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str queued_build_locator: (required) + :param BuildCancelRequest body: + :return: Build + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['queued_build_locator', 'body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method cancel_build_0" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'queued_build_locator' is set + if ('queued_build_locator' not in params or + params['queued_build_locator'] is None): + raise ValueError("Missing the required parameter `queued_build_locator` when calling `cancel_build_0`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'queued_build_locator' in params: + path_params['queuedBuildLocator'] = params['queued_build_locator'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildQueue/{queuedBuildLocator}', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Build', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_build(self, queued_build_locator, **kwargs): # noqa: E501 + """delete_build # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_build(queued_build_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str queued_build_locator: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.delete_build_with_http_info(queued_build_locator, **kwargs) # noqa: E501 + else: + (data) = self.delete_build_with_http_info(queued_build_locator, **kwargs) # noqa: E501 + return data + + def delete_build_with_http_info(self, queued_build_locator, **kwargs): # noqa: E501 + """delete_build # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_build_with_http_info(queued_build_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str queued_build_locator: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['queued_build_locator'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_build" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'queued_build_locator' is set + if ('queued_build_locator' not in params or + params['queued_build_locator'] is None): + raise ValueError("Missing the required parameter `queued_build_locator` when calling `delete_build`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'queued_build_locator' in params: + path_params['queuedBuildLocator'] = params['queued_build_locator'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildQueue/{queuedBuildLocator}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_builds_experimental(self, **kwargs): # noqa: E501 + """delete_builds_experimental # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_builds_experimental(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str locator: + :param str fields: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.delete_builds_experimental_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.delete_builds_experimental_with_http_info(**kwargs) # noqa: E501 + return data + + def delete_builds_experimental_with_http_info(self, **kwargs): # noqa: E501 + """delete_builds_experimental # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_builds_experimental_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str locator: + :param str fields: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_builds_experimental" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'locator' in params: + query_params.append(('locator', params['locator'])) # noqa: E501 + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildQueue', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_build(self, queued_build_locator, **kwargs): # noqa: E501 + """get_build # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_build(queued_build_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str queued_build_locator: (required) + :param str fields: + :return: Build + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_build_with_http_info(queued_build_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_build_with_http_info(queued_build_locator, **kwargs) # noqa: E501 + return data + + def get_build_with_http_info(self, queued_build_locator, **kwargs): # noqa: E501 + """get_build # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_build_with_http_info(queued_build_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str queued_build_locator: (required) + :param str fields: + :return: Build + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['queued_build_locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_build" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'queued_build_locator' is set + if ('queued_build_locator' not in params or + params['queued_build_locator'] is None): + raise ValueError("Missing the required parameter `queued_build_locator` when calling `get_build`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'queued_build_locator' in params: + path_params['queuedBuildLocator'] = params['queued_build_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildQueue/{queuedBuildLocator}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Build', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_builds(self, **kwargs): # noqa: E501 + """get_builds # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_builds(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str locator: + :param str fields: + :return: Builds + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_builds_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.get_builds_with_http_info(**kwargs) # noqa: E501 + return data + + def get_builds_with_http_info(self, **kwargs): # noqa: E501 + """get_builds # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_builds_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str locator: + :param str fields: + :return: Builds + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_builds" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'locator' in params: + query_params.append(('locator', params['locator'])) # noqa: E501 + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildQueue', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Builds', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def queue_new_build(self, **kwargs): # noqa: E501 + """queue_new_build # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.queue_new_build(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param Build body: + :param bool move_to_top: + :return: Build + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.queue_new_build_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.queue_new_build_with_http_info(**kwargs) # noqa: E501 + return data + + def queue_new_build_with_http_info(self, **kwargs): # noqa: E501 + """queue_new_build # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.queue_new_build_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param Build body: + :param bool move_to_top: + :return: Build + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'move_to_top'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method queue_new_build" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'move_to_top' in params: + query_params.append(('moveToTop', params['move_to_top'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildQueue', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Build', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_builds(self, **kwargs): # noqa: E501 + """replace_builds # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.replace_builds(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param Builds body: + :param str fields: + :return: Builds + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.replace_builds_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.replace_builds_with_http_info(**kwargs) # noqa: E501 + return data + + def replace_builds_with_http_info(self, **kwargs): # noqa: E501 + """replace_builds # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.replace_builds_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param Builds body: + :param str fields: + :return: Builds + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_builds" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildQueue', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Builds', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_tags(self, build_locator, **kwargs): # noqa: E501 + """replace_tags # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.replace_tags(build_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str build_locator: (required) + :param str locator: + :param Tags body: + :param str fields: + :return: Tags + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.replace_tags_with_http_info(build_locator, **kwargs) # noqa: E501 + else: + (data) = self.replace_tags_with_http_info(build_locator, **kwargs) # noqa: E501 + return data + + def replace_tags_with_http_info(self, build_locator, **kwargs): # noqa: E501 + """replace_tags # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.replace_tags_with_http_info(build_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str build_locator: (required) + :param str locator: + :param Tags body: + :param str fields: + :return: Tags + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['build_locator', 'locator', 'body', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_tags" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'build_locator' is set + if ('build_locator' not in params or + params['build_locator'] is None): + raise ValueError("Missing the required parameter `build_locator` when calling `replace_tags`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'build_locator' in params: + path_params['buildLocator'] = params['build_locator'] # noqa: E501 + + query_params = [] + if 'locator' in params: + query_params.append(('locator', params['locator'])) # noqa: E501 + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildQueue/{buildLocator}/tags', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Tags', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def serve_build_field_by_build_only(self, build_locator, field, **kwargs): # noqa: E501 + """serve_build_field_by_build_only # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_build_field_by_build_only(build_locator, field, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str build_locator: (required) + :param str field: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.serve_build_field_by_build_only_with_http_info(build_locator, field, **kwargs) # noqa: E501 + else: + (data) = self.serve_build_field_by_build_only_with_http_info(build_locator, field, **kwargs) # noqa: E501 + return data + + def serve_build_field_by_build_only_with_http_info(self, build_locator, field, **kwargs): # noqa: E501 + """serve_build_field_by_build_only # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_build_field_by_build_only_with_http_info(build_locator, field, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str build_locator: (required) + :param str field: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['build_locator', 'field'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method serve_build_field_by_build_only" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'build_locator' is set + if ('build_locator' not in params or + params['build_locator'] is None): + raise ValueError("Missing the required parameter `build_locator` when calling `serve_build_field_by_build_only`") # noqa: E501 + # verify the required parameter 'field' is set + if ('field' not in params or + params['field'] is None): + raise ValueError("Missing the required parameter `field` when calling `serve_build_field_by_build_only`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'build_locator' in params: + path_params['buildLocator'] = params['build_locator'] # noqa: E501 + if 'field' in params: + path_params['field'] = params['field'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildQueue/{buildLocator}/{field}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def serve_compatible_agents(self, queued_build_locator, **kwargs): # noqa: E501 + """serve_compatible_agents # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_compatible_agents(queued_build_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str queued_build_locator: (required) + :param str fields: + :return: Agents + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.serve_compatible_agents_with_http_info(queued_build_locator, **kwargs) # noqa: E501 + else: + (data) = self.serve_compatible_agents_with_http_info(queued_build_locator, **kwargs) # noqa: E501 + return data + + def serve_compatible_agents_with_http_info(self, queued_build_locator, **kwargs): # noqa: E501 + """serve_compatible_agents # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_compatible_agents_with_http_info(queued_build_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str queued_build_locator: (required) + :param str fields: + :return: Agents + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['queued_build_locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method serve_compatible_agents" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'queued_build_locator' is set + if ('queued_build_locator' not in params or + params['queued_build_locator'] is None): + raise ValueError("Missing the required parameter `queued_build_locator` when calling `serve_compatible_agents`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'queued_build_locator' in params: + path_params['queuedBuildLocator'] = params['queued_build_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildQueue/{queuedBuildLocator}/compatibleAgents', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Agents', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def serve_tags(self, build_locator, **kwargs): # noqa: E501 + """serve_tags # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_tags(build_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str build_locator: (required) + :param str locator: + :param str fields: + :return: Tags + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.serve_tags_with_http_info(build_locator, **kwargs) # noqa: E501 + else: + (data) = self.serve_tags_with_http_info(build_locator, **kwargs) # noqa: E501 + return data + + def serve_tags_with_http_info(self, build_locator, **kwargs): # noqa: E501 + """serve_tags # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_tags_with_http_info(build_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str build_locator: (required) + :param str locator: + :param str fields: + :return: Tags + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['build_locator', 'locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method serve_tags" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'build_locator' is set + if ('build_locator' not in params or + params['build_locator'] is None): + raise ValueError("Missing the required parameter `build_locator` when calling `serve_tags`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'build_locator' in params: + path_params['buildLocator'] = params['build_locator'] # noqa: E501 + + query_params = [] + if 'locator' in params: + query_params.append(('locator', params['locator'])) # noqa: E501 + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildQueue/{buildLocator}/tags', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Tags', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def set_build_queue_order(self, fields, **kwargs): # noqa: E501 + """set_build_queue_order # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.set_build_queue_order(fields, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str fields: (required) + :param Builds body: + :return: Builds + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.set_build_queue_order_with_http_info(fields, **kwargs) # noqa: E501 + else: + (data) = self.set_build_queue_order_with_http_info(fields, **kwargs) # noqa: E501 + return data + + def set_build_queue_order_with_http_info(self, fields, **kwargs): # noqa: E501 + """set_build_queue_order # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.set_build_queue_order_with_http_info(fields, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str fields: (required) + :param Builds body: + :return: Builds + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['fields', 'body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method set_build_queue_order" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'fields' is set + if ('fields' not in params or + params['fields'] is None): + raise ValueError("Missing the required parameter `fields` when calling `set_build_queue_order`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'fields' in params: + path_params['fields'] = params['fields'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildQueue/order', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Builds', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/swagger_client/api/build_type_api.py b/swagger_client/api/build_type_api.py new file mode 100644 index 0000000..13093b2 --- /dev/null +++ b/swagger_client/api/build_type_api.py @@ -0,0 +1,11304 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from swagger_client.api_client import ApiClient + + +class BuildTypeApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def add_agent_requirement(self, bt_locator, **kwargs): # noqa: E501 + """add_agent_requirement # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_agent_requirement(bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str fields: + :param AgentRequirement body: + :return: AgentRequirement + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.add_agent_requirement_with_http_info(bt_locator, **kwargs) # noqa: E501 + else: + (data) = self.add_agent_requirement_with_http_info(bt_locator, **kwargs) # noqa: E501 + return data + + def add_agent_requirement_with_http_info(self, bt_locator, **kwargs): # noqa: E501 + """add_agent_requirement # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_agent_requirement_with_http_info(bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str fields: + :param AgentRequirement body: + :return: AgentRequirement + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator', 'fields', 'body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method add_agent_requirement" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `add_agent_requirement`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/agent-requirements', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AgentRequirement', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def add_artifact_dep(self, bt_locator, **kwargs): # noqa: E501 + """add_artifact_dep # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_artifact_dep(bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str fields: + :param ArtifactDependency body: + :return: ArtifactDependency + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.add_artifact_dep_with_http_info(bt_locator, **kwargs) # noqa: E501 + else: + (data) = self.add_artifact_dep_with_http_info(bt_locator, **kwargs) # noqa: E501 + return data + + def add_artifact_dep_with_http_info(self, bt_locator, **kwargs): # noqa: E501 + """add_artifact_dep # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_artifact_dep_with_http_info(bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str fields: + :param ArtifactDependency body: + :return: ArtifactDependency + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator', 'fields', 'body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method add_artifact_dep" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `add_artifact_dep`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/artifact-dependencies', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ArtifactDependency', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def add_build_type(self, **kwargs): # noqa: E501 + """add_build_type # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_build_type(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param BuildType body: + :param str fields: + :return: BuildType + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.add_build_type_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.add_build_type_with_http_info(**kwargs) # noqa: E501 + return data + + def add_build_type_with_http_info(self, **kwargs): # noqa: E501 + """add_build_type # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_build_type_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param BuildType body: + :param str fields: + :return: BuildType + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method add_build_type" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='BuildType', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def add_feature(self, bt_locator, **kwargs): # noqa: E501 + """add_feature # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_feature(bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str fields: + :param Feature body: + :return: Feature + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.add_feature_with_http_info(bt_locator, **kwargs) # noqa: E501 + else: + (data) = self.add_feature_with_http_info(bt_locator, **kwargs) # noqa: E501 + return data + + def add_feature_with_http_info(self, bt_locator, **kwargs): # noqa: E501 + """add_feature # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_feature_with_http_info(bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str fields: + :param Feature body: + :return: Feature + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator', 'fields', 'body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method add_feature" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `add_feature`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/features', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Feature', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def add_feature_parameter(self, bt_locator, feature_id, parameter_name, **kwargs): # noqa: E501 + """add_feature_parameter # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_feature_parameter(bt_locator, feature_id, parameter_name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str feature_id: (required) + :param str parameter_name: (required) + :param str body: + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.add_feature_parameter_with_http_info(bt_locator, feature_id, parameter_name, **kwargs) # noqa: E501 + else: + (data) = self.add_feature_parameter_with_http_info(bt_locator, feature_id, parameter_name, **kwargs) # noqa: E501 + return data + + def add_feature_parameter_with_http_info(self, bt_locator, feature_id, parameter_name, **kwargs): # noqa: E501 + """add_feature_parameter # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_feature_parameter_with_http_info(bt_locator, feature_id, parameter_name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str feature_id: (required) + :param str parameter_name: (required) + :param str body: + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator', 'feature_id', 'parameter_name', 'body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method add_feature_parameter" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `add_feature_parameter`") # noqa: E501 + # verify the required parameter 'feature_id' is set + if ('feature_id' not in params or + params['feature_id'] is None): + raise ValueError("Missing the required parameter `feature_id` when calling `add_feature_parameter`") # noqa: E501 + # verify the required parameter 'parameter_name' is set + if ('parameter_name' not in params or + params['parameter_name'] is None): + raise ValueError("Missing the required parameter `parameter_name` when calling `add_feature_parameter`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + if 'feature_id' in params: + path_params['featureId'] = params['feature_id'] # noqa: E501 + if 'parameter_name' in params: + path_params['parameterName'] = params['parameter_name'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/features/{featureId}/parameters/{parameterName}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def add_snapshot_dep(self, bt_locator, **kwargs): # noqa: E501 + """add_snapshot_dep # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_snapshot_dep(bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str fields: + :param SnapshotDependency body: + :return: SnapshotDependency + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.add_snapshot_dep_with_http_info(bt_locator, **kwargs) # noqa: E501 + else: + (data) = self.add_snapshot_dep_with_http_info(bt_locator, **kwargs) # noqa: E501 + return data + + def add_snapshot_dep_with_http_info(self, bt_locator, **kwargs): # noqa: E501 + """add_snapshot_dep # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_snapshot_dep_with_http_info(bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str fields: + :param SnapshotDependency body: + :return: SnapshotDependency + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator', 'fields', 'body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method add_snapshot_dep" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `add_snapshot_dep`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/snapshot-dependencies', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='SnapshotDependency', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def add_step(self, bt_locator, **kwargs): # noqa: E501 + """add_step # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_step(bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str fields: + :param Step body: + :return: Step + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.add_step_with_http_info(bt_locator, **kwargs) # noqa: E501 + else: + (data) = self.add_step_with_http_info(bt_locator, **kwargs) # noqa: E501 + return data + + def add_step_with_http_info(self, bt_locator, **kwargs): # noqa: E501 + """add_step # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_step_with_http_info(bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str fields: + :param Step body: + :return: Step + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator', 'fields', 'body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method add_step" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `add_step`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/steps', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Step', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def add_step_parameter(self, bt_locator, step_id, parameter_name, **kwargs): # noqa: E501 + """add_step_parameter # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_step_parameter(bt_locator, step_id, parameter_name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str step_id: (required) + :param str parameter_name: (required) + :param str body: + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.add_step_parameter_with_http_info(bt_locator, step_id, parameter_name, **kwargs) # noqa: E501 + else: + (data) = self.add_step_parameter_with_http_info(bt_locator, step_id, parameter_name, **kwargs) # noqa: E501 + return data + + def add_step_parameter_with_http_info(self, bt_locator, step_id, parameter_name, **kwargs): # noqa: E501 + """add_step_parameter # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_step_parameter_with_http_info(bt_locator, step_id, parameter_name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str step_id: (required) + :param str parameter_name: (required) + :param str body: + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator', 'step_id', 'parameter_name', 'body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method add_step_parameter" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `add_step_parameter`") # noqa: E501 + # verify the required parameter 'step_id' is set + if ('step_id' not in params or + params['step_id'] is None): + raise ValueError("Missing the required parameter `step_id` when calling `add_step_parameter`") # noqa: E501 + # verify the required parameter 'parameter_name' is set + if ('parameter_name' not in params or + params['parameter_name'] is None): + raise ValueError("Missing the required parameter `parameter_name` when calling `add_step_parameter`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + if 'step_id' in params: + path_params['stepId'] = params['step_id'] # noqa: E501 + if 'parameter_name' in params: + path_params['parameterName'] = params['parameter_name'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/steps/{stepId}/parameters/{parameterName}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def add_trigger(self, bt_locator, **kwargs): # noqa: E501 + """add_trigger # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_trigger(bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str fields: + :param Trigger body: + :return: Trigger + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.add_trigger_with_http_info(bt_locator, **kwargs) # noqa: E501 + else: + (data) = self.add_trigger_with_http_info(bt_locator, **kwargs) # noqa: E501 + return data + + def add_trigger_with_http_info(self, bt_locator, **kwargs): # noqa: E501 + """add_trigger # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_trigger_with_http_info(bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str fields: + :param Trigger body: + :return: Trigger + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator', 'fields', 'body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method add_trigger" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `add_trigger`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/triggers', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Trigger', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def add_vcs_root_entry(self, bt_locator, **kwargs): # noqa: E501 + """add_vcs_root_entry # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_vcs_root_entry(bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param VcsRootEntry body: + :param str fields: + :return: VcsRootEntry + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.add_vcs_root_entry_with_http_info(bt_locator, **kwargs) # noqa: E501 + else: + (data) = self.add_vcs_root_entry_with_http_info(bt_locator, **kwargs) # noqa: E501 + return data + + def add_vcs_root_entry_with_http_info(self, bt_locator, **kwargs): # noqa: E501 + """add_vcs_root_entry # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_vcs_root_entry_with_http_info(bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param VcsRootEntry body: + :param str fields: + :return: VcsRootEntry + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator', 'body', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method add_vcs_root_entry" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `add_vcs_root_entry`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/vcs-root-entries', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VcsRootEntry', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def change_artifact_dep_setting(self, bt_locator, artifact_dep_locator, field_name, **kwargs): # noqa: E501 + """change_artifact_dep_setting # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.change_artifact_dep_setting(bt_locator, artifact_dep_locator, field_name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str artifact_dep_locator: (required) + :param str field_name: (required) + :param str body: + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.change_artifact_dep_setting_with_http_info(bt_locator, artifact_dep_locator, field_name, **kwargs) # noqa: E501 + else: + (data) = self.change_artifact_dep_setting_with_http_info(bt_locator, artifact_dep_locator, field_name, **kwargs) # noqa: E501 + return data + + def change_artifact_dep_setting_with_http_info(self, bt_locator, artifact_dep_locator, field_name, **kwargs): # noqa: E501 + """change_artifact_dep_setting # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.change_artifact_dep_setting_with_http_info(bt_locator, artifact_dep_locator, field_name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str artifact_dep_locator: (required) + :param str field_name: (required) + :param str body: + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator', 'artifact_dep_locator', 'field_name', 'body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method change_artifact_dep_setting" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `change_artifact_dep_setting`") # noqa: E501 + # verify the required parameter 'artifact_dep_locator' is set + if ('artifact_dep_locator' not in params or + params['artifact_dep_locator'] is None): + raise ValueError("Missing the required parameter `artifact_dep_locator` when calling `change_artifact_dep_setting`") # noqa: E501 + # verify the required parameter 'field_name' is set + if ('field_name' not in params or + params['field_name'] is None): + raise ValueError("Missing the required parameter `field_name` when calling `change_artifact_dep_setting`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + if 'artifact_dep_locator' in params: + path_params['artifactDepLocator'] = params['artifact_dep_locator'] # noqa: E501 + if 'field_name' in params: + path_params['fieldName'] = params['field_name'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/artifact-dependencies/{artifactDepLocator}/{fieldName}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def change_feature_setting(self, bt_locator, feature_id, name, **kwargs): # noqa: E501 + """change_feature_setting # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.change_feature_setting(bt_locator, feature_id, name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str feature_id: (required) + :param str name: (required) + :param str body: + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.change_feature_setting_with_http_info(bt_locator, feature_id, name, **kwargs) # noqa: E501 + else: + (data) = self.change_feature_setting_with_http_info(bt_locator, feature_id, name, **kwargs) # noqa: E501 + return data + + def change_feature_setting_with_http_info(self, bt_locator, feature_id, name, **kwargs): # noqa: E501 + """change_feature_setting # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.change_feature_setting_with_http_info(bt_locator, feature_id, name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str feature_id: (required) + :param str name: (required) + :param str body: + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator', 'feature_id', 'name', 'body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method change_feature_setting" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `change_feature_setting`") # noqa: E501 + # verify the required parameter 'feature_id' is set + if ('feature_id' not in params or + params['feature_id'] is None): + raise ValueError("Missing the required parameter `feature_id` when calling `change_feature_setting`") # noqa: E501 + # verify the required parameter 'name' is set + if ('name' not in params or + params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `change_feature_setting`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + if 'feature_id' in params: + path_params['featureId'] = params['feature_id'] # noqa: E501 + if 'name' in params: + path_params['name'] = params['name'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/features/{featureId}/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def change_requirement_setting(self, bt_locator, agent_requirement_locator, field_name, **kwargs): # noqa: E501 + """change_requirement_setting # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.change_requirement_setting(bt_locator, agent_requirement_locator, field_name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str agent_requirement_locator: (required) + :param str field_name: (required) + :param str body: + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.change_requirement_setting_with_http_info(bt_locator, agent_requirement_locator, field_name, **kwargs) # noqa: E501 + else: + (data) = self.change_requirement_setting_with_http_info(bt_locator, agent_requirement_locator, field_name, **kwargs) # noqa: E501 + return data + + def change_requirement_setting_with_http_info(self, bt_locator, agent_requirement_locator, field_name, **kwargs): # noqa: E501 + """change_requirement_setting # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.change_requirement_setting_with_http_info(bt_locator, agent_requirement_locator, field_name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str agent_requirement_locator: (required) + :param str field_name: (required) + :param str body: + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator', 'agent_requirement_locator', 'field_name', 'body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method change_requirement_setting" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `change_requirement_setting`") # noqa: E501 + # verify the required parameter 'agent_requirement_locator' is set + if ('agent_requirement_locator' not in params or + params['agent_requirement_locator'] is None): + raise ValueError("Missing the required parameter `agent_requirement_locator` when calling `change_requirement_setting`") # noqa: E501 + # verify the required parameter 'field_name' is set + if ('field_name' not in params or + params['field_name'] is None): + raise ValueError("Missing the required parameter `field_name` when calling `change_requirement_setting`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + if 'agent_requirement_locator' in params: + path_params['agentRequirementLocator'] = params['agent_requirement_locator'] # noqa: E501 + if 'field_name' in params: + path_params['fieldName'] = params['field_name'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/agent-requirements/{agentRequirementLocator}/{fieldName}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def change_step_setting(self, bt_locator, step_id, field_name, **kwargs): # noqa: E501 + """change_step_setting # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.change_step_setting(bt_locator, step_id, field_name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str step_id: (required) + :param str field_name: (required) + :param str body: + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.change_step_setting_with_http_info(bt_locator, step_id, field_name, **kwargs) # noqa: E501 + else: + (data) = self.change_step_setting_with_http_info(bt_locator, step_id, field_name, **kwargs) # noqa: E501 + return data + + def change_step_setting_with_http_info(self, bt_locator, step_id, field_name, **kwargs): # noqa: E501 + """change_step_setting # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.change_step_setting_with_http_info(bt_locator, step_id, field_name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str step_id: (required) + :param str field_name: (required) + :param str body: + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator', 'step_id', 'field_name', 'body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method change_step_setting" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `change_step_setting`") # noqa: E501 + # verify the required parameter 'step_id' is set + if ('step_id' not in params or + params['step_id'] is None): + raise ValueError("Missing the required parameter `step_id` when calling `change_step_setting`") # noqa: E501 + # verify the required parameter 'field_name' is set + if ('field_name' not in params or + params['field_name'] is None): + raise ValueError("Missing the required parameter `field_name` when calling `change_step_setting`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + if 'step_id' in params: + path_params['stepId'] = params['step_id'] # noqa: E501 + if 'field_name' in params: + path_params['fieldName'] = params['field_name'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/steps/{stepId}/{fieldName}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def change_trigger_setting(self, bt_locator, trigger_locator, field_name, **kwargs): # noqa: E501 + """change_trigger_setting # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.change_trigger_setting(bt_locator, trigger_locator, field_name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str trigger_locator: (required) + :param str field_name: (required) + :param str body: + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.change_trigger_setting_with_http_info(bt_locator, trigger_locator, field_name, **kwargs) # noqa: E501 + else: + (data) = self.change_trigger_setting_with_http_info(bt_locator, trigger_locator, field_name, **kwargs) # noqa: E501 + return data + + def change_trigger_setting_with_http_info(self, bt_locator, trigger_locator, field_name, **kwargs): # noqa: E501 + """change_trigger_setting # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.change_trigger_setting_with_http_info(bt_locator, trigger_locator, field_name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str trigger_locator: (required) + :param str field_name: (required) + :param str body: + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator', 'trigger_locator', 'field_name', 'body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method change_trigger_setting" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `change_trigger_setting`") # noqa: E501 + # verify the required parameter 'trigger_locator' is set + if ('trigger_locator' not in params or + params['trigger_locator'] is None): + raise ValueError("Missing the required parameter `trigger_locator` when calling `change_trigger_setting`") # noqa: E501 + # verify the required parameter 'field_name' is set + if ('field_name' not in params or + params['field_name'] is None): + raise ValueError("Missing the required parameter `field_name` when calling `change_trigger_setting`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + if 'trigger_locator' in params: + path_params['triggerLocator'] = params['trigger_locator'] # noqa: E501 + if 'field_name' in params: + path_params['fieldName'] = params['field_name'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/triggers/{triggerLocator}/{fieldName}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_agent_requirement(self, bt_locator, agent_requirement_locator, **kwargs): # noqa: E501 + """delete_agent_requirement # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_agent_requirement(bt_locator, agent_requirement_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str agent_requirement_locator: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.delete_agent_requirement_with_http_info(bt_locator, agent_requirement_locator, **kwargs) # noqa: E501 + else: + (data) = self.delete_agent_requirement_with_http_info(bt_locator, agent_requirement_locator, **kwargs) # noqa: E501 + return data + + def delete_agent_requirement_with_http_info(self, bt_locator, agent_requirement_locator, **kwargs): # noqa: E501 + """delete_agent_requirement # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_agent_requirement_with_http_info(bt_locator, agent_requirement_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str agent_requirement_locator: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator', 'agent_requirement_locator'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_agent_requirement" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `delete_agent_requirement`") # noqa: E501 + # verify the required parameter 'agent_requirement_locator' is set + if ('agent_requirement_locator' not in params or + params['agent_requirement_locator'] is None): + raise ValueError("Missing the required parameter `agent_requirement_locator` when calling `delete_agent_requirement`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + if 'agent_requirement_locator' in params: + path_params['agentRequirementLocator'] = params['agent_requirement_locator'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/agent-requirements/{agentRequirementLocator}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_all_parameters(self, bt_locator, **kwargs): # noqa: E501 + """delete_all_parameters # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_all_parameters(bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.delete_all_parameters_with_http_info(bt_locator, **kwargs) # noqa: E501 + else: + (data) = self.delete_all_parameters_with_http_info(bt_locator, **kwargs) # noqa: E501 + return data + + def delete_all_parameters_with_http_info(self, bt_locator, **kwargs): # noqa: E501 + """delete_all_parameters # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_all_parameters_with_http_info(bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_all_parameters" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `delete_all_parameters`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/parameters', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_all_parameters_0(self, bt_locator, **kwargs): # noqa: E501 + """delete_all_parameters_0 # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_all_parameters_0(bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.delete_all_parameters_0_with_http_info(bt_locator, **kwargs) # noqa: E501 + else: + (data) = self.delete_all_parameters_0_with_http_info(bt_locator, **kwargs) # noqa: E501 + return data + + def delete_all_parameters_0_with_http_info(self, bt_locator, **kwargs): # noqa: E501 + """delete_all_parameters_0 # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_all_parameters_0_with_http_info(bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_all_parameters_0" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `delete_all_parameters_0`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/settings', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_artifact_dep(self, bt_locator, artifact_dep_locator, **kwargs): # noqa: E501 + """delete_artifact_dep # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_artifact_dep(bt_locator, artifact_dep_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str artifact_dep_locator: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.delete_artifact_dep_with_http_info(bt_locator, artifact_dep_locator, **kwargs) # noqa: E501 + else: + (data) = self.delete_artifact_dep_with_http_info(bt_locator, artifact_dep_locator, **kwargs) # noqa: E501 + return data + + def delete_artifact_dep_with_http_info(self, bt_locator, artifact_dep_locator, **kwargs): # noqa: E501 + """delete_artifact_dep # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_artifact_dep_with_http_info(bt_locator, artifact_dep_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str artifact_dep_locator: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator', 'artifact_dep_locator'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_artifact_dep" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `delete_artifact_dep`") # noqa: E501 + # verify the required parameter 'artifact_dep_locator' is set + if ('artifact_dep_locator' not in params or + params['artifact_dep_locator'] is None): + raise ValueError("Missing the required parameter `artifact_dep_locator` when calling `delete_artifact_dep`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + if 'artifact_dep_locator' in params: + path_params['artifactDepLocator'] = params['artifact_dep_locator'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/artifact-dependencies/{artifactDepLocator}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_build_type(self, bt_locator, **kwargs): # noqa: E501 + """delete_build_type # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_build_type(bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.delete_build_type_with_http_info(bt_locator, **kwargs) # noqa: E501 + else: + (data) = self.delete_build_type_with_http_info(bt_locator, **kwargs) # noqa: E501 + return data + + def delete_build_type_with_http_info(self, bt_locator, **kwargs): # noqa: E501 + """delete_build_type # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_build_type_with_http_info(bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_build_type" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `delete_build_type`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_feature(self, bt_locator, feature_id, **kwargs): # noqa: E501 + """delete_feature # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_feature(bt_locator, feature_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str feature_id: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.delete_feature_with_http_info(bt_locator, feature_id, **kwargs) # noqa: E501 + else: + (data) = self.delete_feature_with_http_info(bt_locator, feature_id, **kwargs) # noqa: E501 + return data + + def delete_feature_with_http_info(self, bt_locator, feature_id, **kwargs): # noqa: E501 + """delete_feature # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_feature_with_http_info(bt_locator, feature_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str feature_id: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator', 'feature_id'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_feature" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `delete_feature`") # noqa: E501 + # verify the required parameter 'feature_id' is set + if ('feature_id' not in params or + params['feature_id'] is None): + raise ValueError("Missing the required parameter `feature_id` when calling `delete_feature`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + if 'feature_id' in params: + path_params['featureId'] = params['feature_id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/features/{featureId}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_parameter(self, name, bt_locator, **kwargs): # noqa: E501 + """delete_parameter # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_parameter(name, bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str name: (required) + :param str bt_locator: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.delete_parameter_with_http_info(name, bt_locator, **kwargs) # noqa: E501 + else: + (data) = self.delete_parameter_with_http_info(name, bt_locator, **kwargs) # noqa: E501 + return data + + def delete_parameter_with_http_info(self, name, bt_locator, **kwargs): # noqa: E501 + """delete_parameter # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_parameter_with_http_info(name, bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str name: (required) + :param str bt_locator: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'bt_locator'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_parameter" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params or + params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_parameter`") # noqa: E501 + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `delete_parameter`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] # noqa: E501 + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/parameters/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_parameter_0(self, name, bt_locator, **kwargs): # noqa: E501 + """delete_parameter_0 # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_parameter_0(name, bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str name: (required) + :param str bt_locator: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.delete_parameter_0_with_http_info(name, bt_locator, **kwargs) # noqa: E501 + else: + (data) = self.delete_parameter_0_with_http_info(name, bt_locator, **kwargs) # noqa: E501 + return data + + def delete_parameter_0_with_http_info(self, name, bt_locator, **kwargs): # noqa: E501 + """delete_parameter_0 # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_parameter_0_with_http_info(name, bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str name: (required) + :param str bt_locator: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'bt_locator'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_parameter_0" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params or + params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_parameter_0`") # noqa: E501 + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `delete_parameter_0`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] # noqa: E501 + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/settings/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_snapshot_dep(self, bt_locator, snapshot_dep_locator, **kwargs): # noqa: E501 + """delete_snapshot_dep # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_snapshot_dep(bt_locator, snapshot_dep_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str snapshot_dep_locator: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.delete_snapshot_dep_with_http_info(bt_locator, snapshot_dep_locator, **kwargs) # noqa: E501 + else: + (data) = self.delete_snapshot_dep_with_http_info(bt_locator, snapshot_dep_locator, **kwargs) # noqa: E501 + return data + + def delete_snapshot_dep_with_http_info(self, bt_locator, snapshot_dep_locator, **kwargs): # noqa: E501 + """delete_snapshot_dep # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_snapshot_dep_with_http_info(bt_locator, snapshot_dep_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str snapshot_dep_locator: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator', 'snapshot_dep_locator'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_snapshot_dep" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `delete_snapshot_dep`") # noqa: E501 + # verify the required parameter 'snapshot_dep_locator' is set + if ('snapshot_dep_locator' not in params or + params['snapshot_dep_locator'] is None): + raise ValueError("Missing the required parameter `snapshot_dep_locator` when calling `delete_snapshot_dep`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + if 'snapshot_dep_locator' in params: + path_params['snapshotDepLocator'] = params['snapshot_dep_locator'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/snapshot-dependencies/{snapshotDepLocator}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_step(self, bt_locator, step_id, **kwargs): # noqa: E501 + """delete_step # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_step(bt_locator, step_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str step_id: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.delete_step_with_http_info(bt_locator, step_id, **kwargs) # noqa: E501 + else: + (data) = self.delete_step_with_http_info(bt_locator, step_id, **kwargs) # noqa: E501 + return data + + def delete_step_with_http_info(self, bt_locator, step_id, **kwargs): # noqa: E501 + """delete_step # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_step_with_http_info(bt_locator, step_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str step_id: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator', 'step_id'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_step" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `delete_step`") # noqa: E501 + # verify the required parameter 'step_id' is set + if ('step_id' not in params or + params['step_id'] is None): + raise ValueError("Missing the required parameter `step_id` when calling `delete_step`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + if 'step_id' in params: + path_params['stepId'] = params['step_id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/steps/{stepId}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_template_association(self, bt_locator, **kwargs): # noqa: E501 + """delete_template_association # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_template_association(bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.delete_template_association_with_http_info(bt_locator, **kwargs) # noqa: E501 + else: + (data) = self.delete_template_association_with_http_info(bt_locator, **kwargs) # noqa: E501 + return data + + def delete_template_association_with_http_info(self, bt_locator, **kwargs): # noqa: E501 + """delete_template_association # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_template_association_with_http_info(bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_template_association" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `delete_template_association`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/template', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_trigger(self, bt_locator, trigger_locator, **kwargs): # noqa: E501 + """delete_trigger # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_trigger(bt_locator, trigger_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str trigger_locator: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.delete_trigger_with_http_info(bt_locator, trigger_locator, **kwargs) # noqa: E501 + else: + (data) = self.delete_trigger_with_http_info(bt_locator, trigger_locator, **kwargs) # noqa: E501 + return data + + def delete_trigger_with_http_info(self, bt_locator, trigger_locator, **kwargs): # noqa: E501 + """delete_trigger # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_trigger_with_http_info(bt_locator, trigger_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str trigger_locator: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator', 'trigger_locator'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_trigger" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `delete_trigger`") # noqa: E501 + # verify the required parameter 'trigger_locator' is set + if ('trigger_locator' not in params or + params['trigger_locator'] is None): + raise ValueError("Missing the required parameter `trigger_locator` when calling `delete_trigger`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + if 'trigger_locator' in params: + path_params['triggerLocator'] = params['trigger_locator'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/triggers/{triggerLocator}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_vcs_root_entry(self, bt_locator, vcs_root_locator, **kwargs): # noqa: E501 + """delete_vcs_root_entry # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_vcs_root_entry(bt_locator, vcs_root_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str vcs_root_locator: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.delete_vcs_root_entry_with_http_info(bt_locator, vcs_root_locator, **kwargs) # noqa: E501 + else: + (data) = self.delete_vcs_root_entry_with_http_info(bt_locator, vcs_root_locator, **kwargs) # noqa: E501 + return data + + def delete_vcs_root_entry_with_http_info(self, bt_locator, vcs_root_locator, **kwargs): # noqa: E501 + """delete_vcs_root_entry # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_vcs_root_entry_with_http_info(bt_locator, vcs_root_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str vcs_root_locator: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator', 'vcs_root_locator'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_vcs_root_entry" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `delete_vcs_root_entry`") # noqa: E501 + # verify the required parameter 'vcs_root_locator' is set + if ('vcs_root_locator' not in params or + params['vcs_root_locator'] is None): + raise ValueError("Missing the required parameter `vcs_root_locator` when calling `delete_vcs_root_entry`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + if 'vcs_root_locator' in params: + path_params['vcsRootLocator'] = params['vcs_root_locator'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/vcs-root-entries/{vcsRootLocator}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_agent_requirement(self, bt_locator, agent_requirement_locator, **kwargs): # noqa: E501 + """get_agent_requirement # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_agent_requirement(bt_locator, agent_requirement_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str agent_requirement_locator: (required) + :param str fields: + :return: AgentRequirement + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_agent_requirement_with_http_info(bt_locator, agent_requirement_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_agent_requirement_with_http_info(bt_locator, agent_requirement_locator, **kwargs) # noqa: E501 + return data + + def get_agent_requirement_with_http_info(self, bt_locator, agent_requirement_locator, **kwargs): # noqa: E501 + """get_agent_requirement # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_agent_requirement_with_http_info(bt_locator, agent_requirement_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str agent_requirement_locator: (required) + :param str fields: + :return: AgentRequirement + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator', 'agent_requirement_locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_agent_requirement" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `get_agent_requirement`") # noqa: E501 + # verify the required parameter 'agent_requirement_locator' is set + if ('agent_requirement_locator' not in params or + params['agent_requirement_locator'] is None): + raise ValueError("Missing the required parameter `agent_requirement_locator` when calling `get_agent_requirement`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + if 'agent_requirement_locator' in params: + path_params['agentRequirementLocator'] = params['agent_requirement_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/agent-requirements/{agentRequirementLocator}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AgentRequirement', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_agent_requirements(self, bt_locator, **kwargs): # noqa: E501 + """get_agent_requirements # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_agent_requirements(bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str fields: + :return: AgentRequirements + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_agent_requirements_with_http_info(bt_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_agent_requirements_with_http_info(bt_locator, **kwargs) # noqa: E501 + return data + + def get_agent_requirements_with_http_info(self, bt_locator, **kwargs): # noqa: E501 + """get_agent_requirements # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_agent_requirements_with_http_info(bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str fields: + :return: AgentRequirements + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_agent_requirements" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `get_agent_requirements`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/agent-requirements', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AgentRequirements', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_aliases(self, bt_locator, field, **kwargs): # noqa: E501 + """get_aliases # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_aliases(bt_locator, field, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str field: (required) + :return: Items + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_aliases_with_http_info(bt_locator, field, **kwargs) # noqa: E501 + else: + (data) = self.get_aliases_with_http_info(bt_locator, field, **kwargs) # noqa: E501 + return data + + def get_aliases_with_http_info(self, bt_locator, field, **kwargs): # noqa: E501 + """get_aliases # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_aliases_with_http_info(bt_locator, field, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str field: (required) + :return: Items + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator', 'field'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_aliases" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `get_aliases`") # noqa: E501 + # verify the required parameter 'field' is set + if ('field' not in params or + params['field'] is None): + raise ValueError("Missing the required parameter `field` when calling `get_aliases`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + if 'field' in params: + path_params['field'] = params['field'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/aliases', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Items', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_artifact_dep(self, bt_locator, artifact_dep_locator, **kwargs): # noqa: E501 + """get_artifact_dep # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_artifact_dep(bt_locator, artifact_dep_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str artifact_dep_locator: (required) + :param str fields: + :return: ArtifactDependency + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_artifact_dep_with_http_info(bt_locator, artifact_dep_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_artifact_dep_with_http_info(bt_locator, artifact_dep_locator, **kwargs) # noqa: E501 + return data + + def get_artifact_dep_with_http_info(self, bt_locator, artifact_dep_locator, **kwargs): # noqa: E501 + """get_artifact_dep # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_artifact_dep_with_http_info(bt_locator, artifact_dep_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str artifact_dep_locator: (required) + :param str fields: + :return: ArtifactDependency + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator', 'artifact_dep_locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_artifact_dep" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `get_artifact_dep`") # noqa: E501 + # verify the required parameter 'artifact_dep_locator' is set + if ('artifact_dep_locator' not in params or + params['artifact_dep_locator'] is None): + raise ValueError("Missing the required parameter `artifact_dep_locator` when calling `get_artifact_dep`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + if 'artifact_dep_locator' in params: + path_params['artifactDepLocator'] = params['artifact_dep_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/artifact-dependencies/{artifactDepLocator}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ArtifactDependency', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_artifact_dep_setting(self, bt_locator, artifact_dep_locator, field_name, **kwargs): # noqa: E501 + """get_artifact_dep_setting # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_artifact_dep_setting(bt_locator, artifact_dep_locator, field_name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str artifact_dep_locator: (required) + :param str field_name: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_artifact_dep_setting_with_http_info(bt_locator, artifact_dep_locator, field_name, **kwargs) # noqa: E501 + else: + (data) = self.get_artifact_dep_setting_with_http_info(bt_locator, artifact_dep_locator, field_name, **kwargs) # noqa: E501 + return data + + def get_artifact_dep_setting_with_http_info(self, bt_locator, artifact_dep_locator, field_name, **kwargs): # noqa: E501 + """get_artifact_dep_setting # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_artifact_dep_setting_with_http_info(bt_locator, artifact_dep_locator, field_name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str artifact_dep_locator: (required) + :param str field_name: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator', 'artifact_dep_locator', 'field_name'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_artifact_dep_setting" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `get_artifact_dep_setting`") # noqa: E501 + # verify the required parameter 'artifact_dep_locator' is set + if ('artifact_dep_locator' not in params or + params['artifact_dep_locator'] is None): + raise ValueError("Missing the required parameter `artifact_dep_locator` when calling `get_artifact_dep_setting`") # noqa: E501 + # verify the required parameter 'field_name' is set + if ('field_name' not in params or + params['field_name'] is None): + raise ValueError("Missing the required parameter `field_name` when calling `get_artifact_dep_setting`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + if 'artifact_dep_locator' in params: + path_params['artifactDepLocator'] = params['artifact_dep_locator'] # noqa: E501 + if 'field_name' in params: + path_params['fieldName'] = params['field_name'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/artifact-dependencies/{artifactDepLocator}/{fieldName}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_artifact_deps(self, bt_locator, **kwargs): # noqa: E501 + """get_artifact_deps # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_artifact_deps(bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str fields: + :return: ArtifactDependencies + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_artifact_deps_with_http_info(bt_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_artifact_deps_with_http_info(bt_locator, **kwargs) # noqa: E501 + return data + + def get_artifact_deps_with_http_info(self, bt_locator, **kwargs): # noqa: E501 + """get_artifact_deps # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_artifact_deps_with_http_info(bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str fields: + :return: ArtifactDependencies + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_artifact_deps" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `get_artifact_deps`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/artifact-dependencies', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ArtifactDependencies', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_build_types(self, **kwargs): # noqa: E501 + """get_build_types # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_build_types(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str locator: + :param str fields: + :return: BuildTypes + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_build_types_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.get_build_types_with_http_info(**kwargs) # noqa: E501 + return data + + def get_build_types_with_http_info(self, **kwargs): # noqa: E501 + """get_build_types # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_build_types_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str locator: + :param str fields: + :return: BuildTypes + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_build_types" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'locator' in params: + query_params.append(('locator', params['locator'])) # noqa: E501 + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='BuildTypes', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_children(self, path, bt_locator, **kwargs): # noqa: E501 + """get_children # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_children(path, bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str path: (required) + :param str bt_locator: (required) + :param str base_path: + :param str locator: + :param str fields: + :param bool resolve_parameters: + :return: Files + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_children_with_http_info(path, bt_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_children_with_http_info(path, bt_locator, **kwargs) # noqa: E501 + return data + + def get_children_with_http_info(self, path, bt_locator, **kwargs): # noqa: E501 + """get_children # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_children_with_http_info(path, bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str path: (required) + :param str bt_locator: (required) + :param str base_path: + :param str locator: + :param str fields: + :param bool resolve_parameters: + :return: Files + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['path', 'bt_locator', 'base_path', 'locator', 'fields', 'resolve_parameters'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_children" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'path' is set + if ('path' not in params or + params['path'] is None): + raise ValueError("Missing the required parameter `path` when calling `get_children`") # noqa: E501 + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `get_children`") # noqa: E501 + + if 'path' in params and not re.search('(\/.*)?', params['path']): # noqa: E501 + raise ValueError("Invalid value for parameter `path` when calling `get_children`, must conform to the pattern `/(\/.*)?/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'path' in params: + path_params['path'] = params['path'] # noqa: E501 + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + + query_params = [] + if 'base_path' in params: + query_params.append(('basePath', params['base_path'])) # noqa: E501 + if 'locator' in params: + query_params.append(('locator', params['locator'])) # noqa: E501 + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + if 'resolve_parameters' in params: + query_params.append(('resolveParameters', params['resolve_parameters'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/vcs/files/latest/children{path}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Files', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_children_alias(self, path, bt_locator, **kwargs): # noqa: E501 + """get_children_alias # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_children_alias(path, bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str path: (required) + :param str bt_locator: (required) + :param str base_path: + :param str locator: + :param str fields: + :param bool resolve_parameters: + :return: Files + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_children_alias_with_http_info(path, bt_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_children_alias_with_http_info(path, bt_locator, **kwargs) # noqa: E501 + return data + + def get_children_alias_with_http_info(self, path, bt_locator, **kwargs): # noqa: E501 + """get_children_alias # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_children_alias_with_http_info(path, bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str path: (required) + :param str bt_locator: (required) + :param str base_path: + :param str locator: + :param str fields: + :param bool resolve_parameters: + :return: Files + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['path', 'bt_locator', 'base_path', 'locator', 'fields', 'resolve_parameters'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_children_alias" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'path' is set + if ('path' not in params or + params['path'] is None): + raise ValueError("Missing the required parameter `path` when calling `get_children_alias`") # noqa: E501 + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `get_children_alias`") # noqa: E501 + + if 'path' in params and not re.search('(.*)?', params['path']): # noqa: E501 + raise ValueError("Invalid value for parameter `path` when calling `get_children_alias`, must conform to the pattern `/(.*)?/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'path' in params: + path_params['path'] = params['path'] # noqa: E501 + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + + query_params = [] + if 'base_path' in params: + query_params.append(('basePath', params['base_path'])) # noqa: E501 + if 'locator' in params: + query_params.append(('locator', params['locator'])) # noqa: E501 + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + if 'resolve_parameters' in params: + query_params.append(('resolveParameters', params['resolve_parameters'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/vcs/files/latest/{path}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Files', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_content(self, path, bt_locator, **kwargs): # noqa: E501 + """get_content # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_content(path, bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str path: (required) + :param str bt_locator: (required) + :param bool resolve_parameters: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_content_with_http_info(path, bt_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_content_with_http_info(path, bt_locator, **kwargs) # noqa: E501 + return data + + def get_content_with_http_info(self, path, bt_locator, **kwargs): # noqa: E501 + """get_content # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_content_with_http_info(path, bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str path: (required) + :param str bt_locator: (required) + :param bool resolve_parameters: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['path', 'bt_locator', 'resolve_parameters'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_content" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'path' is set + if ('path' not in params or + params['path'] is None): + raise ValueError("Missing the required parameter `path` when calling `get_content`") # noqa: E501 + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `get_content`") # noqa: E501 + + if 'path' in params and not re.search('(\/.*)?', params['path']): # noqa: E501 + raise ValueError("Invalid value for parameter `path` when calling `get_content`, must conform to the pattern `/(\/.*)?/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'path' in params: + path_params['path'] = params['path'] # noqa: E501 + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + + query_params = [] + if 'resolve_parameters' in params: + query_params.append(('resolveParameters', params['resolve_parameters'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/vcs/files/latest/content{path}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_content_alias(self, path, bt_locator, **kwargs): # noqa: E501 + """get_content_alias # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_content_alias(path, bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str path: (required) + :param str bt_locator: (required) + :param bool resolve_parameters: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_content_alias_with_http_info(path, bt_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_content_alias_with_http_info(path, bt_locator, **kwargs) # noqa: E501 + return data + + def get_content_alias_with_http_info(self, path, bt_locator, **kwargs): # noqa: E501 + """get_content_alias # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_content_alias_with_http_info(path, bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str path: (required) + :param str bt_locator: (required) + :param bool resolve_parameters: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['path', 'bt_locator', 'resolve_parameters'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_content_alias" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'path' is set + if ('path' not in params or + params['path'] is None): + raise ValueError("Missing the required parameter `path` when calling `get_content_alias`") # noqa: E501 + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `get_content_alias`") # noqa: E501 + + if 'path' in params and not re.search('(\/.*)?', params['path']): # noqa: E501 + raise ValueError("Invalid value for parameter `path` when calling `get_content_alias`, must conform to the pattern `/(\/.*)?/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'path' in params: + path_params['path'] = params['path'] # noqa: E501 + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + + query_params = [] + if 'resolve_parameters' in params: + query_params.append(('resolveParameters', params['resolve_parameters'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/vcs/files/latest/files{path}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_current_vcs_instances(self, bt_locator, **kwargs): # noqa: E501 + """get_current_vcs_instances # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_current_vcs_instances(bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str fields: + :return: VcsRootInstances + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_current_vcs_instances_with_http_info(bt_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_current_vcs_instances_with_http_info(bt_locator, **kwargs) # noqa: E501 + return data + + def get_current_vcs_instances_with_http_info(self, bt_locator, **kwargs): # noqa: E501 + """get_current_vcs_instances # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_current_vcs_instances_with_http_info(bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str fields: + :return: VcsRootInstances + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_current_vcs_instances" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `get_current_vcs_instances`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/vcs-root-instances', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VcsRootInstances', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_example_new_project_description(self, bt_locator, **kwargs): # noqa: E501 + """get_example_new_project_description # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_example_new_project_description(bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :return: NewBuildTypeDescription + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_example_new_project_description_with_http_info(bt_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_example_new_project_description_with_http_info(bt_locator, **kwargs) # noqa: E501 + return data + + def get_example_new_project_description_with_http_info(self, bt_locator, **kwargs): # noqa: E501 + """get_example_new_project_description # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_example_new_project_description_with_http_info(bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :return: NewBuildTypeDescription + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_example_new_project_description" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `get_example_new_project_description`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/example/newBuildTypeDescription', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='NewBuildTypeDescription', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_example_new_project_description_compatibility_version1(self, bt_locator, **kwargs): # noqa: E501 + """get_example_new_project_description_compatibility_version1 # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_example_new_project_description_compatibility_version1(bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :return: NewBuildTypeDescription + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_example_new_project_description_compatibility_version1_with_http_info(bt_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_example_new_project_description_compatibility_version1_with_http_info(bt_locator, **kwargs) # noqa: E501 + return data + + def get_example_new_project_description_compatibility_version1_with_http_info(self, bt_locator, **kwargs): # noqa: E501 + """get_example_new_project_description_compatibility_version1 # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_example_new_project_description_compatibility_version1_with_http_info(bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :return: NewBuildTypeDescription + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_example_new_project_description_compatibility_version1" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `get_example_new_project_description_compatibility_version1`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/newBuildTypeDescription', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='NewBuildTypeDescription', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_feature(self, bt_locator, feature_id, **kwargs): # noqa: E501 + """get_feature # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_feature(bt_locator, feature_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str feature_id: (required) + :param str fields: + :return: Feature + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_feature_with_http_info(bt_locator, feature_id, **kwargs) # noqa: E501 + else: + (data) = self.get_feature_with_http_info(bt_locator, feature_id, **kwargs) # noqa: E501 + return data + + def get_feature_with_http_info(self, bt_locator, feature_id, **kwargs): # noqa: E501 + """get_feature # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_feature_with_http_info(bt_locator, feature_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str feature_id: (required) + :param str fields: + :return: Feature + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator', 'feature_id', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_feature" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `get_feature`") # noqa: E501 + # verify the required parameter 'feature_id' is set + if ('feature_id' not in params or + params['feature_id'] is None): + raise ValueError("Missing the required parameter `feature_id` when calling `get_feature`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + if 'feature_id' in params: + path_params['featureId'] = params['feature_id'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/features/{featureId}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Feature', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_feature_parameter(self, bt_locator, feature_id, parameter_name, **kwargs): # noqa: E501 + """get_feature_parameter # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_feature_parameter(bt_locator, feature_id, parameter_name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str feature_id: (required) + :param str parameter_name: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_feature_parameter_with_http_info(bt_locator, feature_id, parameter_name, **kwargs) # noqa: E501 + else: + (data) = self.get_feature_parameter_with_http_info(bt_locator, feature_id, parameter_name, **kwargs) # noqa: E501 + return data + + def get_feature_parameter_with_http_info(self, bt_locator, feature_id, parameter_name, **kwargs): # noqa: E501 + """get_feature_parameter # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_feature_parameter_with_http_info(bt_locator, feature_id, parameter_name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str feature_id: (required) + :param str parameter_name: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator', 'feature_id', 'parameter_name'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_feature_parameter" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `get_feature_parameter`") # noqa: E501 + # verify the required parameter 'feature_id' is set + if ('feature_id' not in params or + params['feature_id'] is None): + raise ValueError("Missing the required parameter `feature_id` when calling `get_feature_parameter`") # noqa: E501 + # verify the required parameter 'parameter_name' is set + if ('parameter_name' not in params or + params['parameter_name'] is None): + raise ValueError("Missing the required parameter `parameter_name` when calling `get_feature_parameter`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + if 'feature_id' in params: + path_params['featureId'] = params['feature_id'] # noqa: E501 + if 'parameter_name' in params: + path_params['parameterName'] = params['parameter_name'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/features/{featureId}/parameters/{parameterName}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_feature_parameters(self, bt_locator, feature_id, **kwargs): # noqa: E501 + """get_feature_parameters # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_feature_parameters(bt_locator, feature_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str feature_id: (required) + :param str fields: + :return: Properties + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_feature_parameters_with_http_info(bt_locator, feature_id, **kwargs) # noqa: E501 + else: + (data) = self.get_feature_parameters_with_http_info(bt_locator, feature_id, **kwargs) # noqa: E501 + return data + + def get_feature_parameters_with_http_info(self, bt_locator, feature_id, **kwargs): # noqa: E501 + """get_feature_parameters # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_feature_parameters_with_http_info(bt_locator, feature_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str feature_id: (required) + :param str fields: + :return: Properties + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator', 'feature_id', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_feature_parameters" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `get_feature_parameters`") # noqa: E501 + # verify the required parameter 'feature_id' is set + if ('feature_id' not in params or + params['feature_id'] is None): + raise ValueError("Missing the required parameter `feature_id` when calling `get_feature_parameters`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + if 'feature_id' in params: + path_params['featureId'] = params['feature_id'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/features/{featureId}/parameters', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Properties', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_feature_setting(self, bt_locator, feature_id, name, **kwargs): # noqa: E501 + """get_feature_setting # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_feature_setting(bt_locator, feature_id, name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str feature_id: (required) + :param str name: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_feature_setting_with_http_info(bt_locator, feature_id, name, **kwargs) # noqa: E501 + else: + (data) = self.get_feature_setting_with_http_info(bt_locator, feature_id, name, **kwargs) # noqa: E501 + return data + + def get_feature_setting_with_http_info(self, bt_locator, feature_id, name, **kwargs): # noqa: E501 + """get_feature_setting # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_feature_setting_with_http_info(bt_locator, feature_id, name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str feature_id: (required) + :param str name: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator', 'feature_id', 'name'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_feature_setting" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `get_feature_setting`") # noqa: E501 + # verify the required parameter 'feature_id' is set + if ('feature_id' not in params or + params['feature_id'] is None): + raise ValueError("Missing the required parameter `feature_id` when calling `get_feature_setting`") # noqa: E501 + # verify the required parameter 'name' is set + if ('name' not in params or + params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `get_feature_setting`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + if 'feature_id' in params: + path_params['featureId'] = params['feature_id'] # noqa: E501 + if 'name' in params: + path_params['name'] = params['name'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/features/{featureId}/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_features(self, bt_locator, **kwargs): # noqa: E501 + """get_features # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_features(bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str fields: + :return: Features + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_features_with_http_info(bt_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_features_with_http_info(bt_locator, **kwargs) # noqa: E501 + return data + + def get_features_with_http_info(self, bt_locator, **kwargs): # noqa: E501 + """get_features # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_features_with_http_info(bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str fields: + :return: Features + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_features" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `get_features`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/features', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Features', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_investigations(self, bt_locator, **kwargs): # noqa: E501 + """get_investigations # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_investigations(bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str fields: + :return: Investigations + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_investigations_with_http_info(bt_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_investigations_with_http_info(bt_locator, **kwargs) # noqa: E501 + return data + + def get_investigations_with_http_info(self, bt_locator, **kwargs): # noqa: E501 + """get_investigations # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_investigations_with_http_info(bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str fields: + :return: Investigations + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_investigations" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `get_investigations`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/investigations', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Investigations', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_metadata(self, path, bt_locator, **kwargs): # noqa: E501 + """get_metadata # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_metadata(path, bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str path: (required) + :param str bt_locator: (required) + :param str fields: + :param bool resolve_parameters: + :return: file + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_metadata_with_http_info(path, bt_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_metadata_with_http_info(path, bt_locator, **kwargs) # noqa: E501 + return data + + def get_metadata_with_http_info(self, path, bt_locator, **kwargs): # noqa: E501 + """get_metadata # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_metadata_with_http_info(path, bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str path: (required) + :param str bt_locator: (required) + :param str fields: + :param bool resolve_parameters: + :return: file + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['path', 'bt_locator', 'fields', 'resolve_parameters'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_metadata" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'path' is set + if ('path' not in params or + params['path'] is None): + raise ValueError("Missing the required parameter `path` when calling `get_metadata`") # noqa: E501 + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `get_metadata`") # noqa: E501 + + if 'path' in params and not re.search('(\/.*)?', params['path']): # noqa: E501 + raise ValueError("Invalid value for parameter `path` when calling `get_metadata`, must conform to the pattern `/(\/.*)?/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'path' in params: + path_params['path'] = params['path'] # noqa: E501 + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + if 'resolve_parameters' in params: + query_params.append(('resolveParameters', params['resolve_parameters'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/vcs/files/latest/metadata{path}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='file', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_parameter(self, name, bt_locator, **kwargs): # noqa: E501 + """get_parameter # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_parameter(name, bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str name: (required) + :param str bt_locator: (required) + :param str fields: + :return: ModelProperty + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_parameter_with_http_info(name, bt_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_parameter_with_http_info(name, bt_locator, **kwargs) # noqa: E501 + return data + + def get_parameter_with_http_info(self, name, bt_locator, **kwargs): # noqa: E501 + """get_parameter # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_parameter_with_http_info(name, bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str name: (required) + :param str bt_locator: (required) + :param str fields: + :return: ModelProperty + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'bt_locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_parameter" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params or + params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `get_parameter`") # noqa: E501 + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `get_parameter`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] # noqa: E501 + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/parameters/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ModelProperty', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_parameter_0(self, name, bt_locator, **kwargs): # noqa: E501 + """get_parameter_0 # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_parameter_0(name, bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str name: (required) + :param str bt_locator: (required) + :param str fields: + :return: ModelProperty + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_parameter_0_with_http_info(name, bt_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_parameter_0_with_http_info(name, bt_locator, **kwargs) # noqa: E501 + return data + + def get_parameter_0_with_http_info(self, name, bt_locator, **kwargs): # noqa: E501 + """get_parameter_0 # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_parameter_0_with_http_info(name, bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str name: (required) + :param str bt_locator: (required) + :param str fields: + :return: ModelProperty + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'bt_locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_parameter_0" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params or + params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `get_parameter_0`") # noqa: E501 + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `get_parameter_0`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] # noqa: E501 + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/settings/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ModelProperty', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_parameter_type(self, name, bt_locator, **kwargs): # noqa: E501 + """get_parameter_type # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_parameter_type(name, bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str name: (required) + :param str bt_locator: (required) + :return: Type + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_parameter_type_with_http_info(name, bt_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_parameter_type_with_http_info(name, bt_locator, **kwargs) # noqa: E501 + return data + + def get_parameter_type_with_http_info(self, name, bt_locator, **kwargs): # noqa: E501 + """get_parameter_type # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_parameter_type_with_http_info(name, bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str name: (required) + :param str bt_locator: (required) + :return: Type + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'bt_locator'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_parameter_type" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params or + params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `get_parameter_type`") # noqa: E501 + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `get_parameter_type`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] # noqa: E501 + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/parameters/{name}/type', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Type', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_parameter_type_raw_value(self, name, bt_locator, **kwargs): # noqa: E501 + """get_parameter_type_raw_value # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_parameter_type_raw_value(name, bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str name: (required) + :param str bt_locator: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_parameter_type_raw_value_with_http_info(name, bt_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_parameter_type_raw_value_with_http_info(name, bt_locator, **kwargs) # noqa: E501 + return data + + def get_parameter_type_raw_value_with_http_info(self, name, bt_locator, **kwargs): # noqa: E501 + """get_parameter_type_raw_value # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_parameter_type_raw_value_with_http_info(name, bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str name: (required) + :param str bt_locator: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'bt_locator'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_parameter_type_raw_value" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params or + params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `get_parameter_type_raw_value`") # noqa: E501 + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `get_parameter_type_raw_value`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] # noqa: E501 + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/parameters/{name}/type/rawValue', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_parameter_value_long(self, name, bt_locator, **kwargs): # noqa: E501 + """get_parameter_value_long # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_parameter_value_long(name, bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str name: (required) + :param str bt_locator: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_parameter_value_long_with_http_info(name, bt_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_parameter_value_long_with_http_info(name, bt_locator, **kwargs) # noqa: E501 + return data + + def get_parameter_value_long_with_http_info(self, name, bt_locator, **kwargs): # noqa: E501 + """get_parameter_value_long # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_parameter_value_long_with_http_info(name, bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str name: (required) + :param str bt_locator: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'bt_locator'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_parameter_value_long" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params or + params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `get_parameter_value_long`") # noqa: E501 + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `get_parameter_value_long`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] # noqa: E501 + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/parameters/{name}/value', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_parameter_value_long_0(self, name, bt_locator, **kwargs): # noqa: E501 + """get_parameter_value_long_0 # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_parameter_value_long_0(name, bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str name: (required) + :param str bt_locator: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_parameter_value_long_0_with_http_info(name, bt_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_parameter_value_long_0_with_http_info(name, bt_locator, **kwargs) # noqa: E501 + return data + + def get_parameter_value_long_0_with_http_info(self, name, bt_locator, **kwargs): # noqa: E501 + """get_parameter_value_long_0 # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_parameter_value_long_0_with_http_info(name, bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str name: (required) + :param str bt_locator: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'bt_locator'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_parameter_value_long_0" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params or + params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `get_parameter_value_long_0`") # noqa: E501 + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `get_parameter_value_long_0`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] # noqa: E501 + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/settings/{name}/value', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_parameters(self, bt_locator, **kwargs): # noqa: E501 + """get_parameters # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_parameters(bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str locator: + :param str fields: + :return: Properties + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_parameters_with_http_info(bt_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_parameters_with_http_info(bt_locator, **kwargs) # noqa: E501 + return data + + def get_parameters_with_http_info(self, bt_locator, **kwargs): # noqa: E501 + """get_parameters # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_parameters_with_http_info(bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str locator: + :param str fields: + :return: Properties + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator', 'locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_parameters" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `get_parameters`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + + query_params = [] + if 'locator' in params: + query_params.append(('locator', params['locator'])) # noqa: E501 + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/parameters', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Properties', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_parameters_0(self, bt_locator, **kwargs): # noqa: E501 + """get_parameters_0 # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_parameters_0(bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str locator: + :param str fields: + :return: Properties + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_parameters_0_with_http_info(bt_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_parameters_0_with_http_info(bt_locator, **kwargs) # noqa: E501 + return data + + def get_parameters_0_with_http_info(self, bt_locator, **kwargs): # noqa: E501 + """get_parameters_0 # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_parameters_0_with_http_info(bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str locator: + :param str fields: + :return: Properties + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator', 'locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_parameters_0" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `get_parameters_0`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + + query_params = [] + if 'locator' in params: + query_params.append(('locator', params['locator'])) # noqa: E501 + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/settings', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Properties', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_requirement_setting(self, bt_locator, agent_requirement_locator, field_name, **kwargs): # noqa: E501 + """get_requirement_setting # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_requirement_setting(bt_locator, agent_requirement_locator, field_name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str agent_requirement_locator: (required) + :param str field_name: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_requirement_setting_with_http_info(bt_locator, agent_requirement_locator, field_name, **kwargs) # noqa: E501 + else: + (data) = self.get_requirement_setting_with_http_info(bt_locator, agent_requirement_locator, field_name, **kwargs) # noqa: E501 + return data + + def get_requirement_setting_with_http_info(self, bt_locator, agent_requirement_locator, field_name, **kwargs): # noqa: E501 + """get_requirement_setting # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_requirement_setting_with_http_info(bt_locator, agent_requirement_locator, field_name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str agent_requirement_locator: (required) + :param str field_name: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator', 'agent_requirement_locator', 'field_name'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_requirement_setting" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `get_requirement_setting`") # noqa: E501 + # verify the required parameter 'agent_requirement_locator' is set + if ('agent_requirement_locator' not in params or + params['agent_requirement_locator'] is None): + raise ValueError("Missing the required parameter `agent_requirement_locator` when calling `get_requirement_setting`") # noqa: E501 + # verify the required parameter 'field_name' is set + if ('field_name' not in params or + params['field_name'] is None): + raise ValueError("Missing the required parameter `field_name` when calling `get_requirement_setting`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + if 'agent_requirement_locator' in params: + path_params['agentRequirementLocator'] = params['agent_requirement_locator'] # noqa: E501 + if 'field_name' in params: + path_params['fieldName'] = params['field_name'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/agent-requirements/{agentRequirementLocator}/{fieldName}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_root(self, bt_locator, **kwargs): # noqa: E501 + """get_root # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_root(bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str base_path: + :param str locator: + :param str fields: + :param bool resolve_parameters: + :return: Files + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_root_with_http_info(bt_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_root_with_http_info(bt_locator, **kwargs) # noqa: E501 + return data + + def get_root_with_http_info(self, bt_locator, **kwargs): # noqa: E501 + """get_root # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_root_with_http_info(bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str base_path: + :param str locator: + :param str fields: + :param bool resolve_parameters: + :return: Files + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator', 'base_path', 'locator', 'fields', 'resolve_parameters'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_root" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `get_root`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + + query_params = [] + if 'base_path' in params: + query_params.append(('basePath', params['base_path'])) # noqa: E501 + if 'locator' in params: + query_params.append(('locator', params['locator'])) # noqa: E501 + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + if 'resolve_parameters' in params: + query_params.append(('resolveParameters', params['resolve_parameters'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/vcs/files/latest', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Files', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_settings_file(self, bt_locator, **kwargs): # noqa: E501 + """get_settings_file # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_settings_file(bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_settings_file_with_http_info(bt_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_settings_file_with_http_info(bt_locator, **kwargs) # noqa: E501 + return data + + def get_settings_file_with_http_info(self, bt_locator, **kwargs): # noqa: E501 + """get_settings_file # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_settings_file_with_http_info(bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_settings_file" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `get_settings_file`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/settingsFile', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_snapshot_dep(self, bt_locator, snapshot_dep_locator, **kwargs): # noqa: E501 + """get_snapshot_dep # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_snapshot_dep(bt_locator, snapshot_dep_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str snapshot_dep_locator: (required) + :param str fields: + :return: SnapshotDependency + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_snapshot_dep_with_http_info(bt_locator, snapshot_dep_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_snapshot_dep_with_http_info(bt_locator, snapshot_dep_locator, **kwargs) # noqa: E501 + return data + + def get_snapshot_dep_with_http_info(self, bt_locator, snapshot_dep_locator, **kwargs): # noqa: E501 + """get_snapshot_dep # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_snapshot_dep_with_http_info(bt_locator, snapshot_dep_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str snapshot_dep_locator: (required) + :param str fields: + :return: SnapshotDependency + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator', 'snapshot_dep_locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_snapshot_dep" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `get_snapshot_dep`") # noqa: E501 + # verify the required parameter 'snapshot_dep_locator' is set + if ('snapshot_dep_locator' not in params or + params['snapshot_dep_locator'] is None): + raise ValueError("Missing the required parameter `snapshot_dep_locator` when calling `get_snapshot_dep`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + if 'snapshot_dep_locator' in params: + path_params['snapshotDepLocator'] = params['snapshot_dep_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/snapshot-dependencies/{snapshotDepLocator}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='SnapshotDependency', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_snapshot_deps(self, bt_locator, **kwargs): # noqa: E501 + """get_snapshot_deps # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_snapshot_deps(bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str fields: + :return: SnapshotDependencies + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_snapshot_deps_with_http_info(bt_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_snapshot_deps_with_http_info(bt_locator, **kwargs) # noqa: E501 + return data + + def get_snapshot_deps_with_http_info(self, bt_locator, **kwargs): # noqa: E501 + """get_snapshot_deps # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_snapshot_deps_with_http_info(bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str fields: + :return: SnapshotDependencies + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_snapshot_deps" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `get_snapshot_deps`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/snapshot-dependencies', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='SnapshotDependencies', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_step(self, bt_locator, step_id, **kwargs): # noqa: E501 + """get_step # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_step(bt_locator, step_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str step_id: (required) + :param str fields: + :return: Step + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_step_with_http_info(bt_locator, step_id, **kwargs) # noqa: E501 + else: + (data) = self.get_step_with_http_info(bt_locator, step_id, **kwargs) # noqa: E501 + return data + + def get_step_with_http_info(self, bt_locator, step_id, **kwargs): # noqa: E501 + """get_step # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_step_with_http_info(bt_locator, step_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str step_id: (required) + :param str fields: + :return: Step + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator', 'step_id', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_step" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `get_step`") # noqa: E501 + # verify the required parameter 'step_id' is set + if ('step_id' not in params or + params['step_id'] is None): + raise ValueError("Missing the required parameter `step_id` when calling `get_step`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + if 'step_id' in params: + path_params['stepId'] = params['step_id'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/steps/{stepId}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Step', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_step_parameter(self, bt_locator, step_id, parameter_name, **kwargs): # noqa: E501 + """get_step_parameter # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_step_parameter(bt_locator, step_id, parameter_name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str step_id: (required) + :param str parameter_name: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_step_parameter_with_http_info(bt_locator, step_id, parameter_name, **kwargs) # noqa: E501 + else: + (data) = self.get_step_parameter_with_http_info(bt_locator, step_id, parameter_name, **kwargs) # noqa: E501 + return data + + def get_step_parameter_with_http_info(self, bt_locator, step_id, parameter_name, **kwargs): # noqa: E501 + """get_step_parameter # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_step_parameter_with_http_info(bt_locator, step_id, parameter_name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str step_id: (required) + :param str parameter_name: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator', 'step_id', 'parameter_name'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_step_parameter" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `get_step_parameter`") # noqa: E501 + # verify the required parameter 'step_id' is set + if ('step_id' not in params or + params['step_id'] is None): + raise ValueError("Missing the required parameter `step_id` when calling `get_step_parameter`") # noqa: E501 + # verify the required parameter 'parameter_name' is set + if ('parameter_name' not in params or + params['parameter_name'] is None): + raise ValueError("Missing the required parameter `parameter_name` when calling `get_step_parameter`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + if 'step_id' in params: + path_params['stepId'] = params['step_id'] # noqa: E501 + if 'parameter_name' in params: + path_params['parameterName'] = params['parameter_name'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/steps/{stepId}/parameters/{parameterName}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_step_parameters(self, bt_locator, step_id, **kwargs): # noqa: E501 + """get_step_parameters # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_step_parameters(bt_locator, step_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str step_id: (required) + :param str fields: + :return: Properties + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_step_parameters_with_http_info(bt_locator, step_id, **kwargs) # noqa: E501 + else: + (data) = self.get_step_parameters_with_http_info(bt_locator, step_id, **kwargs) # noqa: E501 + return data + + def get_step_parameters_with_http_info(self, bt_locator, step_id, **kwargs): # noqa: E501 + """get_step_parameters # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_step_parameters_with_http_info(bt_locator, step_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str step_id: (required) + :param str fields: + :return: Properties + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator', 'step_id', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_step_parameters" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `get_step_parameters`") # noqa: E501 + # verify the required parameter 'step_id' is set + if ('step_id' not in params or + params['step_id'] is None): + raise ValueError("Missing the required parameter `step_id` when calling `get_step_parameters`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + if 'step_id' in params: + path_params['stepId'] = params['step_id'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/steps/{stepId}/parameters', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Properties', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_step_setting(self, bt_locator, step_id, field_name, **kwargs): # noqa: E501 + """get_step_setting # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_step_setting(bt_locator, step_id, field_name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str step_id: (required) + :param str field_name: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_step_setting_with_http_info(bt_locator, step_id, field_name, **kwargs) # noqa: E501 + else: + (data) = self.get_step_setting_with_http_info(bt_locator, step_id, field_name, **kwargs) # noqa: E501 + return data + + def get_step_setting_with_http_info(self, bt_locator, step_id, field_name, **kwargs): # noqa: E501 + """get_step_setting # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_step_setting_with_http_info(bt_locator, step_id, field_name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str step_id: (required) + :param str field_name: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator', 'step_id', 'field_name'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_step_setting" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `get_step_setting`") # noqa: E501 + # verify the required parameter 'step_id' is set + if ('step_id' not in params or + params['step_id'] is None): + raise ValueError("Missing the required parameter `step_id` when calling `get_step_setting`") # noqa: E501 + # verify the required parameter 'field_name' is set + if ('field_name' not in params or + params['field_name'] is None): + raise ValueError("Missing the required parameter `field_name` when calling `get_step_setting`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + if 'step_id' in params: + path_params['stepId'] = params['step_id'] # noqa: E501 + if 'field_name' in params: + path_params['fieldName'] = params['field_name'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/steps/{stepId}/{fieldName}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_steps(self, bt_locator, **kwargs): # noqa: E501 + """get_steps # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_steps(bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str fields: + :return: Steps + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_steps_with_http_info(bt_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_steps_with_http_info(bt_locator, **kwargs) # noqa: E501 + return data + + def get_steps_with_http_info(self, bt_locator, **kwargs): # noqa: E501 + """get_steps # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_steps_with_http_info(bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str fields: + :return: Steps + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_steps" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `get_steps`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/steps', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Steps', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_template_association(self, bt_locator, **kwargs): # noqa: E501 + """get_template_association # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_template_association(bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str body: + :param str fields: + :return: BuildType + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_template_association_with_http_info(bt_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_template_association_with_http_info(bt_locator, **kwargs) # noqa: E501 + return data + + def get_template_association_with_http_info(self, bt_locator, **kwargs): # noqa: E501 + """get_template_association # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_template_association_with_http_info(bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str body: + :param str fields: + :return: BuildType + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator', 'body', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_template_association" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `get_template_association`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/template', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='BuildType', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_trigger(self, bt_locator, trigger_locator, **kwargs): # noqa: E501 + """get_trigger # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_trigger(bt_locator, trigger_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str trigger_locator: (required) + :param str fields: + :return: Trigger + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_trigger_with_http_info(bt_locator, trigger_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_trigger_with_http_info(bt_locator, trigger_locator, **kwargs) # noqa: E501 + return data + + def get_trigger_with_http_info(self, bt_locator, trigger_locator, **kwargs): # noqa: E501 + """get_trigger # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_trigger_with_http_info(bt_locator, trigger_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str trigger_locator: (required) + :param str fields: + :return: Trigger + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator', 'trigger_locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_trigger" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `get_trigger`") # noqa: E501 + # verify the required parameter 'trigger_locator' is set + if ('trigger_locator' not in params or + params['trigger_locator'] is None): + raise ValueError("Missing the required parameter `trigger_locator` when calling `get_trigger`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + if 'trigger_locator' in params: + path_params['triggerLocator'] = params['trigger_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/triggers/{triggerLocator}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Trigger', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_trigger_setting(self, bt_locator, trigger_locator, field_name, **kwargs): # noqa: E501 + """get_trigger_setting # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_trigger_setting(bt_locator, trigger_locator, field_name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str trigger_locator: (required) + :param str field_name: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_trigger_setting_with_http_info(bt_locator, trigger_locator, field_name, **kwargs) # noqa: E501 + else: + (data) = self.get_trigger_setting_with_http_info(bt_locator, trigger_locator, field_name, **kwargs) # noqa: E501 + return data + + def get_trigger_setting_with_http_info(self, bt_locator, trigger_locator, field_name, **kwargs): # noqa: E501 + """get_trigger_setting # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_trigger_setting_with_http_info(bt_locator, trigger_locator, field_name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str trigger_locator: (required) + :param str field_name: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator', 'trigger_locator', 'field_name'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_trigger_setting" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `get_trigger_setting`") # noqa: E501 + # verify the required parameter 'trigger_locator' is set + if ('trigger_locator' not in params or + params['trigger_locator'] is None): + raise ValueError("Missing the required parameter `trigger_locator` when calling `get_trigger_setting`") # noqa: E501 + # verify the required parameter 'field_name' is set + if ('field_name' not in params or + params['field_name'] is None): + raise ValueError("Missing the required parameter `field_name` when calling `get_trigger_setting`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + if 'trigger_locator' in params: + path_params['triggerLocator'] = params['trigger_locator'] # noqa: E501 + if 'field_name' in params: + path_params['fieldName'] = params['field_name'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/triggers/{triggerLocator}/{fieldName}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_triggers(self, bt_locator, **kwargs): # noqa: E501 + """get_triggers # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_triggers(bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str fields: + :return: Triggers + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_triggers_with_http_info(bt_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_triggers_with_http_info(bt_locator, **kwargs) # noqa: E501 + return data + + def get_triggers_with_http_info(self, bt_locator, **kwargs): # noqa: E501 + """get_triggers # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_triggers_with_http_info(bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str fields: + :return: Triggers + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_triggers" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `get_triggers`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/triggers', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Triggers', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_vcs_labeling_options(self, bt_locator, **kwargs): # noqa: E501 + """get_vcs_labeling_options # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_vcs_labeling_options(bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :return: VcsLabeling + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_vcs_labeling_options_with_http_info(bt_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_vcs_labeling_options_with_http_info(bt_locator, **kwargs) # noqa: E501 + return data + + def get_vcs_labeling_options_with_http_info(self, bt_locator, **kwargs): # noqa: E501 + """get_vcs_labeling_options # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_vcs_labeling_options_with_http_info(bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :return: VcsLabeling + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_vcs_labeling_options" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `get_vcs_labeling_options`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/vcsLabeling', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VcsLabeling', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_vcs_root_entries(self, bt_locator, **kwargs): # noqa: E501 + """get_vcs_root_entries # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_vcs_root_entries(bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str fields: + :return: VcsRootEntries + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_vcs_root_entries_with_http_info(bt_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_vcs_root_entries_with_http_info(bt_locator, **kwargs) # noqa: E501 + return data + + def get_vcs_root_entries_with_http_info(self, bt_locator, **kwargs): # noqa: E501 + """get_vcs_root_entries # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_vcs_root_entries_with_http_info(bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str fields: + :return: VcsRootEntries + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_vcs_root_entries" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `get_vcs_root_entries`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/vcs-root-entries', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VcsRootEntries', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_vcs_root_entry(self, bt_locator, vcs_root_locator, **kwargs): # noqa: E501 + """get_vcs_root_entry # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_vcs_root_entry(bt_locator, vcs_root_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str vcs_root_locator: (required) + :param str fields: + :return: VcsRootEntry + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_vcs_root_entry_with_http_info(bt_locator, vcs_root_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_vcs_root_entry_with_http_info(bt_locator, vcs_root_locator, **kwargs) # noqa: E501 + return data + + def get_vcs_root_entry_with_http_info(self, bt_locator, vcs_root_locator, **kwargs): # noqa: E501 + """get_vcs_root_entry # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_vcs_root_entry_with_http_info(bt_locator, vcs_root_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str vcs_root_locator: (required) + :param str fields: + :return: VcsRootEntry + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator', 'vcs_root_locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_vcs_root_entry" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `get_vcs_root_entry`") # noqa: E501 + # verify the required parameter 'vcs_root_locator' is set + if ('vcs_root_locator' not in params or + params['vcs_root_locator'] is None): + raise ValueError("Missing the required parameter `vcs_root_locator` when calling `get_vcs_root_entry`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + if 'vcs_root_locator' in params: + path_params['vcsRootLocator'] = params['vcs_root_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/vcs-root-entries/{vcsRootLocator}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VcsRootEntry', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_vcs_root_entry_checkout_rules(self, bt_locator, vcs_root_locator, **kwargs): # noqa: E501 + """get_vcs_root_entry_checkout_rules # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_vcs_root_entry_checkout_rules(bt_locator, vcs_root_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str vcs_root_locator: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_vcs_root_entry_checkout_rules_with_http_info(bt_locator, vcs_root_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_vcs_root_entry_checkout_rules_with_http_info(bt_locator, vcs_root_locator, **kwargs) # noqa: E501 + return data + + def get_vcs_root_entry_checkout_rules_with_http_info(self, bt_locator, vcs_root_locator, **kwargs): # noqa: E501 + """get_vcs_root_entry_checkout_rules # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_vcs_root_entry_checkout_rules_with_http_info(bt_locator, vcs_root_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str vcs_root_locator: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator', 'vcs_root_locator'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_vcs_root_entry_checkout_rules" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `get_vcs_root_entry_checkout_rules`") # noqa: E501 + # verify the required parameter 'vcs_root_locator' is set + if ('vcs_root_locator' not in params or + params['vcs_root_locator'] is None): + raise ValueError("Missing the required parameter `vcs_root_locator` when calling `get_vcs_root_entry_checkout_rules`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + if 'vcs_root_locator' in params: + path_params['vcsRootLocator'] = params['vcs_root_locator'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/vcs-root-entries/{vcsRootLocator}/checkout-rules', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_zipped(self, path, bt_locator, **kwargs): # noqa: E501 + """get_zipped # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_zipped(path, bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str path: (required) + :param str bt_locator: (required) + :param str base_path: + :param str locator: + :param str name: + :param bool resolve_parameters: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_zipped_with_http_info(path, bt_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_zipped_with_http_info(path, bt_locator, **kwargs) # noqa: E501 + return data + + def get_zipped_with_http_info(self, path, bt_locator, **kwargs): # noqa: E501 + """get_zipped # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_zipped_with_http_info(path, bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str path: (required) + :param str bt_locator: (required) + :param str base_path: + :param str locator: + :param str name: + :param bool resolve_parameters: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['path', 'bt_locator', 'base_path', 'locator', 'name', 'resolve_parameters'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_zipped" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'path' is set + if ('path' not in params or + params['path'] is None): + raise ValueError("Missing the required parameter `path` when calling `get_zipped`") # noqa: E501 + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `get_zipped`") # noqa: E501 + + if 'path' in params and not re.search('(\/.*)?', params['path']): # noqa: E501 + raise ValueError("Invalid value for parameter `path` when calling `get_zipped`, must conform to the pattern `/(\/.*)?/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'path' in params: + path_params['path'] = params['path'] # noqa: E501 + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + + query_params = [] + if 'base_path' in params: + query_params.append(('basePath', params['base_path'])) # noqa: E501 + if 'locator' in params: + query_params.append(('locator', params['locator'])) # noqa: E501 + if 'name' in params: + query_params.append(('name', params['name'])) # noqa: E501 + if 'resolve_parameters' in params: + query_params.append(('resolveParameters', params['resolve_parameters'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/vcs/files/latest/archived{path}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_agent_requirement(self, bt_locator, agent_requirement_locator, **kwargs): # noqa: E501 + """replace_agent_requirement # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.replace_agent_requirement(bt_locator, agent_requirement_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str agent_requirement_locator: (required) + :param str fields: + :param AgentRequirement body: + :return: AgentRequirement + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.replace_agent_requirement_with_http_info(bt_locator, agent_requirement_locator, **kwargs) # noqa: E501 + else: + (data) = self.replace_agent_requirement_with_http_info(bt_locator, agent_requirement_locator, **kwargs) # noqa: E501 + return data + + def replace_agent_requirement_with_http_info(self, bt_locator, agent_requirement_locator, **kwargs): # noqa: E501 + """replace_agent_requirement # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.replace_agent_requirement_with_http_info(bt_locator, agent_requirement_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str agent_requirement_locator: (required) + :param str fields: + :param AgentRequirement body: + :return: AgentRequirement + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator', 'agent_requirement_locator', 'fields', 'body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_agent_requirement" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `replace_agent_requirement`") # noqa: E501 + # verify the required parameter 'agent_requirement_locator' is set + if ('agent_requirement_locator' not in params or + params['agent_requirement_locator'] is None): + raise ValueError("Missing the required parameter `agent_requirement_locator` when calling `replace_agent_requirement`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + if 'agent_requirement_locator' in params: + path_params['agentRequirementLocator'] = params['agent_requirement_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/agent-requirements/{agentRequirementLocator}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AgentRequirement', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_agent_requirements(self, bt_locator, **kwargs): # noqa: E501 + """replace_agent_requirements # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.replace_agent_requirements(bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str fields: + :param AgentRequirements body: + :return: AgentRequirements + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.replace_agent_requirements_with_http_info(bt_locator, **kwargs) # noqa: E501 + else: + (data) = self.replace_agent_requirements_with_http_info(bt_locator, **kwargs) # noqa: E501 + return data + + def replace_agent_requirements_with_http_info(self, bt_locator, **kwargs): # noqa: E501 + """replace_agent_requirements # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.replace_agent_requirements_with_http_info(bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str fields: + :param AgentRequirements body: + :return: AgentRequirements + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator', 'fields', 'body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_agent_requirements" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `replace_agent_requirements`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/agent-requirements', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AgentRequirements', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_artifact_dep(self, bt_locator, artifact_dep_locator, **kwargs): # noqa: E501 + """replace_artifact_dep # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.replace_artifact_dep(bt_locator, artifact_dep_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str artifact_dep_locator: (required) + :param str fields: + :param ArtifactDependency body: + :return: ArtifactDependency + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.replace_artifact_dep_with_http_info(bt_locator, artifact_dep_locator, **kwargs) # noqa: E501 + else: + (data) = self.replace_artifact_dep_with_http_info(bt_locator, artifact_dep_locator, **kwargs) # noqa: E501 + return data + + def replace_artifact_dep_with_http_info(self, bt_locator, artifact_dep_locator, **kwargs): # noqa: E501 + """replace_artifact_dep # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.replace_artifact_dep_with_http_info(bt_locator, artifact_dep_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str artifact_dep_locator: (required) + :param str fields: + :param ArtifactDependency body: + :return: ArtifactDependency + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator', 'artifact_dep_locator', 'fields', 'body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_artifact_dep" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `replace_artifact_dep`") # noqa: E501 + # verify the required parameter 'artifact_dep_locator' is set + if ('artifact_dep_locator' not in params or + params['artifact_dep_locator'] is None): + raise ValueError("Missing the required parameter `artifact_dep_locator` when calling `replace_artifact_dep`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + if 'artifact_dep_locator' in params: + path_params['artifactDepLocator'] = params['artifact_dep_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/artifact-dependencies/{artifactDepLocator}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ArtifactDependency', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_artifact_deps(self, bt_locator, **kwargs): # noqa: E501 + """replace_artifact_deps # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.replace_artifact_deps(bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str fields: + :param ArtifactDependencies body: + :return: ArtifactDependencies + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.replace_artifact_deps_with_http_info(bt_locator, **kwargs) # noqa: E501 + else: + (data) = self.replace_artifact_deps_with_http_info(bt_locator, **kwargs) # noqa: E501 + return data + + def replace_artifact_deps_with_http_info(self, bt_locator, **kwargs): # noqa: E501 + """replace_artifact_deps # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.replace_artifact_deps_with_http_info(bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str fields: + :param ArtifactDependencies body: + :return: ArtifactDependencies + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator', 'fields', 'body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_artifact_deps" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `replace_artifact_deps`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/artifact-dependencies', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ArtifactDependencies', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_feature(self, bt_locator, feature_id, **kwargs): # noqa: E501 + """replace_feature # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.replace_feature(bt_locator, feature_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str feature_id: (required) + :param str fields: + :param Feature body: + :return: Feature + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.replace_feature_with_http_info(bt_locator, feature_id, **kwargs) # noqa: E501 + else: + (data) = self.replace_feature_with_http_info(bt_locator, feature_id, **kwargs) # noqa: E501 + return data + + def replace_feature_with_http_info(self, bt_locator, feature_id, **kwargs): # noqa: E501 + """replace_feature # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.replace_feature_with_http_info(bt_locator, feature_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str feature_id: (required) + :param str fields: + :param Feature body: + :return: Feature + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator', 'feature_id', 'fields', 'body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_feature" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `replace_feature`") # noqa: E501 + # verify the required parameter 'feature_id' is set + if ('feature_id' not in params or + params['feature_id'] is None): + raise ValueError("Missing the required parameter `feature_id` when calling `replace_feature`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + if 'feature_id' in params: + path_params['featureId'] = params['feature_id'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/features/{featureId}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Feature', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_feature_parameters(self, bt_locator, feature_id, **kwargs): # noqa: E501 + """replace_feature_parameters # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.replace_feature_parameters(bt_locator, feature_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str feature_id: (required) + :param Properties body: + :param str fields: + :return: Properties + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.replace_feature_parameters_with_http_info(bt_locator, feature_id, **kwargs) # noqa: E501 + else: + (data) = self.replace_feature_parameters_with_http_info(bt_locator, feature_id, **kwargs) # noqa: E501 + return data + + def replace_feature_parameters_with_http_info(self, bt_locator, feature_id, **kwargs): # noqa: E501 + """replace_feature_parameters # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.replace_feature_parameters_with_http_info(bt_locator, feature_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str feature_id: (required) + :param Properties body: + :param str fields: + :return: Properties + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator', 'feature_id', 'body', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_feature_parameters" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `replace_feature_parameters`") # noqa: E501 + # verify the required parameter 'feature_id' is set + if ('feature_id' not in params or + params['feature_id'] is None): + raise ValueError("Missing the required parameter `feature_id` when calling `replace_feature_parameters`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + if 'feature_id' in params: + path_params['featureId'] = params['feature_id'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/features/{featureId}/parameters', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Properties', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_features(self, bt_locator, **kwargs): # noqa: E501 + """replace_features # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.replace_features(bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str fields: + :param Features body: + :return: Features + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.replace_features_with_http_info(bt_locator, **kwargs) # noqa: E501 + else: + (data) = self.replace_features_with_http_info(bt_locator, **kwargs) # noqa: E501 + return data + + def replace_features_with_http_info(self, bt_locator, **kwargs): # noqa: E501 + """replace_features # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.replace_features_with_http_info(bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str fields: + :param Features body: + :return: Features + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator', 'fields', 'body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_features" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `replace_features`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/features', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Features', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_snapshot_dep(self, bt_locator, snapshot_dep_locator, **kwargs): # noqa: E501 + """replace_snapshot_dep # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.replace_snapshot_dep(bt_locator, snapshot_dep_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str snapshot_dep_locator: (required) + :param str fields: + :param SnapshotDependency body: + :return: SnapshotDependency + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.replace_snapshot_dep_with_http_info(bt_locator, snapshot_dep_locator, **kwargs) # noqa: E501 + else: + (data) = self.replace_snapshot_dep_with_http_info(bt_locator, snapshot_dep_locator, **kwargs) # noqa: E501 + return data + + def replace_snapshot_dep_with_http_info(self, bt_locator, snapshot_dep_locator, **kwargs): # noqa: E501 + """replace_snapshot_dep # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.replace_snapshot_dep_with_http_info(bt_locator, snapshot_dep_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str snapshot_dep_locator: (required) + :param str fields: + :param SnapshotDependency body: + :return: SnapshotDependency + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator', 'snapshot_dep_locator', 'fields', 'body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_snapshot_dep" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `replace_snapshot_dep`") # noqa: E501 + # verify the required parameter 'snapshot_dep_locator' is set + if ('snapshot_dep_locator' not in params or + params['snapshot_dep_locator'] is None): + raise ValueError("Missing the required parameter `snapshot_dep_locator` when calling `replace_snapshot_dep`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + if 'snapshot_dep_locator' in params: + path_params['snapshotDepLocator'] = params['snapshot_dep_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/snapshot-dependencies/{snapshotDepLocator}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='SnapshotDependency', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_snapshot_deps(self, bt_locator, **kwargs): # noqa: E501 + """replace_snapshot_deps # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.replace_snapshot_deps(bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str fields: + :param SnapshotDependencies body: + :return: SnapshotDependencies + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.replace_snapshot_deps_with_http_info(bt_locator, **kwargs) # noqa: E501 + else: + (data) = self.replace_snapshot_deps_with_http_info(bt_locator, **kwargs) # noqa: E501 + return data + + def replace_snapshot_deps_with_http_info(self, bt_locator, **kwargs): # noqa: E501 + """replace_snapshot_deps # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.replace_snapshot_deps_with_http_info(bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str fields: + :param SnapshotDependencies body: + :return: SnapshotDependencies + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator', 'fields', 'body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_snapshot_deps" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `replace_snapshot_deps`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/snapshot-dependencies', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='SnapshotDependencies', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_step(self, bt_locator, step_id, **kwargs): # noqa: E501 + """replace_step # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.replace_step(bt_locator, step_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str step_id: (required) + :param str fields: + :param Step body: + :return: Step + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.replace_step_with_http_info(bt_locator, step_id, **kwargs) # noqa: E501 + else: + (data) = self.replace_step_with_http_info(bt_locator, step_id, **kwargs) # noqa: E501 + return data + + def replace_step_with_http_info(self, bt_locator, step_id, **kwargs): # noqa: E501 + """replace_step # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.replace_step_with_http_info(bt_locator, step_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str step_id: (required) + :param str fields: + :param Step body: + :return: Step + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator', 'step_id', 'fields', 'body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_step" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `replace_step`") # noqa: E501 + # verify the required parameter 'step_id' is set + if ('step_id' not in params or + params['step_id'] is None): + raise ValueError("Missing the required parameter `step_id` when calling `replace_step`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + if 'step_id' in params: + path_params['stepId'] = params['step_id'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/steps/{stepId}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Step', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_step_parameters(self, bt_locator, step_id, **kwargs): # noqa: E501 + """replace_step_parameters # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.replace_step_parameters(bt_locator, step_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str step_id: (required) + :param Properties body: + :param str fields: + :return: Properties + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.replace_step_parameters_with_http_info(bt_locator, step_id, **kwargs) # noqa: E501 + else: + (data) = self.replace_step_parameters_with_http_info(bt_locator, step_id, **kwargs) # noqa: E501 + return data + + def replace_step_parameters_with_http_info(self, bt_locator, step_id, **kwargs): # noqa: E501 + """replace_step_parameters # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.replace_step_parameters_with_http_info(bt_locator, step_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str step_id: (required) + :param Properties body: + :param str fields: + :return: Properties + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator', 'step_id', 'body', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_step_parameters" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `replace_step_parameters`") # noqa: E501 + # verify the required parameter 'step_id' is set + if ('step_id' not in params or + params['step_id'] is None): + raise ValueError("Missing the required parameter `step_id` when calling `replace_step_parameters`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + if 'step_id' in params: + path_params['stepId'] = params['step_id'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/steps/{stepId}/parameters', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Properties', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_steps(self, bt_locator, **kwargs): # noqa: E501 + """replace_steps # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.replace_steps(bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str fields: + :param Steps body: + :return: Steps + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.replace_steps_with_http_info(bt_locator, **kwargs) # noqa: E501 + else: + (data) = self.replace_steps_with_http_info(bt_locator, **kwargs) # noqa: E501 + return data + + def replace_steps_with_http_info(self, bt_locator, **kwargs): # noqa: E501 + """replace_steps # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.replace_steps_with_http_info(bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str fields: + :param Steps body: + :return: Steps + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator', 'fields', 'body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_steps" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `replace_steps`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/steps', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Steps', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_trigger(self, bt_locator, trigger_locator, **kwargs): # noqa: E501 + """replace_trigger # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.replace_trigger(bt_locator, trigger_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str trigger_locator: (required) + :param str fields: + :param Trigger body: + :return: Trigger + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.replace_trigger_with_http_info(bt_locator, trigger_locator, **kwargs) # noqa: E501 + else: + (data) = self.replace_trigger_with_http_info(bt_locator, trigger_locator, **kwargs) # noqa: E501 + return data + + def replace_trigger_with_http_info(self, bt_locator, trigger_locator, **kwargs): # noqa: E501 + """replace_trigger # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.replace_trigger_with_http_info(bt_locator, trigger_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str trigger_locator: (required) + :param str fields: + :param Trigger body: + :return: Trigger + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator', 'trigger_locator', 'fields', 'body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_trigger" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `replace_trigger`") # noqa: E501 + # verify the required parameter 'trigger_locator' is set + if ('trigger_locator' not in params or + params['trigger_locator'] is None): + raise ValueError("Missing the required parameter `trigger_locator` when calling `replace_trigger`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + if 'trigger_locator' in params: + path_params['triggerLocator'] = params['trigger_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/triggers/{triggerLocator}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Trigger', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_triggers(self, bt_locator, **kwargs): # noqa: E501 + """replace_triggers # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.replace_triggers(bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str fields: + :param Triggers body: + :return: Triggers + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.replace_triggers_with_http_info(bt_locator, **kwargs) # noqa: E501 + else: + (data) = self.replace_triggers_with_http_info(bt_locator, **kwargs) # noqa: E501 + return data + + def replace_triggers_with_http_info(self, bt_locator, **kwargs): # noqa: E501 + """replace_triggers # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.replace_triggers_with_http_info(bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str fields: + :param Triggers body: + :return: Triggers + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator', 'fields', 'body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_triggers" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `replace_triggers`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/triggers', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Triggers', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_vcs_root_entries(self, bt_locator, **kwargs): # noqa: E501 + """replace_vcs_root_entries # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.replace_vcs_root_entries(bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param VcsRootEntries body: + :param str fields: + :return: VcsRootEntries + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.replace_vcs_root_entries_with_http_info(bt_locator, **kwargs) # noqa: E501 + else: + (data) = self.replace_vcs_root_entries_with_http_info(bt_locator, **kwargs) # noqa: E501 + return data + + def replace_vcs_root_entries_with_http_info(self, bt_locator, **kwargs): # noqa: E501 + """replace_vcs_root_entries # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.replace_vcs_root_entries_with_http_info(bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param VcsRootEntries body: + :param str fields: + :return: VcsRootEntries + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator', 'body', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_vcs_root_entries" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `replace_vcs_root_entries`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/vcs-root-entries', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VcsRootEntries', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def serve_branches(self, bt_locator, **kwargs): # noqa: E501 + """serve_branches # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_branches(bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str locator: + :param str fields: + :return: Branches + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.serve_branches_with_http_info(bt_locator, **kwargs) # noqa: E501 + else: + (data) = self.serve_branches_with_http_info(bt_locator, **kwargs) # noqa: E501 + return data + + def serve_branches_with_http_info(self, bt_locator, **kwargs): # noqa: E501 + """serve_branches # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_branches_with_http_info(bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str locator: + :param str fields: + :return: Branches + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator', 'locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method serve_branches" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `serve_branches`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + + query_params = [] + if 'locator' in params: + query_params.append(('locator', params['locator'])) # noqa: E501 + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/branches', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Branches', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def serve_build_field(self, bt_locator, build_locator, field, **kwargs): # noqa: E501 + """serve_build_field # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_build_field(bt_locator, build_locator, field, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str build_locator: (required) + :param str field: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.serve_build_field_with_http_info(bt_locator, build_locator, field, **kwargs) # noqa: E501 + else: + (data) = self.serve_build_field_with_http_info(bt_locator, build_locator, field, **kwargs) # noqa: E501 + return data + + def serve_build_field_with_http_info(self, bt_locator, build_locator, field, **kwargs): # noqa: E501 + """serve_build_field # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_build_field_with_http_info(bt_locator, build_locator, field, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str build_locator: (required) + :param str field: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator', 'build_locator', 'field'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method serve_build_field" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `serve_build_field`") # noqa: E501 + # verify the required parameter 'build_locator' is set + if ('build_locator' not in params or + params['build_locator'] is None): + raise ValueError("Missing the required parameter `build_locator` when calling `serve_build_field`") # noqa: E501 + # verify the required parameter 'field' is set + if ('field' not in params or + params['field'] is None): + raise ValueError("Missing the required parameter `field` when calling `serve_build_field`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + if 'build_locator' in params: + path_params['buildLocator'] = params['build_locator'] # noqa: E501 + if 'field' in params: + path_params['field'] = params['field'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/builds/{buildLocator}/{field}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def serve_build_type_builds_tags(self, bt_locator, field, **kwargs): # noqa: E501 + """serve_build_type_builds_tags # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_build_type_builds_tags(bt_locator, field, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str field: (required) + :return: Tags + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.serve_build_type_builds_tags_with_http_info(bt_locator, field, **kwargs) # noqa: E501 + else: + (data) = self.serve_build_type_builds_tags_with_http_info(bt_locator, field, **kwargs) # noqa: E501 + return data + + def serve_build_type_builds_tags_with_http_info(self, bt_locator, field, **kwargs): # noqa: E501 + """serve_build_type_builds_tags # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_build_type_builds_tags_with_http_info(bt_locator, field, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str field: (required) + :return: Tags + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator', 'field'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method serve_build_type_builds_tags" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `serve_build_type_builds_tags`") # noqa: E501 + # verify the required parameter 'field' is set + if ('field' not in params or + params['field'] is None): + raise ValueError("Missing the required parameter `field` when calling `serve_build_type_builds_tags`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + if 'field' in params: + path_params['field'] = params['field'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/buildTags', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Tags', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def serve_build_type_field(self, bt_locator, field, **kwargs): # noqa: E501 + """serve_build_type_field # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_build_type_field(bt_locator, field, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str field: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.serve_build_type_field_with_http_info(bt_locator, field, **kwargs) # noqa: E501 + else: + (data) = self.serve_build_type_field_with_http_info(bt_locator, field, **kwargs) # noqa: E501 + return data + + def serve_build_type_field_with_http_info(self, bt_locator, field, **kwargs): # noqa: E501 + """serve_build_type_field # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_build_type_field_with_http_info(bt_locator, field, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str field: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator', 'field'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method serve_build_type_field" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `serve_build_type_field`") # noqa: E501 + # verify the required parameter 'field' is set + if ('field' not in params or + params['field'] is None): + raise ValueError("Missing the required parameter `field` when calling `serve_build_type_field`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + if 'field' in params: + path_params['field'] = params['field'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/{field}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def serve_build_type_template(self, bt_locator, **kwargs): # noqa: E501 + """serve_build_type_template # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_build_type_template(bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str fields: + :return: BuildType + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.serve_build_type_template_with_http_info(bt_locator, **kwargs) # noqa: E501 + else: + (data) = self.serve_build_type_template_with_http_info(bt_locator, **kwargs) # noqa: E501 + return data + + def serve_build_type_template_with_http_info(self, bt_locator, **kwargs): # noqa: E501 + """serve_build_type_template # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_build_type_template_with_http_info(bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str fields: + :return: BuildType + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method serve_build_type_template" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `serve_build_type_template`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/template', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='BuildType', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def serve_build_type_xml(self, bt_locator, **kwargs): # noqa: E501 + """serve_build_type_xml # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_build_type_xml(bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str fields: + :return: BuildType + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.serve_build_type_xml_with_http_info(bt_locator, **kwargs) # noqa: E501 + else: + (data) = self.serve_build_type_xml_with_http_info(bt_locator, **kwargs) # noqa: E501 + return data + + def serve_build_type_xml_with_http_info(self, bt_locator, **kwargs): # noqa: E501 + """serve_build_type_xml # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_build_type_xml_with_http_info(bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str fields: + :return: BuildType + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method serve_build_type_xml" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `serve_build_type_xml`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='BuildType', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def serve_build_with_project(self, bt_locator, build_locator, **kwargs): # noqa: E501 + """serve_build_with_project # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_build_with_project(bt_locator, build_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str build_locator: (required) + :param str fields: + :return: Build + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.serve_build_with_project_with_http_info(bt_locator, build_locator, **kwargs) # noqa: E501 + else: + (data) = self.serve_build_with_project_with_http_info(bt_locator, build_locator, **kwargs) # noqa: E501 + return data + + def serve_build_with_project_with_http_info(self, bt_locator, build_locator, **kwargs): # noqa: E501 + """serve_build_with_project # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_build_with_project_with_http_info(bt_locator, build_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str build_locator: (required) + :param str fields: + :return: Build + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator', 'build_locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method serve_build_with_project" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `serve_build_with_project`") # noqa: E501 + # verify the required parameter 'build_locator' is set + if ('build_locator' not in params or + params['build_locator'] is None): + raise ValueError("Missing the required parameter `build_locator` when calling `serve_build_with_project`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + if 'build_locator' in params: + path_params['buildLocator'] = params['build_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/builds/{buildLocator}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Build', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def serve_builds(self, bt_locator, **kwargs): # noqa: E501 + """serve_builds # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_builds(bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str status: + :param str triggered_by_user: + :param bool include_personal: + :param bool include_canceled: + :param bool only_pinned: + :param list[str] tag: + :param str agent_name: + :param str since_build: + :param str since_date: + :param int start: + :param int count: + :param str locator: + :param str fields: + :return: Builds + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.serve_builds_with_http_info(bt_locator, **kwargs) # noqa: E501 + else: + (data) = self.serve_builds_with_http_info(bt_locator, **kwargs) # noqa: E501 + return data + + def serve_builds_with_http_info(self, bt_locator, **kwargs): # noqa: E501 + """serve_builds # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_builds_with_http_info(bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str status: + :param str triggered_by_user: + :param bool include_personal: + :param bool include_canceled: + :param bool only_pinned: + :param list[str] tag: + :param str agent_name: + :param str since_build: + :param str since_date: + :param int start: + :param int count: + :param str locator: + :param str fields: + :return: Builds + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator', 'status', 'triggered_by_user', 'include_personal', 'include_canceled', 'only_pinned', 'tag', 'agent_name', 'since_build', 'since_date', 'start', 'count', 'locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method serve_builds" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `serve_builds`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + + query_params = [] + if 'status' in params: + query_params.append(('status', params['status'])) # noqa: E501 + if 'triggered_by_user' in params: + query_params.append(('triggeredByUser', params['triggered_by_user'])) # noqa: E501 + if 'include_personal' in params: + query_params.append(('includePersonal', params['include_personal'])) # noqa: E501 + if 'include_canceled' in params: + query_params.append(('includeCanceled', params['include_canceled'])) # noqa: E501 + if 'only_pinned' in params: + query_params.append(('onlyPinned', params['only_pinned'])) # noqa: E501 + if 'tag' in params: + query_params.append(('tag', params['tag'])) # noqa: E501 + collection_formats['tag'] = 'multi' # noqa: E501 + if 'agent_name' in params: + query_params.append(('agentName', params['agent_name'])) # noqa: E501 + if 'since_build' in params: + query_params.append(('sinceBuild', params['since_build'])) # noqa: E501 + if 'since_date' in params: + query_params.append(('sinceDate', params['since_date'])) # noqa: E501 + if 'start' in params: + query_params.append(('start', params['start'])) # noqa: E501 + if 'count' in params: + query_params.append(('count', params['count'])) # noqa: E501 + if 'locator' in params: + query_params.append(('locator', params['locator'])) # noqa: E501 + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/builds', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Builds', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def set_build_type_field(self, bt_locator, field, **kwargs): # noqa: E501 + """set_build_type_field # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.set_build_type_field(bt_locator, field, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str field: (required) + :param str body: + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.set_build_type_field_with_http_info(bt_locator, field, **kwargs) # noqa: E501 + else: + (data) = self.set_build_type_field_with_http_info(bt_locator, field, **kwargs) # noqa: E501 + return data + + def set_build_type_field_with_http_info(self, bt_locator, field, **kwargs): # noqa: E501 + """set_build_type_field # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.set_build_type_field_with_http_info(bt_locator, field, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str field: (required) + :param str body: + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator', 'field', 'body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method set_build_type_field" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `set_build_type_field`") # noqa: E501 + # verify the required parameter 'field' is set + if ('field' not in params or + params['field'] is None): + raise ValueError("Missing the required parameter `field` when calling `set_build_type_field`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + if 'field' in params: + path_params['field'] = params['field'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/{field}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def set_parameter(self, bt_locator, **kwargs): # noqa: E501 + """set_parameter # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.set_parameter(bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param ModelProperty body: + :param str fields: + :return: ModelProperty + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.set_parameter_with_http_info(bt_locator, **kwargs) # noqa: E501 + else: + (data) = self.set_parameter_with_http_info(bt_locator, **kwargs) # noqa: E501 + return data + + def set_parameter_with_http_info(self, bt_locator, **kwargs): # noqa: E501 + """set_parameter # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.set_parameter_with_http_info(bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param ModelProperty body: + :param str fields: + :return: ModelProperty + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator', 'body', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method set_parameter" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `set_parameter`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/parameters', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ModelProperty', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def set_parameter_0(self, name, bt_locator, **kwargs): # noqa: E501 + """set_parameter_0 # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.set_parameter_0(name, bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str name: (required) + :param str bt_locator: (required) + :param ModelProperty body: + :param str fields: + :return: ModelProperty + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.set_parameter_0_with_http_info(name, bt_locator, **kwargs) # noqa: E501 + else: + (data) = self.set_parameter_0_with_http_info(name, bt_locator, **kwargs) # noqa: E501 + return data + + def set_parameter_0_with_http_info(self, name, bt_locator, **kwargs): # noqa: E501 + """set_parameter_0 # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.set_parameter_0_with_http_info(name, bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str name: (required) + :param str bt_locator: (required) + :param ModelProperty body: + :param str fields: + :return: ModelProperty + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'bt_locator', 'body', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method set_parameter_0" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params or + params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `set_parameter_0`") # noqa: E501 + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `set_parameter_0`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] # noqa: E501 + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/parameters/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ModelProperty', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def set_parameter_1(self, bt_locator, **kwargs): # noqa: E501 + """set_parameter_1 # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.set_parameter_1(bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param ModelProperty body: + :param str fields: + :return: ModelProperty + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.set_parameter_1_with_http_info(bt_locator, **kwargs) # noqa: E501 + else: + (data) = self.set_parameter_1_with_http_info(bt_locator, **kwargs) # noqa: E501 + return data + + def set_parameter_1_with_http_info(self, bt_locator, **kwargs): # noqa: E501 + """set_parameter_1 # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.set_parameter_1_with_http_info(bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param ModelProperty body: + :param str fields: + :return: ModelProperty + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator', 'body', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method set_parameter_1" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `set_parameter_1`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/settings', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ModelProperty', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def set_parameter_2(self, name, bt_locator, **kwargs): # noqa: E501 + """set_parameter_2 # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.set_parameter_2(name, bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str name: (required) + :param str bt_locator: (required) + :param ModelProperty body: + :param str fields: + :return: ModelProperty + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.set_parameter_2_with_http_info(name, bt_locator, **kwargs) # noqa: E501 + else: + (data) = self.set_parameter_2_with_http_info(name, bt_locator, **kwargs) # noqa: E501 + return data + + def set_parameter_2_with_http_info(self, name, bt_locator, **kwargs): # noqa: E501 + """set_parameter_2 # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.set_parameter_2_with_http_info(name, bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str name: (required) + :param str bt_locator: (required) + :param ModelProperty body: + :param str fields: + :return: ModelProperty + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'bt_locator', 'body', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method set_parameter_2" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params or + params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `set_parameter_2`") # noqa: E501 + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `set_parameter_2`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] # noqa: E501 + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/settings/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ModelProperty', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def set_parameter_type(self, name, bt_locator, **kwargs): # noqa: E501 + """set_parameter_type # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.set_parameter_type(name, bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str name: (required) + :param str bt_locator: (required) + :param Type body: + :return: Type + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.set_parameter_type_with_http_info(name, bt_locator, **kwargs) # noqa: E501 + else: + (data) = self.set_parameter_type_with_http_info(name, bt_locator, **kwargs) # noqa: E501 + return data + + def set_parameter_type_with_http_info(self, name, bt_locator, **kwargs): # noqa: E501 + """set_parameter_type # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.set_parameter_type_with_http_info(name, bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str name: (required) + :param str bt_locator: (required) + :param Type body: + :return: Type + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'bt_locator', 'body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method set_parameter_type" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params or + params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `set_parameter_type`") # noqa: E501 + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `set_parameter_type`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] # noqa: E501 + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/parameters/{name}/type', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Type', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def set_parameter_type_raw_value(self, name, bt_locator, **kwargs): # noqa: E501 + """set_parameter_type_raw_value # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.set_parameter_type_raw_value(name, bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str name: (required) + :param str bt_locator: (required) + :param str body: + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.set_parameter_type_raw_value_with_http_info(name, bt_locator, **kwargs) # noqa: E501 + else: + (data) = self.set_parameter_type_raw_value_with_http_info(name, bt_locator, **kwargs) # noqa: E501 + return data + + def set_parameter_type_raw_value_with_http_info(self, name, bt_locator, **kwargs): # noqa: E501 + """set_parameter_type_raw_value # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.set_parameter_type_raw_value_with_http_info(name, bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str name: (required) + :param str bt_locator: (required) + :param str body: + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'bt_locator', 'body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method set_parameter_type_raw_value" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params or + params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `set_parameter_type_raw_value`") # noqa: E501 + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `set_parameter_type_raw_value`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] # noqa: E501 + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/parameters/{name}/type/rawValue', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def set_parameter_value_long(self, name, bt_locator, **kwargs): # noqa: E501 + """set_parameter_value_long # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.set_parameter_value_long(name, bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str name: (required) + :param str bt_locator: (required) + :param str body: + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.set_parameter_value_long_with_http_info(name, bt_locator, **kwargs) # noqa: E501 + else: + (data) = self.set_parameter_value_long_with_http_info(name, bt_locator, **kwargs) # noqa: E501 + return data + + def set_parameter_value_long_with_http_info(self, name, bt_locator, **kwargs): # noqa: E501 + """set_parameter_value_long # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.set_parameter_value_long_with_http_info(name, bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str name: (required) + :param str bt_locator: (required) + :param str body: + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'bt_locator', 'body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method set_parameter_value_long" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params or + params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `set_parameter_value_long`") # noqa: E501 + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `set_parameter_value_long`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] # noqa: E501 + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/parameters/{name}/value', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def set_parameter_value_long_0(self, name, bt_locator, **kwargs): # noqa: E501 + """set_parameter_value_long_0 # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.set_parameter_value_long_0(name, bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str name: (required) + :param str bt_locator: (required) + :param str body: + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.set_parameter_value_long_0_with_http_info(name, bt_locator, **kwargs) # noqa: E501 + else: + (data) = self.set_parameter_value_long_0_with_http_info(name, bt_locator, **kwargs) # noqa: E501 + return data + + def set_parameter_value_long_0_with_http_info(self, name, bt_locator, **kwargs): # noqa: E501 + """set_parameter_value_long_0 # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.set_parameter_value_long_0_with_http_info(name, bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str name: (required) + :param str bt_locator: (required) + :param str body: + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'bt_locator', 'body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method set_parameter_value_long_0" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params or + params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `set_parameter_value_long_0`") # noqa: E501 + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `set_parameter_value_long_0`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] # noqa: E501 + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/settings/{name}/value', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def set_parameters(self, bt_locator, **kwargs): # noqa: E501 + """set_parameters # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.set_parameters(bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param Properties body: + :param str fields: + :return: Properties + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.set_parameters_with_http_info(bt_locator, **kwargs) # noqa: E501 + else: + (data) = self.set_parameters_with_http_info(bt_locator, **kwargs) # noqa: E501 + return data + + def set_parameters_with_http_info(self, bt_locator, **kwargs): # noqa: E501 + """set_parameters # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.set_parameters_with_http_info(bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param Properties body: + :param str fields: + :return: Properties + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator', 'body', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method set_parameters" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `set_parameters`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/parameters', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Properties', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def set_parameters_0(self, bt_locator, **kwargs): # noqa: E501 + """set_parameters_0 # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.set_parameters_0(bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param Properties body: + :param str fields: + :return: Properties + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.set_parameters_0_with_http_info(bt_locator, **kwargs) # noqa: E501 + else: + (data) = self.set_parameters_0_with_http_info(bt_locator, **kwargs) # noqa: E501 + return data + + def set_parameters_0_with_http_info(self, bt_locator, **kwargs): # noqa: E501 + """set_parameters_0 # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.set_parameters_0_with_http_info(bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param Properties body: + :param str fields: + :return: Properties + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator', 'body', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method set_parameters_0" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `set_parameters_0`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/settings', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Properties', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def set_vcs_labeling_options(self, bt_locator, **kwargs): # noqa: E501 + """set_vcs_labeling_options # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.set_vcs_labeling_options(bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param VcsLabeling body: + :return: VcsLabeling + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.set_vcs_labeling_options_with_http_info(bt_locator, **kwargs) # noqa: E501 + else: + (data) = self.set_vcs_labeling_options_with_http_info(bt_locator, **kwargs) # noqa: E501 + return data + + def set_vcs_labeling_options_with_http_info(self, bt_locator, **kwargs): # noqa: E501 + """set_vcs_labeling_options # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.set_vcs_labeling_options_with_http_info(bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param VcsLabeling body: + :return: VcsLabeling + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator', 'body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method set_vcs_labeling_options" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `set_vcs_labeling_options`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/vcsLabeling', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VcsLabeling', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def update_vcs_root_entry(self, bt_locator, vcs_root_locator, **kwargs): # noqa: E501 + """update_vcs_root_entry # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_vcs_root_entry(bt_locator, vcs_root_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str vcs_root_locator: (required) + :param VcsRootEntry body: + :param str fields: + :return: VcsRootEntry + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.update_vcs_root_entry_with_http_info(bt_locator, vcs_root_locator, **kwargs) # noqa: E501 + else: + (data) = self.update_vcs_root_entry_with_http_info(bt_locator, vcs_root_locator, **kwargs) # noqa: E501 + return data + + def update_vcs_root_entry_with_http_info(self, bt_locator, vcs_root_locator, **kwargs): # noqa: E501 + """update_vcs_root_entry # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_vcs_root_entry_with_http_info(bt_locator, vcs_root_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str vcs_root_locator: (required) + :param VcsRootEntry body: + :param str fields: + :return: VcsRootEntry + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator', 'vcs_root_locator', 'body', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method update_vcs_root_entry" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `update_vcs_root_entry`") # noqa: E501 + # verify the required parameter 'vcs_root_locator' is set + if ('vcs_root_locator' not in params or + params['vcs_root_locator'] is None): + raise ValueError("Missing the required parameter `vcs_root_locator` when calling `update_vcs_root_entry`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + if 'vcs_root_locator' in params: + path_params['vcsRootLocator'] = params['vcs_root_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/vcs-root-entries/{vcsRootLocator}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VcsRootEntry', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def update_vcs_root_entry_checkout_rules(self, bt_locator, vcs_root_locator, **kwargs): # noqa: E501 + """update_vcs_root_entry_checkout_rules # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_vcs_root_entry_checkout_rules(bt_locator, vcs_root_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str vcs_root_locator: (required) + :param str body: + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.update_vcs_root_entry_checkout_rules_with_http_info(bt_locator, vcs_root_locator, **kwargs) # noqa: E501 + else: + (data) = self.update_vcs_root_entry_checkout_rules_with_http_info(bt_locator, vcs_root_locator, **kwargs) # noqa: E501 + return data + + def update_vcs_root_entry_checkout_rules_with_http_info(self, bt_locator, vcs_root_locator, **kwargs): # noqa: E501 + """update_vcs_root_entry_checkout_rules # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_vcs_root_entry_checkout_rules_with_http_info(bt_locator, vcs_root_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str bt_locator: (required) + :param str vcs_root_locator: (required) + :param str body: + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['bt_locator', 'vcs_root_locator', 'body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method update_vcs_root_entry_checkout_rules" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `update_vcs_root_entry_checkout_rules`") # noqa: E501 + # verify the required parameter 'vcs_root_locator' is set + if ('vcs_root_locator' not in params or + params['vcs_root_locator'] is None): + raise ValueError("Missing the required parameter `vcs_root_locator` when calling `update_vcs_root_entry_checkout_rules`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + if 'vcs_root_locator' in params: + path_params['vcsRootLocator'] = params['vcs_root_locator'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/buildTypes/{btLocator}/vcs-root-entries/{vcsRootLocator}/checkout-rules', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/swagger_client/api/change_api.py b/swagger_client/api/change_api.py new file mode 100644 index 0000000..c83a96e --- /dev/null +++ b/swagger_client/api/change_api.py @@ -0,0 +1,1170 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from swagger_client.api_client import ApiClient + + +class ChangeApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def get_change_attributes(self, change_locator, **kwargs): # noqa: E501 + """get_change_attributes # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_change_attributes(change_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str change_locator: (required) + :param str fields: + :return: Entries + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_change_attributes_with_http_info(change_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_change_attributes_with_http_info(change_locator, **kwargs) # noqa: E501 + return data + + def get_change_attributes_with_http_info(self, change_locator, **kwargs): # noqa: E501 + """get_change_attributes # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_change_attributes_with_http_info(change_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str change_locator: (required) + :param str fields: + :return: Entries + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['change_locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_change_attributes" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'change_locator' is set + if ('change_locator' not in params or + params['change_locator'] is None): + raise ValueError("Missing the required parameter `change_locator` when calling `get_change_attributes`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'change_locator' in params: + path_params['changeLocator'] = params['change_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/changes/{changeLocator}/attributes', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Entries', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_change_duplicates(self, change_locator, **kwargs): # noqa: E501 + """get_change_duplicates # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_change_duplicates(change_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str change_locator: (required) + :param str fields: + :return: Changes + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_change_duplicates_with_http_info(change_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_change_duplicates_with_http_info(change_locator, **kwargs) # noqa: E501 + return data + + def get_change_duplicates_with_http_info(self, change_locator, **kwargs): # noqa: E501 + """get_change_duplicates # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_change_duplicates_with_http_info(change_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str change_locator: (required) + :param str fields: + :return: Changes + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['change_locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_change_duplicates" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'change_locator' is set + if ('change_locator' not in params or + params['change_locator'] is None): + raise ValueError("Missing the required parameter `change_locator` when calling `get_change_duplicates`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'change_locator' in params: + path_params['changeLocator'] = params['change_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/changes/{changeLocator}/duplicates', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Changes', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_change_field(self, change_locator, field, **kwargs): # noqa: E501 + """get_change_field # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_change_field(change_locator, field, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str change_locator: (required) + :param str field: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_change_field_with_http_info(change_locator, field, **kwargs) # noqa: E501 + else: + (data) = self.get_change_field_with_http_info(change_locator, field, **kwargs) # noqa: E501 + return data + + def get_change_field_with_http_info(self, change_locator, field, **kwargs): # noqa: E501 + """get_change_field # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_change_field_with_http_info(change_locator, field, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str change_locator: (required) + :param str field: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['change_locator', 'field'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_change_field" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'change_locator' is set + if ('change_locator' not in params or + params['change_locator'] is None): + raise ValueError("Missing the required parameter `change_locator` when calling `get_change_field`") # noqa: E501 + # verify the required parameter 'field' is set + if ('field' not in params or + params['field'] is None): + raise ValueError("Missing the required parameter `field` when calling `get_change_field`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'change_locator' in params: + path_params['changeLocator'] = params['change_locator'] # noqa: E501 + if 'field' in params: + path_params['field'] = params['field'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/changes/{changeLocator}/{field}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_change_first_builds(self, change_locator, **kwargs): # noqa: E501 + """get_change_first_builds # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_change_first_builds(change_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str change_locator: (required) + :param str fields: + :return: Builds + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_change_first_builds_with_http_info(change_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_change_first_builds_with_http_info(change_locator, **kwargs) # noqa: E501 + return data + + def get_change_first_builds_with_http_info(self, change_locator, **kwargs): # noqa: E501 + """get_change_first_builds # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_change_first_builds_with_http_info(change_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str change_locator: (required) + :param str fields: + :return: Builds + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['change_locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_change_first_builds" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'change_locator' is set + if ('change_locator' not in params or + params['change_locator'] is None): + raise ValueError("Missing the required parameter `change_locator` when calling `get_change_first_builds`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'change_locator' in params: + path_params['changeLocator'] = params['change_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/changes/{changeLocator}/firstBuilds', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Builds', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_change_issue(self, change_locator, **kwargs): # noqa: E501 + """get_change_issue # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_change_issue(change_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str change_locator: (required) + :return: Issues + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_change_issue_with_http_info(change_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_change_issue_with_http_info(change_locator, **kwargs) # noqa: E501 + return data + + def get_change_issue_with_http_info(self, change_locator, **kwargs): # noqa: E501 + """get_change_issue # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_change_issue_with_http_info(change_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str change_locator: (required) + :return: Issues + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['change_locator'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_change_issue" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'change_locator' is set + if ('change_locator' not in params or + params['change_locator'] is None): + raise ValueError("Missing the required parameter `change_locator` when calling `get_change_issue`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'change_locator' in params: + path_params['changeLocator'] = params['change_locator'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/changes/{changeLocator}/issues', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Issues', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_change_parent_revisions(self, change_locator, **kwargs): # noqa: E501 + """get_change_parent_revisions # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_change_parent_revisions(change_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str change_locator: (required) + :return: Items + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_change_parent_revisions_with_http_info(change_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_change_parent_revisions_with_http_info(change_locator, **kwargs) # noqa: E501 + return data + + def get_change_parent_revisions_with_http_info(self, change_locator, **kwargs): # noqa: E501 + """get_change_parent_revisions # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_change_parent_revisions_with_http_info(change_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str change_locator: (required) + :return: Items + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['change_locator'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_change_parent_revisions" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'change_locator' is set + if ('change_locator' not in params or + params['change_locator'] is None): + raise ValueError("Missing the required parameter `change_locator` when calling `get_change_parent_revisions`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'change_locator' in params: + path_params['changeLocator'] = params['change_locator'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/changes/{changeLocator}/parentRevisions', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Items', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_change_vcs_root(self, change_locator, **kwargs): # noqa: E501 + """get_change_vcs_root # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_change_vcs_root(change_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str change_locator: (required) + :param str fields: + :return: VcsRootInstance + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_change_vcs_root_with_http_info(change_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_change_vcs_root_with_http_info(change_locator, **kwargs) # noqa: E501 + return data + + def get_change_vcs_root_with_http_info(self, change_locator, **kwargs): # noqa: E501 + """get_change_vcs_root # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_change_vcs_root_with_http_info(change_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str change_locator: (required) + :param str fields: + :return: VcsRootInstance + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['change_locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_change_vcs_root" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'change_locator' is set + if ('change_locator' not in params or + params['change_locator'] is None): + raise ValueError("Missing the required parameter `change_locator` when calling `get_change_vcs_root`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'change_locator' in params: + path_params['changeLocator'] = params['change_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/changes/{changeLocator}/vcsRoot', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VcsRootInstance', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_change_vcs_root_instance(self, change_locator, **kwargs): # noqa: E501 + """get_change_vcs_root_instance # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_change_vcs_root_instance(change_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str change_locator: (required) + :param str fields: + :return: VcsRootInstance + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_change_vcs_root_instance_with_http_info(change_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_change_vcs_root_instance_with_http_info(change_locator, **kwargs) # noqa: E501 + return data + + def get_change_vcs_root_instance_with_http_info(self, change_locator, **kwargs): # noqa: E501 + """get_change_vcs_root_instance # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_change_vcs_root_instance_with_http_info(change_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str change_locator: (required) + :param str fields: + :return: VcsRootInstance + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['change_locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_change_vcs_root_instance" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'change_locator' is set + if ('change_locator' not in params or + params['change_locator'] is None): + raise ValueError("Missing the required parameter `change_locator` when calling `get_change_vcs_root_instance`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'change_locator' in params: + path_params['changeLocator'] = params['change_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/changes/{changeLocator}/vcsRootInstance', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VcsRootInstance', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_parent_changes(self, change_locator, **kwargs): # noqa: E501 + """get_parent_changes # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_parent_changes(change_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str change_locator: (required) + :param str fields: + :return: Changes + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_parent_changes_with_http_info(change_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_parent_changes_with_http_info(change_locator, **kwargs) # noqa: E501 + return data + + def get_parent_changes_with_http_info(self, change_locator, **kwargs): # noqa: E501 + """get_parent_changes # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_parent_changes_with_http_info(change_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str change_locator: (required) + :param str fields: + :return: Changes + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['change_locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_parent_changes" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'change_locator' is set + if ('change_locator' not in params or + params['change_locator'] is None): + raise ValueError("Missing the required parameter `change_locator` when calling `get_parent_changes`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'change_locator' in params: + path_params['changeLocator'] = params['change_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/changes/{changeLocator}/parentChanges', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Changes', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_related_build_types(self, change_locator, **kwargs): # noqa: E501 + """get_related_build_types # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_related_build_types(change_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str change_locator: (required) + :param str fields: + :return: BuildTypes + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_related_build_types_with_http_info(change_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_related_build_types_with_http_info(change_locator, **kwargs) # noqa: E501 + return data + + def get_related_build_types_with_http_info(self, change_locator, **kwargs): # noqa: E501 + """get_related_build_types # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_related_build_types_with_http_info(change_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str change_locator: (required) + :param str fields: + :return: BuildTypes + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['change_locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_related_build_types" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'change_locator' is set + if ('change_locator' not in params or + params['change_locator'] is None): + raise ValueError("Missing the required parameter `change_locator` when calling `get_related_build_types`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'change_locator' in params: + path_params['changeLocator'] = params['change_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/changes/{changeLocator}/buildTypes', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='BuildTypes', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def serve_change(self, change_locator, **kwargs): # noqa: E501 + """serve_change # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_change(change_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str change_locator: (required) + :param str fields: + :return: Change + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.serve_change_with_http_info(change_locator, **kwargs) # noqa: E501 + else: + (data) = self.serve_change_with_http_info(change_locator, **kwargs) # noqa: E501 + return data + + def serve_change_with_http_info(self, change_locator, **kwargs): # noqa: E501 + """serve_change # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_change_with_http_info(change_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str change_locator: (required) + :param str fields: + :return: Change + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['change_locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method serve_change" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'change_locator' is set + if ('change_locator' not in params or + params['change_locator'] is None): + raise ValueError("Missing the required parameter `change_locator` when calling `serve_change`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'change_locator' in params: + path_params['changeLocator'] = params['change_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/changes/{changeLocator}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Change', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def serve_changes(self, **kwargs): # noqa: E501 + """serve_changes # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_changes(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project: + :param str build_type: + :param str build: + :param str vcs_root: + :param str since_change: + :param int start: + :param int count: + :param str locator: + :param str fields: + :return: Changes + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.serve_changes_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.serve_changes_with_http_info(**kwargs) # noqa: E501 + return data + + def serve_changes_with_http_info(self, **kwargs): # noqa: E501 + """serve_changes # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_changes_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project: + :param str build_type: + :param str build: + :param str vcs_root: + :param str since_change: + :param int start: + :param int count: + :param str locator: + :param str fields: + :return: Changes + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['project', 'build_type', 'build', 'vcs_root', 'since_change', 'start', 'count', 'locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method serve_changes" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'project' in params: + query_params.append(('project', params['project'])) # noqa: E501 + if 'build_type' in params: + query_params.append(('buildType', params['build_type'])) # noqa: E501 + if 'build' in params: + query_params.append(('build', params['build'])) # noqa: E501 + if 'vcs_root' in params: + query_params.append(('vcsRoot', params['vcs_root'])) # noqa: E501 + if 'since_change' in params: + query_params.append(('sinceChange', params['since_change'])) # noqa: E501 + if 'start' in params: + query_params.append(('start', params['start'])) # noqa: E501 + if 'count' in params: + query_params.append(('count', params['count'])) # noqa: E501 + if 'locator' in params: + query_params.append(('locator', params['locator'])) # noqa: E501 + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/changes', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Changes', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/swagger_client/api/debug_api.py b/swagger_client/api/debug_api.py new file mode 100644 index 0000000..20dd69d --- /dev/null +++ b/swagger_client/api/debug_api.py @@ -0,0 +1,1851 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from swagger_client.api_client import ApiClient + + +class DebugApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def delete_current_remember_me(self, **kwargs): # noqa: E501 + """delete_current_remember_me # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_current_remember_me(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.delete_current_remember_me_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.delete_current_remember_me_with_http_info(**kwargs) # noqa: E501 + return data + + def delete_current_remember_me_with_http_info(self, **kwargs): # noqa: E501 + """delete_current_remember_me # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_current_remember_me_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_current_remember_me" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/debug/currentRequest/rememberMe', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def empty_task(self, **kwargs): # noqa: E501 + """empty_task # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.empty_task(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str time: + :param int load: + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.empty_task_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.empty_task_with_http_info(**kwargs) # noqa: E501 + return data + + def empty_task_with_http_info(self, **kwargs): # noqa: E501 + """empty_task # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.empty_task_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str time: + :param int load: + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['time', 'load'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method empty_task" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'time' in params: + query_params.append(('time', params['time'])) # noqa: E501 + if 'load' in params: + query_params.append(('load', params['load'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/debug/emptyTask', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def execute_db_query(self, query, **kwargs): # noqa: E501 + """execute_db_query # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.execute_db_query(query, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str query: (required) + :param str field_delimiter: + :param str data_retrieve_query: + :param int count: + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.execute_db_query_with_http_info(query, **kwargs) # noqa: E501 + else: + (data) = self.execute_db_query_with_http_info(query, **kwargs) # noqa: E501 + return data + + def execute_db_query_with_http_info(self, query, **kwargs): # noqa: E501 + """execute_db_query # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.execute_db_query_with_http_info(query, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str query: (required) + :param str field_delimiter: + :param str data_retrieve_query: + :param int count: + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['query', 'field_delimiter', 'data_retrieve_query', 'count'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method execute_db_query" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'query' is set + if ('query' not in params or + params['query'] is None): + raise ValueError("Missing the required parameter `query` when calling `execute_db_query`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'query' in params: + path_params['query'] = params['query'] # noqa: E501 + + query_params = [] + if 'field_delimiter' in params: + query_params.append(('fieldDelimiter', params['field_delimiter'])) # noqa: E501 + if 'data_retrieve_query' in params: + query_params.append(('dataRetrieveQuery', params['data_retrieve_query'])) # noqa: E501 + if 'count' in params: + query_params.append(('count', params['count'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/debug/database/query/{query}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_current_session(self, **kwargs): # noqa: E501 + """get_current_session # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_current_session(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str fields: + :return: Session + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_current_session_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.get_current_session_with_http_info(**kwargs) # noqa: E501 + return data + + def get_current_session_with_http_info(self, **kwargs): # noqa: E501 + """get_current_session # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_current_session_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str fields: + :return: Session + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_current_session" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/debug/currentRequest/session', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Session', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_current_session_max_inactive_interval(self, **kwargs): # noqa: E501 + """get_current_session_max_inactive_interval # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_current_session_max_inactive_interval(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_current_session_max_inactive_interval_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.get_current_session_max_inactive_interval_with_http_info(**kwargs) # noqa: E501 + return data + + def get_current_session_max_inactive_interval_with_http_info(self, **kwargs): # noqa: E501 + """get_current_session_max_inactive_interval # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_current_session_max_inactive_interval_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_current_session_max_inactive_interval" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/debug/currentRequest/session/maxInactiveSeconds', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_current_user_permissions(self, **kwargs): # noqa: E501 + """get_current_user_permissions # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_current_user_permissions(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_current_user_permissions_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.get_current_user_permissions_with_http_info(**kwargs) # noqa: E501 + return data + + def get_current_user_permissions_with_http_info(self, **kwargs): # noqa: E501 + """get_current_user_permissions # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_current_user_permissions_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_current_user_permissions" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/debug/currentUserPermissions', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_date(self, date_locator, **kwargs): # noqa: E501 + """get_date # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_date(date_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str date_locator: (required) + :param str format: + :param str timezone: + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_date_with_http_info(date_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_date_with_http_info(date_locator, **kwargs) # noqa: E501 + return data + + def get_date_with_http_info(self, date_locator, **kwargs): # noqa: E501 + """get_date # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_date_with_http_info(date_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str date_locator: (required) + :param str format: + :param str timezone: + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['date_locator', 'format', 'timezone'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_date" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'date_locator' is set + if ('date_locator' not in params or + params['date_locator'] is None): + raise ValueError("Missing the required parameter `date_locator` when calling `get_date`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'date_locator' in params: + path_params['dateLocator'] = params['date_locator'] # noqa: E501 + + query_params = [] + if 'format' in params: + query_params.append(('format', params['format'])) # noqa: E501 + if 'timezone' in params: + query_params.append(('timezone', params['timezone'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/debug/date/{dateLocator}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_environment_variables(self, **kwargs): # noqa: E501 + """get_environment_variables # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_environment_variables(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str fields: + :return: Properties + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_environment_variables_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.get_environment_variables_with_http_info(**kwargs) # noqa: E501 + return data + + def get_environment_variables_with_http_info(self, **kwargs): # noqa: E501 + """get_environment_variables # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_environment_variables_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str fields: + :return: Properties + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_environment_variables" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/debug/jvm/environmentVariables', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Properties', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_hashed(self, method, **kwargs): # noqa: E501 + """get_hashed # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_hashed(method, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str method: (required) + :param str value: + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_hashed_with_http_info(method, **kwargs) # noqa: E501 + else: + (data) = self.get_hashed_with_http_info(method, **kwargs) # noqa: E501 + return data + + def get_hashed_with_http_info(self, method, **kwargs): # noqa: E501 + """get_hashed # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_hashed_with_http_info(method, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str method: (required) + :param str value: + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['method', 'value'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_hashed" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'method' is set + if ('method' not in params or + params['method'] is None): + raise ValueError("Missing the required parameter `method` when calling `get_hashed`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'method' in params: + path_params['method'] = params['method'] # noqa: E501 + + query_params = [] + if 'value' in params: + query_params.append(('value', params['value'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/debug/values/transform/{method}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_request_details(self, **kwargs): # noqa: E501 + """get_request_details # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_request_details(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_request_details_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.get_request_details_with_http_info(**kwargs) # noqa: E501 + return data + + def get_request_details_with_http_info(self, **kwargs): # noqa: E501 + """get_request_details # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_request_details_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_request_details" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/debug/currentRequest/details', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_scrambled(self, **kwargs): # noqa: E501 + """get_scrambled # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_scrambled(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str value: + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_scrambled_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.get_scrambled_with_http_info(**kwargs) # noqa: E501 + return data + + def get_scrambled_with_http_info(self, **kwargs): # noqa: E501 + """get_scrambled # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_scrambled_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str value: + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['value'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_scrambled" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'value' in params: + query_params.append(('value', params['value'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/debug/values/password/scrambled', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_sessions(self, **kwargs): # noqa: E501 + """get_sessions # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_sessions(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param int manager: + :param str fields: + :return: Sessions + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_sessions_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.get_sessions_with_http_info(**kwargs) # noqa: E501 + return data + + def get_sessions_with_http_info(self, **kwargs): # noqa: E501 + """get_sessions # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_sessions_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param int manager: + :param str fields: + :return: Sessions + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['manager', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_sessions" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'manager' in params: + query_params.append(('manager', params['manager'])) # noqa: E501 + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/debug/sessions', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Sessions', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_system_properties(self, **kwargs): # noqa: E501 + """get_system_properties # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_system_properties(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str fields: + :return: Properties + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_system_properties_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.get_system_properties_with_http_info(**kwargs) # noqa: E501 + return data + + def get_system_properties_with_http_info(self, **kwargs): # noqa: E501 + """get_system_properties # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_system_properties_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str fields: + :return: Properties + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_system_properties" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/debug/jvm/systemProperties', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Properties', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_thread_dump(self, **kwargs): # noqa: E501 + """get_thread_dump # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_thread_dump(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str locked_monitors: + :param str locked_synchronizers: + :param str detect_locks: + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_thread_dump_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.get_thread_dump_with_http_info(**kwargs) # noqa: E501 + return data + + def get_thread_dump_with_http_info(self, **kwargs): # noqa: E501 + """get_thread_dump # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_thread_dump_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str locked_monitors: + :param str locked_synchronizers: + :param str detect_locks: + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['locked_monitors', 'locked_synchronizers', 'detect_locks'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_thread_dump" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'locked_monitors' in params: + query_params.append(('lockedMonitors', params['locked_monitors'])) # noqa: E501 + if 'locked_synchronizers' in params: + query_params.append(('lockedSynchronizers', params['locked_synchronizers'])) # noqa: E501 + if 'detect_locks' in params: + query_params.append(('detectLocks', params['detect_locks'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/debug/threadDump', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_unscrambled(self, **kwargs): # noqa: E501 + """get_unscrambled # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_unscrambled(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str value: + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_unscrambled_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.get_unscrambled_with_http_info(**kwargs) # noqa: E501 + return data + + def get_unscrambled_with_http_info(self, **kwargs): # noqa: E501 + """get_unscrambled # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_unscrambled_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str value: + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['value'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_unscrambled" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'value' in params: + query_params.append(('value', params['value'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/debug/values/password/unscrambled', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def invalidate_current_session(self, **kwargs): # noqa: E501 + """invalidate_current_session # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.invalidate_current_session(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.invalidate_current_session_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.invalidate_current_session_with_http_info(**kwargs) # noqa: E501 + return data + + def invalidate_current_session_with_http_info(self, **kwargs): # noqa: E501 + """invalidate_current_session # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.invalidate_current_session_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method invalidate_current_session" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/debug/currentRequest/session', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_db_tables(self, **kwargs): # noqa: E501 + """list_db_tables # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_db_tables(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.list_db_tables_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.list_db_tables_with_http_info(**kwargs) # noqa: E501 + return data + + def list_db_tables_with_http_info(self, **kwargs): # noqa: E501 + """list_db_tables # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_db_tables_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_db_tables" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/debug/database/tables', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def new_remember_me(self, **kwargs): # noqa: E501 + """new_remember_me # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.new_remember_me(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.new_remember_me_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.new_remember_me_with_http_info(**kwargs) # noqa: E501 + return data + + def new_remember_me_with_http_info(self, **kwargs): # noqa: E501 + """new_remember_me # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.new_remember_me_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method new_remember_me" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/debug/currentRequest/rememberMe', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def save_memory_dump(self, **kwargs): # noqa: E501 + """save_memory_dump # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.save_memory_dump(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param bool archived: + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.save_memory_dump_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.save_memory_dump_with_http_info(**kwargs) # noqa: E501 + return data + + def save_memory_dump_with_http_info(self, **kwargs): # noqa: E501 + """save_memory_dump # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.save_memory_dump_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param bool archived: + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['archived'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method save_memory_dump" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'archived' in params: + query_params.append(('archived', params['archived'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/debug/memory/dumps', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def schedule_checking_for_changes(self, **kwargs): # noqa: E501 + """schedule_checking_for_changes # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.schedule_checking_for_changes(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str locator: + :param str requestor: + :param str fields: + :return: VcsRootInstances + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.schedule_checking_for_changes_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.schedule_checking_for_changes_with_http_info(**kwargs) # noqa: E501 + return data + + def schedule_checking_for_changes_with_http_info(self, **kwargs): # noqa: E501 + """schedule_checking_for_changes # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.schedule_checking_for_changes_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str locator: + :param str requestor: + :param str fields: + :return: VcsRootInstances + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['locator', 'requestor', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method schedule_checking_for_changes" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'locator' in params: + query_params.append(('locator', params['locator'])) # noqa: E501 + if 'requestor' in params: + query_params.append(('requestor', params['requestor'])) # noqa: E501 + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/debug/vcsCheckingForChangesQueue', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VcsRootInstances', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def set_current_session_max_inactive_interval(self, **kwargs): # noqa: E501 + """set_current_session_max_inactive_interval # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.set_current_session_max_inactive_interval(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str body: + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.set_current_session_max_inactive_interval_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.set_current_session_max_inactive_interval_with_http_info(**kwargs) # noqa: E501 + return data + + def set_current_session_max_inactive_interval_with_http_info(self, **kwargs): # noqa: E501 + """set_current_session_max_inactive_interval # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.set_current_session_max_inactive_interval_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str body: + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method set_current_session_max_inactive_interval" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/debug/currentRequest/session/maxInactiveSeconds', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/swagger_client/api/default_api.py b/swagger_client/api/default_api.py new file mode 100644 index 0000000..8cfb5a4 --- /dev/null +++ b/swagger_client/api/default_api.py @@ -0,0 +1,475 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from swagger_client.api_client import ApiClient + + +class DefaultApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def serve_api_version(self, **kwargs): # noqa: E501 + """serve_api_version # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_api_version(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.serve_api_version_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.serve_api_version_with_http_info(**kwargs) # noqa: E501 + return data + + def serve_api_version_with_http_info(self, **kwargs): # noqa: E501 + """serve_api_version # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_api_version_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method serve_api_version" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/apiVersion', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def serve_build_field_short(self, project_locator, bt_locator, build_locator, field, **kwargs): # noqa: E501 + """serve_build_field_short # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_build_field_short(project_locator, bt_locator, build_locator, field, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project_locator: (required) + :param str bt_locator: (required) + :param str build_locator: (required) + :param str field: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.serve_build_field_short_with_http_info(project_locator, bt_locator, build_locator, field, **kwargs) # noqa: E501 + else: + (data) = self.serve_build_field_short_with_http_info(project_locator, bt_locator, build_locator, field, **kwargs) # noqa: E501 + return data + + def serve_build_field_short_with_http_info(self, project_locator, bt_locator, build_locator, field, **kwargs): # noqa: E501 + """serve_build_field_short # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_build_field_short_with_http_info(project_locator, bt_locator, build_locator, field, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project_locator: (required) + :param str bt_locator: (required) + :param str build_locator: (required) + :param str field: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['project_locator', 'bt_locator', 'build_locator', 'field'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method serve_build_field_short" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'project_locator' is set + if ('project_locator' not in params or + params['project_locator'] is None): + raise ValueError("Missing the required parameter `project_locator` when calling `serve_build_field_short`") # noqa: E501 + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `serve_build_field_short`") # noqa: E501 + # verify the required parameter 'build_locator' is set + if ('build_locator' not in params or + params['build_locator'] is None): + raise ValueError("Missing the required parameter `build_locator` when calling `serve_build_field_short`") # noqa: E501 + # verify the required parameter 'field' is set + if ('field' not in params or + params['field'] is None): + raise ValueError("Missing the required parameter `field` when calling `serve_build_field_short`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'project_locator' in params: + path_params['projectLocator'] = params['project_locator'] # noqa: E501 + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + if 'build_locator' in params: + path_params['buildLocator'] = params['build_locator'] # noqa: E501 + if 'field' in params: + path_params['field'] = params['field'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/{projectLocator}/{btLocator}/{buildLocator}/{field}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def serve_plugin_info(self, **kwargs): # noqa: E501 + """serve_plugin_info # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_plugin_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str fields: + :return: Plugin + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.serve_plugin_info_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.serve_plugin_info_with_http_info(**kwargs) # noqa: E501 + return data + + def serve_plugin_info_with_http_info(self, **kwargs): # noqa: E501 + """serve_plugin_info # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_plugin_info_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str fields: + :return: Plugin + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method serve_plugin_info" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/info', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Plugin', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def serve_root(self, **kwargs): # noqa: E501 + """serve_root # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_root(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.serve_root_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.serve_root_with_http_info(**kwargs) # noqa: E501 + return data + + def serve_root_with_http_info(self, **kwargs): # noqa: E501 + """serve_root # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_root_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method serve_root" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def serve_version(self, **kwargs): # noqa: E501 + """serve_version # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_version(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.serve_version_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.serve_version_with_http_info(**kwargs) # noqa: E501 + return data + + def serve_version_with_http_info(self, **kwargs): # noqa: E501 + """serve_version # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_version_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method serve_version" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/version', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/swagger_client/api/federation_api.py b/swagger_client/api/federation_api.py new file mode 100644 index 0000000..78b9cb8 --- /dev/null +++ b/swagger_client/api/federation_api.py @@ -0,0 +1,204 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from swagger_client.api_client import ApiClient + + +class FederationApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def add_server(self, **kwargs): # noqa: E501 + """add_server # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_server(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param Servers body: + :return: Servers + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.add_server_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.add_server_with_http_info(**kwargs) # noqa: E501 + return data + + def add_server_with_http_info(self, **kwargs): # noqa: E501 + """add_server # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_server_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param Servers body: + :return: Servers + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method add_server" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/federation/servers', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Servers', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def servers(self, **kwargs): # noqa: E501 + """servers # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.servers(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str fields: + :return: Servers + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.servers_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.servers_with_http_info(**kwargs) # noqa: E501 + return data + + def servers_with_http_info(self, **kwargs): # noqa: E501 + """servers # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.servers_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str fields: + :return: Servers + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method servers" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/federation/servers', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Servers', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/swagger_client/api/group_api.py b/swagger_client/api/group_api.py new file mode 100644 index 0000000..1002080 --- /dev/null +++ b/swagger_client/api/group_api.py @@ -0,0 +1,1457 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from swagger_client.api_client import ApiClient + + +class GroupApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def add_group(self, **kwargs): # noqa: E501 + """add_group # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_group(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param Group body: + :param str fields: + :return: Group + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.add_group_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.add_group_with_http_info(**kwargs) # noqa: E501 + return data + + def add_group_with_http_info(self, **kwargs): # noqa: E501 + """add_group # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_group_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param Group body: + :param str fields: + :return: Group + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method add_group" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/userGroups', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Group', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def add_role(self, group_locator, **kwargs): # noqa: E501 + """add_role # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_role(group_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str group_locator: (required) + :param Role body: + :return: Role + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.add_role_with_http_info(group_locator, **kwargs) # noqa: E501 + else: + (data) = self.add_role_with_http_info(group_locator, **kwargs) # noqa: E501 + return data + + def add_role_with_http_info(self, group_locator, **kwargs): # noqa: E501 + """add_role # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_role_with_http_info(group_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str group_locator: (required) + :param Role body: + :return: Role + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['group_locator', 'body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method add_role" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'group_locator' is set + if ('group_locator' not in params or + params['group_locator'] is None): + raise ValueError("Missing the required parameter `group_locator` when calling `add_role`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'group_locator' in params: + path_params['groupLocator'] = params['group_locator'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/userGroups/{groupLocator}/roles', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Role', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def add_role_put(self, group_locator, **kwargs): # noqa: E501 + """add_role_put # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_role_put(group_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str group_locator: (required) + :param Roles body: + :return: Roles + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.add_role_put_with_http_info(group_locator, **kwargs) # noqa: E501 + else: + (data) = self.add_role_put_with_http_info(group_locator, **kwargs) # noqa: E501 + return data + + def add_role_put_with_http_info(self, group_locator, **kwargs): # noqa: E501 + """add_role_put # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_role_put_with_http_info(group_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str group_locator: (required) + :param Roles body: + :return: Roles + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['group_locator', 'body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method add_role_put" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'group_locator' is set + if ('group_locator' not in params or + params['group_locator'] is None): + raise ValueError("Missing the required parameter `group_locator` when calling `add_role_put`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'group_locator' in params: + path_params['groupLocator'] = params['group_locator'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/userGroups/{groupLocator}/roles', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Roles', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def add_role_simple(self, group_locator, role_id, scope, **kwargs): # noqa: E501 + """add_role_simple # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_role_simple(group_locator, role_id, scope, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str group_locator: (required) + :param str role_id: (required) + :param str scope: (required) + :return: Role + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.add_role_simple_with_http_info(group_locator, role_id, scope, **kwargs) # noqa: E501 + else: + (data) = self.add_role_simple_with_http_info(group_locator, role_id, scope, **kwargs) # noqa: E501 + return data + + def add_role_simple_with_http_info(self, group_locator, role_id, scope, **kwargs): # noqa: E501 + """add_role_simple # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_role_simple_with_http_info(group_locator, role_id, scope, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str group_locator: (required) + :param str role_id: (required) + :param str scope: (required) + :return: Role + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['group_locator', 'role_id', 'scope'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method add_role_simple" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'group_locator' is set + if ('group_locator' not in params or + params['group_locator'] is None): + raise ValueError("Missing the required parameter `group_locator` when calling `add_role_simple`") # noqa: E501 + # verify the required parameter 'role_id' is set + if ('role_id' not in params or + params['role_id'] is None): + raise ValueError("Missing the required parameter `role_id` when calling `add_role_simple`") # noqa: E501 + # verify the required parameter 'scope' is set + if ('scope' not in params or + params['scope'] is None): + raise ValueError("Missing the required parameter `scope` when calling `add_role_simple`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'group_locator' in params: + path_params['groupLocator'] = params['group_locator'] # noqa: E501 + if 'role_id' in params: + path_params['roleId'] = params['role_id'] # noqa: E501 + if 'scope' in params: + path_params['scope'] = params['scope'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/userGroups/{groupLocator}/roles/{roleId}/{scope}', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Role', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_group(self, group_locator, **kwargs): # noqa: E501 + """delete_group # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_group(group_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str group_locator: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.delete_group_with_http_info(group_locator, **kwargs) # noqa: E501 + else: + (data) = self.delete_group_with_http_info(group_locator, **kwargs) # noqa: E501 + return data + + def delete_group_with_http_info(self, group_locator, **kwargs): # noqa: E501 + """delete_group # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_group_with_http_info(group_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str group_locator: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['group_locator'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_group" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'group_locator' is set + if ('group_locator' not in params or + params['group_locator'] is None): + raise ValueError("Missing the required parameter `group_locator` when calling `delete_group`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'group_locator' in params: + path_params['groupLocator'] = params['group_locator'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/userGroups/{groupLocator}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_role(self, group_locator, role_id, scope, **kwargs): # noqa: E501 + """delete_role # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_role(group_locator, role_id, scope, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str group_locator: (required) + :param str role_id: (required) + :param str scope: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.delete_role_with_http_info(group_locator, role_id, scope, **kwargs) # noqa: E501 + else: + (data) = self.delete_role_with_http_info(group_locator, role_id, scope, **kwargs) # noqa: E501 + return data + + def delete_role_with_http_info(self, group_locator, role_id, scope, **kwargs): # noqa: E501 + """delete_role # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_role_with_http_info(group_locator, role_id, scope, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str group_locator: (required) + :param str role_id: (required) + :param str scope: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['group_locator', 'role_id', 'scope'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_role" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'group_locator' is set + if ('group_locator' not in params or + params['group_locator'] is None): + raise ValueError("Missing the required parameter `group_locator` when calling `delete_role`") # noqa: E501 + # verify the required parameter 'role_id' is set + if ('role_id' not in params or + params['role_id'] is None): + raise ValueError("Missing the required parameter `role_id` when calling `delete_role`") # noqa: E501 + # verify the required parameter 'scope' is set + if ('scope' not in params or + params['scope'] is None): + raise ValueError("Missing the required parameter `scope` when calling `delete_role`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'group_locator' in params: + path_params['groupLocator'] = params['group_locator'] # noqa: E501 + if 'role_id' in params: + path_params['roleId'] = params['role_id'] # noqa: E501 + if 'scope' in params: + path_params['scope'] = params['scope'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/userGroups/{groupLocator}/roles/{roleId}/{scope}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_permissions(self, group_locator, **kwargs): # noqa: E501 + """get_permissions # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_permissions(group_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str group_locator: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_permissions_with_http_info(group_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_permissions_with_http_info(group_locator, **kwargs) # noqa: E501 + return data + + def get_permissions_with_http_info(self, group_locator, **kwargs): # noqa: E501 + """get_permissions # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_permissions_with_http_info(group_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str group_locator: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['group_locator'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_permissions" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'group_locator' is set + if ('group_locator' not in params or + params['group_locator'] is None): + raise ValueError("Missing the required parameter `group_locator` when calling `get_permissions`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'group_locator' in params: + path_params['groupLocator'] = params['group_locator'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/userGroups/{groupLocator}/debug/permissions', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_properties(self, group_locator, **kwargs): # noqa: E501 + """get_properties # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_properties(group_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str group_locator: (required) + :param str fields: + :return: Properties + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_properties_with_http_info(group_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_properties_with_http_info(group_locator, **kwargs) # noqa: E501 + return data + + def get_properties_with_http_info(self, group_locator, **kwargs): # noqa: E501 + """get_properties # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_properties_with_http_info(group_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str group_locator: (required) + :param str fields: + :return: Properties + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['group_locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_properties" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'group_locator' is set + if ('group_locator' not in params or + params['group_locator'] is None): + raise ValueError("Missing the required parameter `group_locator` when calling `get_properties`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'group_locator' in params: + path_params['groupLocator'] = params['group_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/userGroups/{groupLocator}/properties', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Properties', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_role(self, group_locator, role_id, scope, **kwargs): # noqa: E501 + """list_role # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_role(group_locator, role_id, scope, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str group_locator: (required) + :param str role_id: (required) + :param str scope: (required) + :return: Role + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.list_role_with_http_info(group_locator, role_id, scope, **kwargs) # noqa: E501 + else: + (data) = self.list_role_with_http_info(group_locator, role_id, scope, **kwargs) # noqa: E501 + return data + + def list_role_with_http_info(self, group_locator, role_id, scope, **kwargs): # noqa: E501 + """list_role # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_role_with_http_info(group_locator, role_id, scope, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str group_locator: (required) + :param str role_id: (required) + :param str scope: (required) + :return: Role + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['group_locator', 'role_id', 'scope'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_role" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'group_locator' is set + if ('group_locator' not in params or + params['group_locator'] is None): + raise ValueError("Missing the required parameter `group_locator` when calling `list_role`") # noqa: E501 + # verify the required parameter 'role_id' is set + if ('role_id' not in params or + params['role_id'] is None): + raise ValueError("Missing the required parameter `role_id` when calling `list_role`") # noqa: E501 + # verify the required parameter 'scope' is set + if ('scope' not in params or + params['scope'] is None): + raise ValueError("Missing the required parameter `scope` when calling `list_role`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'group_locator' in params: + path_params['groupLocator'] = params['group_locator'] # noqa: E501 + if 'role_id' in params: + path_params['roleId'] = params['role_id'] # noqa: E501 + if 'scope' in params: + path_params['scope'] = params['scope'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/userGroups/{groupLocator}/roles/{roleId}/{scope}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Role', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_roles(self, group_locator, **kwargs): # noqa: E501 + """list_roles # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_roles(group_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str group_locator: (required) + :return: Roles + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.list_roles_with_http_info(group_locator, **kwargs) # noqa: E501 + else: + (data) = self.list_roles_with_http_info(group_locator, **kwargs) # noqa: E501 + return data + + def list_roles_with_http_info(self, group_locator, **kwargs): # noqa: E501 + """list_roles # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_roles_with_http_info(group_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str group_locator: (required) + :return: Roles + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['group_locator'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_roles" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'group_locator' is set + if ('group_locator' not in params or + params['group_locator'] is None): + raise ValueError("Missing the required parameter `group_locator` when calling `list_roles`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'group_locator' in params: + path_params['groupLocator'] = params['group_locator'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/userGroups/{groupLocator}/roles', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Roles', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def put_user_property(self, group_locator, name, **kwargs): # noqa: E501 + """put_user_property # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.put_user_property(group_locator, name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str group_locator: (required) + :param str name: (required) + :param str body: + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.put_user_property_with_http_info(group_locator, name, **kwargs) # noqa: E501 + else: + (data) = self.put_user_property_with_http_info(group_locator, name, **kwargs) # noqa: E501 + return data + + def put_user_property_with_http_info(self, group_locator, name, **kwargs): # noqa: E501 + """put_user_property # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.put_user_property_with_http_info(group_locator, name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str group_locator: (required) + :param str name: (required) + :param str body: + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['group_locator', 'name', 'body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method put_user_property" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'group_locator' is set + if ('group_locator' not in params or + params['group_locator'] is None): + raise ValueError("Missing the required parameter `group_locator` when calling `put_user_property`") # noqa: E501 + # verify the required parameter 'name' is set + if ('name' not in params or + params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `put_user_property`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'group_locator' in params: + path_params['groupLocator'] = params['group_locator'] # noqa: E501 + if 'name' in params: + path_params['name'] = params['name'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/userGroups/{groupLocator}/properties/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def remove_user_property(self, group_locator, name, **kwargs): # noqa: E501 + """remove_user_property # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.remove_user_property(group_locator, name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str group_locator: (required) + :param str name: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.remove_user_property_with_http_info(group_locator, name, **kwargs) # noqa: E501 + else: + (data) = self.remove_user_property_with_http_info(group_locator, name, **kwargs) # noqa: E501 + return data + + def remove_user_property_with_http_info(self, group_locator, name, **kwargs): # noqa: E501 + """remove_user_property # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.remove_user_property_with_http_info(group_locator, name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str group_locator: (required) + :param str name: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['group_locator', 'name'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method remove_user_property" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'group_locator' is set + if ('group_locator' not in params or + params['group_locator'] is None): + raise ValueError("Missing the required parameter `group_locator` when calling `remove_user_property`") # noqa: E501 + # verify the required parameter 'name' is set + if ('name' not in params or + params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `remove_user_property`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'group_locator' in params: + path_params['groupLocator'] = params['group_locator'] # noqa: E501 + if 'name' in params: + path_params['name'] = params['name'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/userGroups/{groupLocator}/properties/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def serve_group(self, group_locator, **kwargs): # noqa: E501 + """serve_group # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_group(group_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str group_locator: (required) + :param str fields: + :return: Group + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.serve_group_with_http_info(group_locator, **kwargs) # noqa: E501 + else: + (data) = self.serve_group_with_http_info(group_locator, **kwargs) # noqa: E501 + return data + + def serve_group_with_http_info(self, group_locator, **kwargs): # noqa: E501 + """serve_group # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_group_with_http_info(group_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str group_locator: (required) + :param str fields: + :return: Group + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['group_locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method serve_group" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'group_locator' is set + if ('group_locator' not in params or + params['group_locator'] is None): + raise ValueError("Missing the required parameter `group_locator` when calling `serve_group`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'group_locator' in params: + path_params['groupLocator'] = params['group_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/userGroups/{groupLocator}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Group', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def serve_groups(self, **kwargs): # noqa: E501 + """serve_groups # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_groups(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str fields: + :return: Groups + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.serve_groups_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.serve_groups_with_http_info(**kwargs) # noqa: E501 + return data + + def serve_groups_with_http_info(self, **kwargs): # noqa: E501 + """serve_groups # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_groups_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str fields: + :return: Groups + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method serve_groups" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/userGroups', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Groups', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def serve_user_properties(self, group_locator, name, **kwargs): # noqa: E501 + """serve_user_properties # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_user_properties(group_locator, name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str group_locator: (required) + :param str name: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.serve_user_properties_with_http_info(group_locator, name, **kwargs) # noqa: E501 + else: + (data) = self.serve_user_properties_with_http_info(group_locator, name, **kwargs) # noqa: E501 + return data + + def serve_user_properties_with_http_info(self, group_locator, name, **kwargs): # noqa: E501 + """serve_user_properties # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_user_properties_with_http_info(group_locator, name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str group_locator: (required) + :param str name: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['group_locator', 'name'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method serve_user_properties" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'group_locator' is set + if ('group_locator' not in params or + params['group_locator'] is None): + raise ValueError("Missing the required parameter `group_locator` when calling `serve_user_properties`") # noqa: E501 + # verify the required parameter 'name' is set + if ('name' not in params or + params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `serve_user_properties`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'group_locator' in params: + path_params['groupLocator'] = params['group_locator'] # noqa: E501 + if 'name' in params: + path_params['name'] = params['name'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/userGroups/{groupLocator}/properties/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/swagger_client/api/investigation_api.py b/swagger_client/api/investigation_api.py new file mode 100644 index 0000000..8f1f0c2 --- /dev/null +++ b/swagger_client/api/investigation_api.py @@ -0,0 +1,216 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from swagger_client.api_client import ApiClient + + +class InvestigationApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def get_investigations(self, **kwargs): # noqa: E501 + """get_investigations # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_investigations(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str locator: + :param str fields: + :return: Investigations + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_investigations_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.get_investigations_with_http_info(**kwargs) # noqa: E501 + return data + + def get_investigations_with_http_info(self, **kwargs): # noqa: E501 + """get_investigations # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_investigations_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str locator: + :param str fields: + :return: Investigations + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_investigations" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'locator' in params: + query_params.append(('locator', params['locator'])) # noqa: E501 + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/investigations', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Investigations', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def serve_instance(self, investigation_locator, **kwargs): # noqa: E501 + """serve_instance # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_instance(investigation_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str investigation_locator: (required) + :param str fields: + :return: Investigation + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.serve_instance_with_http_info(investigation_locator, **kwargs) # noqa: E501 + else: + (data) = self.serve_instance_with_http_info(investigation_locator, **kwargs) # noqa: E501 + return data + + def serve_instance_with_http_info(self, investigation_locator, **kwargs): # noqa: E501 + """serve_instance # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_instance_with_http_info(investigation_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str investigation_locator: (required) + :param str fields: + :return: Investigation + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['investigation_locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method serve_instance" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'investigation_locator' is set + if ('investigation_locator' not in params or + params['investigation_locator'] is None): + raise ValueError("Missing the required parameter `investigation_locator` when calling `serve_instance`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'investigation_locator' in params: + path_params['investigationLocator'] = params['investigation_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/investigations/{investigationLocator}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Investigation', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/swagger_client/api/problem_api.py b/swagger_client/api/problem_api.py new file mode 100644 index 0000000..3bb7b53 --- /dev/null +++ b/swagger_client/api/problem_api.py @@ -0,0 +1,216 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from swagger_client.api_client import ApiClient + + +class ProblemApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def get_problems(self, **kwargs): # noqa: E501 + """get_problems # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_problems(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str locator: + :param str fields: + :return: Problems + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_problems_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.get_problems_with_http_info(**kwargs) # noqa: E501 + return data + + def get_problems_with_http_info(self, **kwargs): # noqa: E501 + """get_problems # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_problems_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str locator: + :param str fields: + :return: Problems + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_problems" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'locator' in params: + query_params.append(('locator', params['locator'])) # noqa: E501 + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/problems', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Problems', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def serve_instance(self, problem_locator, **kwargs): # noqa: E501 + """serve_instance # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_instance(problem_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str problem_locator: (required) + :param str fields: + :return: Problem + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.serve_instance_with_http_info(problem_locator, **kwargs) # noqa: E501 + else: + (data) = self.serve_instance_with_http_info(problem_locator, **kwargs) # noqa: E501 + return data + + def serve_instance_with_http_info(self, problem_locator, **kwargs): # noqa: E501 + """serve_instance # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_instance_with_http_info(problem_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str problem_locator: (required) + :param str fields: + :return: Problem + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['problem_locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method serve_instance" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'problem_locator' is set + if ('problem_locator' not in params or + params['problem_locator'] is None): + raise ValueError("Missing the required parameter `problem_locator` when calling `serve_instance`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'problem_locator' in params: + path_params['problemLocator'] = params['problem_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/problems/{problemLocator}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Problem', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/swagger_client/api/problem_occurrence_api.py b/swagger_client/api/problem_occurrence_api.py new file mode 100644 index 0000000..619432e --- /dev/null +++ b/swagger_client/api/problem_occurrence_api.py @@ -0,0 +1,216 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from swagger_client.api_client import ApiClient + + +class ProblemOccurrenceApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def get_problems(self, **kwargs): # noqa: E501 + """get_problems # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_problems(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str locator: + :param str fields: + :return: ProblemOccurrences + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_problems_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.get_problems_with_http_info(**kwargs) # noqa: E501 + return data + + def get_problems_with_http_info(self, **kwargs): # noqa: E501 + """get_problems # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_problems_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str locator: + :param str fields: + :return: ProblemOccurrences + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_problems" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'locator' in params: + query_params.append(('locator', params['locator'])) # noqa: E501 + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/problemOccurrences', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ProblemOccurrences', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def serve_instance(self, problem_locator, **kwargs): # noqa: E501 + """serve_instance # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_instance(problem_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str problem_locator: (required) + :param str fields: + :return: ProblemOccurrence + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.serve_instance_with_http_info(problem_locator, **kwargs) # noqa: E501 + else: + (data) = self.serve_instance_with_http_info(problem_locator, **kwargs) # noqa: E501 + return data + + def serve_instance_with_http_info(self, problem_locator, **kwargs): # noqa: E501 + """serve_instance # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_instance_with_http_info(problem_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str problem_locator: (required) + :param str fields: + :return: ProblemOccurrence + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['problem_locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method serve_instance" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'problem_locator' is set + if ('problem_locator' not in params or + params['problem_locator'] is None): + raise ValueError("Missing the required parameter `problem_locator` when calling `serve_instance`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'problem_locator' in params: + path_params['problemLocator'] = params['problem_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/problemOccurrences/{problemLocator}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ProblemOccurrence', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/swagger_client/api/project_api.py b/swagger_client/api/project_api.py new file mode 100644 index 0000000..b22fb2b --- /dev/null +++ b/swagger_client/api/project_api.py @@ -0,0 +1,5837 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from swagger_client.api_client import ApiClient + + +class ProjectApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def add(self, project_locator, **kwargs): # noqa: E501 + """add # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add(project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project_locator: (required) + :param ProjectFeature body: + :param str fields: + :return: object + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.add_with_http_info(project_locator, **kwargs) # noqa: E501 + else: + (data) = self.add_with_http_info(project_locator, **kwargs) # noqa: E501 + return data + + def add_with_http_info(self, project_locator, **kwargs): # noqa: E501 + """add # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_with_http_info(project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project_locator: (required) + :param ProjectFeature body: + :param str fields: + :return: object + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['project_locator', 'body', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method add" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'project_locator' is set + if ('project_locator' not in params or + params['project_locator'] is None): + raise ValueError("Missing the required parameter `project_locator` when calling `add`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'project_locator' in params: + path_params['projectLocator'] = params['project_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/projects/{projectLocator}/projectFeatures', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='object', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_build_type(self, project_locator, **kwargs): # noqa: E501 + """create_build_type # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_build_type(project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project_locator: (required) + :param NewBuildTypeDescription body: + :param str fields: + :return: BuildType + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.create_build_type_with_http_info(project_locator, **kwargs) # noqa: E501 + else: + (data) = self.create_build_type_with_http_info(project_locator, **kwargs) # noqa: E501 + return data + + def create_build_type_with_http_info(self, project_locator, **kwargs): # noqa: E501 + """create_build_type # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_build_type_with_http_info(project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project_locator: (required) + :param NewBuildTypeDescription body: + :param str fields: + :return: BuildType + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['project_locator', 'body', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_build_type" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'project_locator' is set + if ('project_locator' not in params or + params['project_locator'] is None): + raise ValueError("Missing the required parameter `project_locator` when calling `create_build_type`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'project_locator' in params: + path_params['projectLocator'] = params['project_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/projects/{projectLocator}/buildTypes', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='BuildType', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_build_type_template(self, project_locator, **kwargs): # noqa: E501 + """create_build_type_template # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_build_type_template(project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project_locator: (required) + :param NewBuildTypeDescription body: + :param str fields: + :return: BuildType + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.create_build_type_template_with_http_info(project_locator, **kwargs) # noqa: E501 + else: + (data) = self.create_build_type_template_with_http_info(project_locator, **kwargs) # noqa: E501 + return data + + def create_build_type_template_with_http_info(self, project_locator, **kwargs): # noqa: E501 + """create_build_type_template # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_build_type_template_with_http_info(project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project_locator: (required) + :param NewBuildTypeDescription body: + :param str fields: + :return: BuildType + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['project_locator', 'body', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_build_type_template" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'project_locator' is set + if ('project_locator' not in params or + params['project_locator'] is None): + raise ValueError("Missing the required parameter `project_locator` when calling `create_build_type_template`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'project_locator' in params: + path_params['projectLocator'] = params['project_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/projects/{projectLocator}/templates', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='BuildType', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_project(self, **kwargs): # noqa: E501 + """create_project # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_project(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param NewProjectDescription body: + :return: Project + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.create_project_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.create_project_with_http_info(**kwargs) # noqa: E501 + return data + + def create_project_with_http_info(self, **kwargs): # noqa: E501 + """create_project # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_project_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param NewProjectDescription body: + :return: Project + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_project" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/projects', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Project', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete(self, feature_locator, project_locator, **kwargs): # noqa: E501 + """delete # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete(feature_locator, project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str feature_locator: (required) + :param str project_locator: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.delete_with_http_info(feature_locator, project_locator, **kwargs) # noqa: E501 + else: + (data) = self.delete_with_http_info(feature_locator, project_locator, **kwargs) # noqa: E501 + return data + + def delete_with_http_info(self, feature_locator, project_locator, **kwargs): # noqa: E501 + """delete # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_with_http_info(feature_locator, project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str feature_locator: (required) + :param str project_locator: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['feature_locator', 'project_locator'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'feature_locator' is set + if ('feature_locator' not in params or + params['feature_locator'] is None): + raise ValueError("Missing the required parameter `feature_locator` when calling `delete`") # noqa: E501 + # verify the required parameter 'project_locator' is set + if ('project_locator' not in params or + params['project_locator'] is None): + raise ValueError("Missing the required parameter `project_locator` when calling `delete`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'feature_locator' in params: + path_params['featureLocator'] = params['feature_locator'] # noqa: E501 + if 'project_locator' in params: + path_params['projectLocator'] = params['project_locator'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/projects/{projectLocator}/projectFeatures/{featureLocator}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_all_parameters(self, project_locator, **kwargs): # noqa: E501 + """delete_all_parameters # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_all_parameters(project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project_locator: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.delete_all_parameters_with_http_info(project_locator, **kwargs) # noqa: E501 + else: + (data) = self.delete_all_parameters_with_http_info(project_locator, **kwargs) # noqa: E501 + return data + + def delete_all_parameters_with_http_info(self, project_locator, **kwargs): # noqa: E501 + """delete_all_parameters # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_all_parameters_with_http_info(project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project_locator: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['project_locator'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_all_parameters" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'project_locator' is set + if ('project_locator' not in params or + params['project_locator'] is None): + raise ValueError("Missing the required parameter `project_locator` when calling `delete_all_parameters`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'project_locator' in params: + path_params['projectLocator'] = params['project_locator'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/projects/{projectLocator}/parameters', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_all_parameters_0(self, feature_locator, project_locator, **kwargs): # noqa: E501 + """delete_all_parameters_0 # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_all_parameters_0(feature_locator, project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str feature_locator: (required) + :param str project_locator: (required) + :param str fields: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.delete_all_parameters_0_with_http_info(feature_locator, project_locator, **kwargs) # noqa: E501 + else: + (data) = self.delete_all_parameters_0_with_http_info(feature_locator, project_locator, **kwargs) # noqa: E501 + return data + + def delete_all_parameters_0_with_http_info(self, feature_locator, project_locator, **kwargs): # noqa: E501 + """delete_all_parameters_0 # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_all_parameters_0_with_http_info(feature_locator, project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str feature_locator: (required) + :param str project_locator: (required) + :param str fields: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['feature_locator', 'project_locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_all_parameters_0" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'feature_locator' is set + if ('feature_locator' not in params or + params['feature_locator'] is None): + raise ValueError("Missing the required parameter `feature_locator` when calling `delete_all_parameters_0`") # noqa: E501 + # verify the required parameter 'project_locator' is set + if ('project_locator' not in params or + params['project_locator'] is None): + raise ValueError("Missing the required parameter `project_locator` when calling `delete_all_parameters_0`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'feature_locator' in params: + path_params['featureLocator'] = params['feature_locator'] # noqa: E501 + if 'project_locator' in params: + path_params['projectLocator'] = params['project_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/projects/{projectLocator}/projectFeatures/{featureLocator}/properties', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_parameter(self, name, project_locator, **kwargs): # noqa: E501 + """delete_parameter # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_parameter(name, project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str name: (required) + :param str project_locator: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.delete_parameter_with_http_info(name, project_locator, **kwargs) # noqa: E501 + else: + (data) = self.delete_parameter_with_http_info(name, project_locator, **kwargs) # noqa: E501 + return data + + def delete_parameter_with_http_info(self, name, project_locator, **kwargs): # noqa: E501 + """delete_parameter # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_parameter_with_http_info(name, project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str name: (required) + :param str project_locator: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'project_locator'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_parameter" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params or + params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_parameter`") # noqa: E501 + # verify the required parameter 'project_locator' is set + if ('project_locator' not in params or + params['project_locator'] is None): + raise ValueError("Missing the required parameter `project_locator` when calling `delete_parameter`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] # noqa: E501 + if 'project_locator' in params: + path_params['projectLocator'] = params['project_locator'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/projects/{projectLocator}/parameters/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_parameter_0(self, name, feature_locator, project_locator, **kwargs): # noqa: E501 + """delete_parameter_0 # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_parameter_0(name, feature_locator, project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str name: (required) + :param str feature_locator: (required) + :param str project_locator: (required) + :param str fields: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.delete_parameter_0_with_http_info(name, feature_locator, project_locator, **kwargs) # noqa: E501 + else: + (data) = self.delete_parameter_0_with_http_info(name, feature_locator, project_locator, **kwargs) # noqa: E501 + return data + + def delete_parameter_0_with_http_info(self, name, feature_locator, project_locator, **kwargs): # noqa: E501 + """delete_parameter_0 # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_parameter_0_with_http_info(name, feature_locator, project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str name: (required) + :param str feature_locator: (required) + :param str project_locator: (required) + :param str fields: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'feature_locator', 'project_locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_parameter_0" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params or + params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_parameter_0`") # noqa: E501 + # verify the required parameter 'feature_locator' is set + if ('feature_locator' not in params or + params['feature_locator'] is None): + raise ValueError("Missing the required parameter `feature_locator` when calling `delete_parameter_0`") # noqa: E501 + # verify the required parameter 'project_locator' is set + if ('project_locator' not in params or + params['project_locator'] is None): + raise ValueError("Missing the required parameter `project_locator` when calling `delete_parameter_0`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] # noqa: E501 + if 'feature_locator' in params: + path_params['featureLocator'] = params['feature_locator'] # noqa: E501 + if 'project_locator' in params: + path_params['projectLocator'] = params['project_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/projects/{projectLocator}/projectFeatures/{featureLocator}/properties/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_project(self, project_locator, **kwargs): # noqa: E501 + """delete_project # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_project(project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project_locator: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.delete_project_with_http_info(project_locator, **kwargs) # noqa: E501 + else: + (data) = self.delete_project_with_http_info(project_locator, **kwargs) # noqa: E501 + return data + + def delete_project_with_http_info(self, project_locator, **kwargs): # noqa: E501 + """delete_project # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_project_with_http_info(project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project_locator: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['project_locator'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_project" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'project_locator' is set + if ('project_locator' not in params or + params['project_locator'] is None): + raise ValueError("Missing the required parameter `project_locator` when calling `delete_project`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'project_locator' in params: + path_params['projectLocator'] = params['project_locator'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/projects/{projectLocator}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_project_agent_pools(self, project_locator, agent_pool_locator, **kwargs): # noqa: E501 + """delete_project_agent_pools # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_project_agent_pools(project_locator, agent_pool_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project_locator: (required) + :param str agent_pool_locator: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.delete_project_agent_pools_with_http_info(project_locator, agent_pool_locator, **kwargs) # noqa: E501 + else: + (data) = self.delete_project_agent_pools_with_http_info(project_locator, agent_pool_locator, **kwargs) # noqa: E501 + return data + + def delete_project_agent_pools_with_http_info(self, project_locator, agent_pool_locator, **kwargs): # noqa: E501 + """delete_project_agent_pools # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_project_agent_pools_with_http_info(project_locator, agent_pool_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project_locator: (required) + :param str agent_pool_locator: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['project_locator', 'agent_pool_locator'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_project_agent_pools" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'project_locator' is set + if ('project_locator' not in params or + params['project_locator'] is None): + raise ValueError("Missing the required parameter `project_locator` when calling `delete_project_agent_pools`") # noqa: E501 + # verify the required parameter 'agent_pool_locator' is set + if ('agent_pool_locator' not in params or + params['agent_pool_locator'] is None): + raise ValueError("Missing the required parameter `agent_pool_locator` when calling `delete_project_agent_pools`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'project_locator' in params: + path_params['projectLocator'] = params['project_locator'] # noqa: E501 + if 'agent_pool_locator' in params: + path_params['agentPoolLocator'] = params['agent_pool_locator'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/projects/{projectLocator}/agentPools/{agentPoolLocator}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get(self, project_locator, **kwargs): # noqa: E501 + """get # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get(project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project_locator: (required) + :param str locator: + :param str fields: + :return: object + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_with_http_info(project_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_with_http_info(project_locator, **kwargs) # noqa: E501 + return data + + def get_with_http_info(self, project_locator, **kwargs): # noqa: E501 + """get # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_with_http_info(project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project_locator: (required) + :param str locator: + :param str fields: + :return: object + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['project_locator', 'locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'project_locator' is set + if ('project_locator' not in params or + params['project_locator'] is None): + raise ValueError("Missing the required parameter `project_locator` when calling `get`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'project_locator' in params: + path_params['projectLocator'] = params['project_locator'] # noqa: E501 + + query_params = [] + if 'locator' in params: + query_params.append(('locator', params['locator'])) # noqa: E501 + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/projects/{projectLocator}/projectFeatures', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='object', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_build_types_order(self, project_locator, field, **kwargs): # noqa: E501 + """get_build_types_order # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_build_types_order(project_locator, field, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project_locator: (required) + :param str field: (required) + :return: BuildTypes + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_build_types_order_with_http_info(project_locator, field, **kwargs) # noqa: E501 + else: + (data) = self.get_build_types_order_with_http_info(project_locator, field, **kwargs) # noqa: E501 + return data + + def get_build_types_order_with_http_info(self, project_locator, field, **kwargs): # noqa: E501 + """get_build_types_order # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_build_types_order_with_http_info(project_locator, field, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project_locator: (required) + :param str field: (required) + :return: BuildTypes + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['project_locator', 'field'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_build_types_order" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'project_locator' is set + if ('project_locator' not in params or + params['project_locator'] is None): + raise ValueError("Missing the required parameter `project_locator` when calling `get_build_types_order`") # noqa: E501 + # verify the required parameter 'field' is set + if ('field' not in params or + params['field'] is None): + raise ValueError("Missing the required parameter `field` when calling `get_build_types_order`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'project_locator' in params: + path_params['projectLocator'] = params['project_locator'] # noqa: E501 + if 'field' in params: + path_params['field'] = params['field'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/projects/{projectLocator}/order/buildTypes', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='BuildTypes', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_example_new_project_description(self, project_locator, **kwargs): # noqa: E501 + """get_example_new_project_description # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_example_new_project_description(project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project_locator: (required) + :param str id: + :return: NewProjectDescription + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_example_new_project_description_with_http_info(project_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_example_new_project_description_with_http_info(project_locator, **kwargs) # noqa: E501 + return data + + def get_example_new_project_description_with_http_info(self, project_locator, **kwargs): # noqa: E501 + """get_example_new_project_description # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_example_new_project_description_with_http_info(project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project_locator: (required) + :param str id: + :return: NewProjectDescription + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['project_locator', 'id'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_example_new_project_description" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'project_locator' is set + if ('project_locator' not in params or + params['project_locator'] is None): + raise ValueError("Missing the required parameter `project_locator` when calling `get_example_new_project_description`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'project_locator' in params: + path_params['projectLocator'] = params['project_locator'] # noqa: E501 + + query_params = [] + if 'id' in params: + query_params.append(('id', params['id'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/projects/{projectLocator}/example/newProjectDescription', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='NewProjectDescription', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_example_new_project_description_compatibility_version1(self, project_locator, **kwargs): # noqa: E501 + """get_example_new_project_description_compatibility_version1 # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_example_new_project_description_compatibility_version1(project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project_locator: (required) + :param str id: + :return: NewProjectDescription + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_example_new_project_description_compatibility_version1_with_http_info(project_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_example_new_project_description_compatibility_version1_with_http_info(project_locator, **kwargs) # noqa: E501 + return data + + def get_example_new_project_description_compatibility_version1_with_http_info(self, project_locator, **kwargs): # noqa: E501 + """get_example_new_project_description_compatibility_version1 # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_example_new_project_description_compatibility_version1_with_http_info(project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project_locator: (required) + :param str id: + :return: NewProjectDescription + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['project_locator', 'id'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_example_new_project_description_compatibility_version1" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'project_locator' is set + if ('project_locator' not in params or + params['project_locator'] is None): + raise ValueError("Missing the required parameter `project_locator` when calling `get_example_new_project_description_compatibility_version1`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'project_locator' in params: + path_params['projectLocator'] = params['project_locator'] # noqa: E501 + + query_params = [] + if 'id' in params: + query_params.append(('id', params['id'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/projects/{projectLocator}/newProjectDescription', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='NewProjectDescription', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_parameter(self, name, project_locator, **kwargs): # noqa: E501 + """get_parameter # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_parameter(name, project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str name: (required) + :param str project_locator: (required) + :param str fields: + :return: ModelProperty + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_parameter_with_http_info(name, project_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_parameter_with_http_info(name, project_locator, **kwargs) # noqa: E501 + return data + + def get_parameter_with_http_info(self, name, project_locator, **kwargs): # noqa: E501 + """get_parameter # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_parameter_with_http_info(name, project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str name: (required) + :param str project_locator: (required) + :param str fields: + :return: ModelProperty + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'project_locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_parameter" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params or + params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `get_parameter`") # noqa: E501 + # verify the required parameter 'project_locator' is set + if ('project_locator' not in params or + params['project_locator'] is None): + raise ValueError("Missing the required parameter `project_locator` when calling `get_parameter`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] # noqa: E501 + if 'project_locator' in params: + path_params['projectLocator'] = params['project_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/projects/{projectLocator}/parameters/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ModelProperty', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_parameter_0(self, name, feature_locator, project_locator, **kwargs): # noqa: E501 + """get_parameter_0 # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_parameter_0(name, feature_locator, project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str name: (required) + :param str feature_locator: (required) + :param str project_locator: (required) + :param str fields: + :param str fields2: + :return: ModelProperty + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_parameter_0_with_http_info(name, feature_locator, project_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_parameter_0_with_http_info(name, feature_locator, project_locator, **kwargs) # noqa: E501 + return data + + def get_parameter_0_with_http_info(self, name, feature_locator, project_locator, **kwargs): # noqa: E501 + """get_parameter_0 # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_parameter_0_with_http_info(name, feature_locator, project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str name: (required) + :param str feature_locator: (required) + :param str project_locator: (required) + :param str fields: + :param str fields2: + :return: ModelProperty + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'feature_locator', 'project_locator', 'fields', 'fields2'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_parameter_0" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params or + params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `get_parameter_0`") # noqa: E501 + # verify the required parameter 'feature_locator' is set + if ('feature_locator' not in params or + params['feature_locator'] is None): + raise ValueError("Missing the required parameter `feature_locator` when calling `get_parameter_0`") # noqa: E501 + # verify the required parameter 'project_locator' is set + if ('project_locator' not in params or + params['project_locator'] is None): + raise ValueError("Missing the required parameter `project_locator` when calling `get_parameter_0`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] # noqa: E501 + if 'feature_locator' in params: + path_params['featureLocator'] = params['feature_locator'] # noqa: E501 + if 'project_locator' in params: + path_params['projectLocator'] = params['project_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + if 'fields2' in params: + query_params.append(('fields', params['fields2'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/projects/{projectLocator}/projectFeatures/{featureLocator}/properties/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ModelProperty', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_parameter_type(self, name, project_locator, **kwargs): # noqa: E501 + """get_parameter_type # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_parameter_type(name, project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str name: (required) + :param str project_locator: (required) + :return: Type + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_parameter_type_with_http_info(name, project_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_parameter_type_with_http_info(name, project_locator, **kwargs) # noqa: E501 + return data + + def get_parameter_type_with_http_info(self, name, project_locator, **kwargs): # noqa: E501 + """get_parameter_type # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_parameter_type_with_http_info(name, project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str name: (required) + :param str project_locator: (required) + :return: Type + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'project_locator'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_parameter_type" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params or + params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `get_parameter_type`") # noqa: E501 + # verify the required parameter 'project_locator' is set + if ('project_locator' not in params or + params['project_locator'] is None): + raise ValueError("Missing the required parameter `project_locator` when calling `get_parameter_type`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] # noqa: E501 + if 'project_locator' in params: + path_params['projectLocator'] = params['project_locator'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/projects/{projectLocator}/parameters/{name}/type', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Type', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_parameter_type_raw_value(self, name, project_locator, **kwargs): # noqa: E501 + """get_parameter_type_raw_value # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_parameter_type_raw_value(name, project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str name: (required) + :param str project_locator: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_parameter_type_raw_value_with_http_info(name, project_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_parameter_type_raw_value_with_http_info(name, project_locator, **kwargs) # noqa: E501 + return data + + def get_parameter_type_raw_value_with_http_info(self, name, project_locator, **kwargs): # noqa: E501 + """get_parameter_type_raw_value # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_parameter_type_raw_value_with_http_info(name, project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str name: (required) + :param str project_locator: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'project_locator'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_parameter_type_raw_value" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params or + params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `get_parameter_type_raw_value`") # noqa: E501 + # verify the required parameter 'project_locator' is set + if ('project_locator' not in params or + params['project_locator'] is None): + raise ValueError("Missing the required parameter `project_locator` when calling `get_parameter_type_raw_value`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] # noqa: E501 + if 'project_locator' in params: + path_params['projectLocator'] = params['project_locator'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/projects/{projectLocator}/parameters/{name}/type/rawValue', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_parameter_value_long(self, name, project_locator, **kwargs): # noqa: E501 + """get_parameter_value_long # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_parameter_value_long(name, project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str name: (required) + :param str project_locator: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_parameter_value_long_with_http_info(name, project_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_parameter_value_long_with_http_info(name, project_locator, **kwargs) # noqa: E501 + return data + + def get_parameter_value_long_with_http_info(self, name, project_locator, **kwargs): # noqa: E501 + """get_parameter_value_long # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_parameter_value_long_with_http_info(name, project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str name: (required) + :param str project_locator: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'project_locator'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_parameter_value_long" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params or + params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `get_parameter_value_long`") # noqa: E501 + # verify the required parameter 'project_locator' is set + if ('project_locator' not in params or + params['project_locator'] is None): + raise ValueError("Missing the required parameter `project_locator` when calling `get_parameter_value_long`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] # noqa: E501 + if 'project_locator' in params: + path_params['projectLocator'] = params['project_locator'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/projects/{projectLocator}/parameters/{name}/value', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_parameter_value_long_0(self, name, feature_locator, project_locator, **kwargs): # noqa: E501 + """get_parameter_value_long_0 # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_parameter_value_long_0(name, feature_locator, project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str name: (required) + :param str feature_locator: (required) + :param str project_locator: (required) + :param str fields: + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_parameter_value_long_0_with_http_info(name, feature_locator, project_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_parameter_value_long_0_with_http_info(name, feature_locator, project_locator, **kwargs) # noqa: E501 + return data + + def get_parameter_value_long_0_with_http_info(self, name, feature_locator, project_locator, **kwargs): # noqa: E501 + """get_parameter_value_long_0 # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_parameter_value_long_0_with_http_info(name, feature_locator, project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str name: (required) + :param str feature_locator: (required) + :param str project_locator: (required) + :param str fields: + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'feature_locator', 'project_locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_parameter_value_long_0" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params or + params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `get_parameter_value_long_0`") # noqa: E501 + # verify the required parameter 'feature_locator' is set + if ('feature_locator' not in params or + params['feature_locator'] is None): + raise ValueError("Missing the required parameter `feature_locator` when calling `get_parameter_value_long_0`") # noqa: E501 + # verify the required parameter 'project_locator' is set + if ('project_locator' not in params or + params['project_locator'] is None): + raise ValueError("Missing the required parameter `project_locator` when calling `get_parameter_value_long_0`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] # noqa: E501 + if 'feature_locator' in params: + path_params['featureLocator'] = params['feature_locator'] # noqa: E501 + if 'project_locator' in params: + path_params['projectLocator'] = params['project_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/projects/{projectLocator}/projectFeatures/{featureLocator}/properties/{name}/value', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_parameters(self, project_locator, **kwargs): # noqa: E501 + """get_parameters # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_parameters(project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project_locator: (required) + :param str locator: + :param str fields: + :return: Properties + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_parameters_with_http_info(project_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_parameters_with_http_info(project_locator, **kwargs) # noqa: E501 + return data + + def get_parameters_with_http_info(self, project_locator, **kwargs): # noqa: E501 + """get_parameters # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_parameters_with_http_info(project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project_locator: (required) + :param str locator: + :param str fields: + :return: Properties + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['project_locator', 'locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_parameters" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'project_locator' is set + if ('project_locator' not in params or + params['project_locator'] is None): + raise ValueError("Missing the required parameter `project_locator` when calling `get_parameters`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'project_locator' in params: + path_params['projectLocator'] = params['project_locator'] # noqa: E501 + + query_params = [] + if 'locator' in params: + query_params.append(('locator', params['locator'])) # noqa: E501 + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/projects/{projectLocator}/parameters', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Properties', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_parameters_0(self, feature_locator, project_locator, **kwargs): # noqa: E501 + """get_parameters_0 # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_parameters_0(feature_locator, project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str feature_locator: (required) + :param str project_locator: (required) + :param str locator: + :param str fields: + :param str fields2: + :return: Properties + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_parameters_0_with_http_info(feature_locator, project_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_parameters_0_with_http_info(feature_locator, project_locator, **kwargs) # noqa: E501 + return data + + def get_parameters_0_with_http_info(self, feature_locator, project_locator, **kwargs): # noqa: E501 + """get_parameters_0 # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_parameters_0_with_http_info(feature_locator, project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str feature_locator: (required) + :param str project_locator: (required) + :param str locator: + :param str fields: + :param str fields2: + :return: Properties + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['feature_locator', 'project_locator', 'locator', 'fields', 'fields2'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_parameters_0" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'feature_locator' is set + if ('feature_locator' not in params or + params['feature_locator'] is None): + raise ValueError("Missing the required parameter `feature_locator` when calling `get_parameters_0`") # noqa: E501 + # verify the required parameter 'project_locator' is set + if ('project_locator' not in params or + params['project_locator'] is None): + raise ValueError("Missing the required parameter `project_locator` when calling `get_parameters_0`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'feature_locator' in params: + path_params['featureLocator'] = params['feature_locator'] # noqa: E501 + if 'project_locator' in params: + path_params['projectLocator'] = params['project_locator'] # noqa: E501 + + query_params = [] + if 'locator' in params: + query_params.append(('locator', params['locator'])) # noqa: E501 + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + if 'fields2' in params: + query_params.append(('fields', params['fields2'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/projects/{projectLocator}/projectFeatures/{featureLocator}/properties', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Properties', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_parent_project(self, project_locator, **kwargs): # noqa: E501 + """get_parent_project # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_parent_project(project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project_locator: (required) + :param str fields: + :return: Project + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_parent_project_with_http_info(project_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_parent_project_with_http_info(project_locator, **kwargs) # noqa: E501 + return data + + def get_parent_project_with_http_info(self, project_locator, **kwargs): # noqa: E501 + """get_parent_project # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_parent_project_with_http_info(project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project_locator: (required) + :param str fields: + :return: Project + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['project_locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_parent_project" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'project_locator' is set + if ('project_locator' not in params or + params['project_locator'] is None): + raise ValueError("Missing the required parameter `project_locator` when calling `get_parent_project`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'project_locator' in params: + path_params['projectLocator'] = params['project_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/projects/{projectLocator}/parentProject', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Project', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_project_agent_pools(self, project_locator, **kwargs): # noqa: E501 + """get_project_agent_pools # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_project_agent_pools(project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project_locator: (required) + :param str fields: + :return: AgentPools + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_project_agent_pools_with_http_info(project_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_project_agent_pools_with_http_info(project_locator, **kwargs) # noqa: E501 + return data + + def get_project_agent_pools_with_http_info(self, project_locator, **kwargs): # noqa: E501 + """get_project_agent_pools # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_project_agent_pools_with_http_info(project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project_locator: (required) + :param str fields: + :return: AgentPools + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['project_locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_project_agent_pools" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'project_locator' is set + if ('project_locator' not in params or + params['project_locator'] is None): + raise ValueError("Missing the required parameter `project_locator` when calling `get_project_agent_pools`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'project_locator' in params: + path_params['projectLocator'] = params['project_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/projects/{projectLocator}/agentPools', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AgentPools', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_projects_order(self, project_locator, field, **kwargs): # noqa: E501 + """get_projects_order # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_projects_order(project_locator, field, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project_locator: (required) + :param str field: (required) + :return: Projects + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_projects_order_with_http_info(project_locator, field, **kwargs) # noqa: E501 + else: + (data) = self.get_projects_order_with_http_info(project_locator, field, **kwargs) # noqa: E501 + return data + + def get_projects_order_with_http_info(self, project_locator, field, **kwargs): # noqa: E501 + """get_projects_order # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_projects_order_with_http_info(project_locator, field, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project_locator: (required) + :param str field: (required) + :return: Projects + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['project_locator', 'field'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_projects_order" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'project_locator' is set + if ('project_locator' not in params or + params['project_locator'] is None): + raise ValueError("Missing the required parameter `project_locator` when calling `get_projects_order`") # noqa: E501 + # verify the required parameter 'field' is set + if ('field' not in params or + params['field'] is None): + raise ValueError("Missing the required parameter `field` when calling `get_projects_order`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'project_locator' in params: + path_params['projectLocator'] = params['project_locator'] # noqa: E501 + if 'field' in params: + path_params['field'] = params['field'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/projects/{projectLocator}/order/projects', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Projects', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_settings_file(self, project_locator, **kwargs): # noqa: E501 + """get_settings_file # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_settings_file(project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project_locator: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_settings_file_with_http_info(project_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_settings_file_with_http_info(project_locator, **kwargs) # noqa: E501 + return data + + def get_settings_file_with_http_info(self, project_locator, **kwargs): # noqa: E501 + """get_settings_file # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_settings_file_with_http_info(project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project_locator: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['project_locator'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_settings_file" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'project_locator' is set + if ('project_locator' not in params or + params['project_locator'] is None): + raise ValueError("Missing the required parameter `project_locator` when calling `get_settings_file`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'project_locator' in params: + path_params['projectLocator'] = params['project_locator'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/projects/{projectLocator}/settingsFile', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_single(self, feature_locator, project_locator, **kwargs): # noqa: E501 + """get_single # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_single(feature_locator, project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str feature_locator: (required) + :param str project_locator: (required) + :param str fields: + :return: object + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_single_with_http_info(feature_locator, project_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_single_with_http_info(feature_locator, project_locator, **kwargs) # noqa: E501 + return data + + def get_single_with_http_info(self, feature_locator, project_locator, **kwargs): # noqa: E501 + """get_single # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_single_with_http_info(feature_locator, project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str feature_locator: (required) + :param str project_locator: (required) + :param str fields: + :return: object + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['feature_locator', 'project_locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_single" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'feature_locator' is set + if ('feature_locator' not in params or + params['feature_locator'] is None): + raise ValueError("Missing the required parameter `feature_locator` when calling `get_single`") # noqa: E501 + # verify the required parameter 'project_locator' is set + if ('project_locator' not in params or + params['project_locator'] is None): + raise ValueError("Missing the required parameter `project_locator` when calling `get_single`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'feature_locator' in params: + path_params['featureLocator'] = params['feature_locator'] # noqa: E501 + if 'project_locator' in params: + path_params['projectLocator'] = params['project_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/projects/{projectLocator}/projectFeatures/{featureLocator}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='object', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def reload_settings_file(self, project_locator, **kwargs): # noqa: E501 + """reload_settings_file # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.reload_settings_file(project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project_locator: (required) + :param str fields: + :return: Project + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.reload_settings_file_with_http_info(project_locator, **kwargs) # noqa: E501 + else: + (data) = self.reload_settings_file_with_http_info(project_locator, **kwargs) # noqa: E501 + return data + + def reload_settings_file_with_http_info(self, project_locator, **kwargs): # noqa: E501 + """reload_settings_file # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.reload_settings_file_with_http_info(project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project_locator: (required) + :param str fields: + :return: Project + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['project_locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method reload_settings_file" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'project_locator' is set + if ('project_locator' not in params or + params['project_locator'] is None): + raise ValueError("Missing the required parameter `project_locator` when calling `reload_settings_file`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'project_locator' in params: + path_params['projectLocator'] = params['project_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/projects/{projectLocator}/latest', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Project', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace(self, feature_locator, project_locator, **kwargs): # noqa: E501 + """replace # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.replace(feature_locator, project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str feature_locator: (required) + :param str project_locator: (required) + :param ProjectFeature body: + :param str fields: + :return: object + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.replace_with_http_info(feature_locator, project_locator, **kwargs) # noqa: E501 + else: + (data) = self.replace_with_http_info(feature_locator, project_locator, **kwargs) # noqa: E501 + return data + + def replace_with_http_info(self, feature_locator, project_locator, **kwargs): # noqa: E501 + """replace # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.replace_with_http_info(feature_locator, project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str feature_locator: (required) + :param str project_locator: (required) + :param ProjectFeature body: + :param str fields: + :return: object + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['feature_locator', 'project_locator', 'body', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'feature_locator' is set + if ('feature_locator' not in params or + params['feature_locator'] is None): + raise ValueError("Missing the required parameter `feature_locator` when calling `replace`") # noqa: E501 + # verify the required parameter 'project_locator' is set + if ('project_locator' not in params or + params['project_locator'] is None): + raise ValueError("Missing the required parameter `project_locator` when calling `replace`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'feature_locator' in params: + path_params['featureLocator'] = params['feature_locator'] # noqa: E501 + if 'project_locator' in params: + path_params['projectLocator'] = params['project_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/projects/{projectLocator}/projectFeatures/{featureLocator}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='object', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_all(self, project_locator, **kwargs): # noqa: E501 + """replace_all # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.replace_all(project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project_locator: (required) + :param ProjectFeatures body: + :param str fields: + :return: object + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.replace_all_with_http_info(project_locator, **kwargs) # noqa: E501 + else: + (data) = self.replace_all_with_http_info(project_locator, **kwargs) # noqa: E501 + return data + + def replace_all_with_http_info(self, project_locator, **kwargs): # noqa: E501 + """replace_all # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.replace_all_with_http_info(project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project_locator: (required) + :param ProjectFeatures body: + :param str fields: + :return: object + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['project_locator', 'body', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_all" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'project_locator' is set + if ('project_locator' not in params or + params['project_locator'] is None): + raise ValueError("Missing the required parameter `project_locator` when calling `replace_all`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'project_locator' in params: + path_params['projectLocator'] = params['project_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/projects/{projectLocator}/projectFeatures', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='object', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def serve_build_field_with_project(self, project_locator, bt_locator, build_locator, field, **kwargs): # noqa: E501 + """serve_build_field_with_project # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_build_field_with_project(project_locator, bt_locator, build_locator, field, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project_locator: (required) + :param str bt_locator: (required) + :param str build_locator: (required) + :param str field: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.serve_build_field_with_project_with_http_info(project_locator, bt_locator, build_locator, field, **kwargs) # noqa: E501 + else: + (data) = self.serve_build_field_with_project_with_http_info(project_locator, bt_locator, build_locator, field, **kwargs) # noqa: E501 + return data + + def serve_build_field_with_project_with_http_info(self, project_locator, bt_locator, build_locator, field, **kwargs): # noqa: E501 + """serve_build_field_with_project # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_build_field_with_project_with_http_info(project_locator, bt_locator, build_locator, field, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project_locator: (required) + :param str bt_locator: (required) + :param str build_locator: (required) + :param str field: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['project_locator', 'bt_locator', 'build_locator', 'field'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method serve_build_field_with_project" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'project_locator' is set + if ('project_locator' not in params or + params['project_locator'] is None): + raise ValueError("Missing the required parameter `project_locator` when calling `serve_build_field_with_project`") # noqa: E501 + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `serve_build_field_with_project`") # noqa: E501 + # verify the required parameter 'build_locator' is set + if ('build_locator' not in params or + params['build_locator'] is None): + raise ValueError("Missing the required parameter `build_locator` when calling `serve_build_field_with_project`") # noqa: E501 + # verify the required parameter 'field' is set + if ('field' not in params or + params['field'] is None): + raise ValueError("Missing the required parameter `field` when calling `serve_build_field_with_project`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'project_locator' in params: + path_params['projectLocator'] = params['project_locator'] # noqa: E501 + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + if 'build_locator' in params: + path_params['buildLocator'] = params['build_locator'] # noqa: E501 + if 'field' in params: + path_params['field'] = params['field'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/projects/{projectLocator}/buildTypes/{btLocator}/builds/{buildLocator}/{field}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def serve_build_type(self, project_locator, bt_locator, **kwargs): # noqa: E501 + """serve_build_type # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_build_type(project_locator, bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project_locator: (required) + :param str bt_locator: (required) + :param str fields: + :return: BuildType + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.serve_build_type_with_http_info(project_locator, bt_locator, **kwargs) # noqa: E501 + else: + (data) = self.serve_build_type_with_http_info(project_locator, bt_locator, **kwargs) # noqa: E501 + return data + + def serve_build_type_with_http_info(self, project_locator, bt_locator, **kwargs): # noqa: E501 + """serve_build_type # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_build_type_with_http_info(project_locator, bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project_locator: (required) + :param str bt_locator: (required) + :param str fields: + :return: BuildType + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['project_locator', 'bt_locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method serve_build_type" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'project_locator' is set + if ('project_locator' not in params or + params['project_locator'] is None): + raise ValueError("Missing the required parameter `project_locator` when calling `serve_build_type`") # noqa: E501 + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `serve_build_type`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'project_locator' in params: + path_params['projectLocator'] = params['project_locator'] # noqa: E501 + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/projects/{projectLocator}/buildTypes/{btLocator}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='BuildType', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def serve_build_type_field_with_project(self, project_locator, bt_locator, field, **kwargs): # noqa: E501 + """serve_build_type_field_with_project # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_build_type_field_with_project(project_locator, bt_locator, field, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project_locator: (required) + :param str bt_locator: (required) + :param str field: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.serve_build_type_field_with_project_with_http_info(project_locator, bt_locator, field, **kwargs) # noqa: E501 + else: + (data) = self.serve_build_type_field_with_project_with_http_info(project_locator, bt_locator, field, **kwargs) # noqa: E501 + return data + + def serve_build_type_field_with_project_with_http_info(self, project_locator, bt_locator, field, **kwargs): # noqa: E501 + """serve_build_type_field_with_project # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_build_type_field_with_project_with_http_info(project_locator, bt_locator, field, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project_locator: (required) + :param str bt_locator: (required) + :param str field: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['project_locator', 'bt_locator', 'field'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method serve_build_type_field_with_project" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'project_locator' is set + if ('project_locator' not in params or + params['project_locator'] is None): + raise ValueError("Missing the required parameter `project_locator` when calling `serve_build_type_field_with_project`") # noqa: E501 + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `serve_build_type_field_with_project`") # noqa: E501 + # verify the required parameter 'field' is set + if ('field' not in params or + params['field'] is None): + raise ValueError("Missing the required parameter `field` when calling `serve_build_type_field_with_project`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'project_locator' in params: + path_params['projectLocator'] = params['project_locator'] # noqa: E501 + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + if 'field' in params: + path_params['field'] = params['field'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/projects/{projectLocator}/buildTypes/{btLocator}/{field}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def serve_build_type_templates(self, project_locator, bt_locator, **kwargs): # noqa: E501 + """serve_build_type_templates # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_build_type_templates(project_locator, bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project_locator: (required) + :param str bt_locator: (required) + :param str fields: + :return: BuildType + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.serve_build_type_templates_with_http_info(project_locator, bt_locator, **kwargs) # noqa: E501 + else: + (data) = self.serve_build_type_templates_with_http_info(project_locator, bt_locator, **kwargs) # noqa: E501 + return data + + def serve_build_type_templates_with_http_info(self, project_locator, bt_locator, **kwargs): # noqa: E501 + """serve_build_type_templates # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_build_type_templates_with_http_info(project_locator, bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project_locator: (required) + :param str bt_locator: (required) + :param str fields: + :return: BuildType + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['project_locator', 'bt_locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method serve_build_type_templates" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'project_locator' is set + if ('project_locator' not in params or + params['project_locator'] is None): + raise ValueError("Missing the required parameter `project_locator` when calling `serve_build_type_templates`") # noqa: E501 + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `serve_build_type_templates`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'project_locator' in params: + path_params['projectLocator'] = params['project_locator'] # noqa: E501 + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/projects/{projectLocator}/templates/{btLocator}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='BuildType', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def serve_build_types_in_project(self, project_locator, **kwargs): # noqa: E501 + """serve_build_types_in_project # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_build_types_in_project(project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project_locator: (required) + :param str fields: + :return: BuildTypes + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.serve_build_types_in_project_with_http_info(project_locator, **kwargs) # noqa: E501 + else: + (data) = self.serve_build_types_in_project_with_http_info(project_locator, **kwargs) # noqa: E501 + return data + + def serve_build_types_in_project_with_http_info(self, project_locator, **kwargs): # noqa: E501 + """serve_build_types_in_project # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_build_types_in_project_with_http_info(project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project_locator: (required) + :param str fields: + :return: BuildTypes + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['project_locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method serve_build_types_in_project" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'project_locator' is set + if ('project_locator' not in params or + params['project_locator'] is None): + raise ValueError("Missing the required parameter `project_locator` when calling `serve_build_types_in_project`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'project_locator' in params: + path_params['projectLocator'] = params['project_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/projects/{projectLocator}/buildTypes', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='BuildTypes', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def serve_build_with_project(self, project_locator, bt_locator, build_locator, **kwargs): # noqa: E501 + """serve_build_with_project # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_build_with_project(project_locator, bt_locator, build_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project_locator: (required) + :param str bt_locator: (required) + :param str build_locator: (required) + :param str fields: + :return: Build + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.serve_build_with_project_with_http_info(project_locator, bt_locator, build_locator, **kwargs) # noqa: E501 + else: + (data) = self.serve_build_with_project_with_http_info(project_locator, bt_locator, build_locator, **kwargs) # noqa: E501 + return data + + def serve_build_with_project_with_http_info(self, project_locator, bt_locator, build_locator, **kwargs): # noqa: E501 + """serve_build_with_project # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_build_with_project_with_http_info(project_locator, bt_locator, build_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project_locator: (required) + :param str bt_locator: (required) + :param str build_locator: (required) + :param str fields: + :return: Build + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['project_locator', 'bt_locator', 'build_locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method serve_build_with_project" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'project_locator' is set + if ('project_locator' not in params or + params['project_locator'] is None): + raise ValueError("Missing the required parameter `project_locator` when calling `serve_build_with_project`") # noqa: E501 + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `serve_build_with_project`") # noqa: E501 + # verify the required parameter 'build_locator' is set + if ('build_locator' not in params or + params['build_locator'] is None): + raise ValueError("Missing the required parameter `build_locator` when calling `serve_build_with_project`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'project_locator' in params: + path_params['projectLocator'] = params['project_locator'] # noqa: E501 + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + if 'build_locator' in params: + path_params['buildLocator'] = params['build_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/projects/{projectLocator}/buildTypes/{btLocator}/builds/{buildLocator}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Build', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def serve_builds(self, project_locator, bt_locator, **kwargs): # noqa: E501 + """serve_builds # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_builds(project_locator, bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project_locator: (required) + :param str bt_locator: (required) + :param str status: + :param str triggered_by_user: + :param bool include_personal: + :param bool include_canceled: + :param bool only_pinned: + :param list[str] tag: + :param str agent_name: + :param str since_build: + :param str since_date: + :param int start: + :param int count: + :param str locator: + :param str fields: + :return: Builds + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.serve_builds_with_http_info(project_locator, bt_locator, **kwargs) # noqa: E501 + else: + (data) = self.serve_builds_with_http_info(project_locator, bt_locator, **kwargs) # noqa: E501 + return data + + def serve_builds_with_http_info(self, project_locator, bt_locator, **kwargs): # noqa: E501 + """serve_builds # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_builds_with_http_info(project_locator, bt_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project_locator: (required) + :param str bt_locator: (required) + :param str status: + :param str triggered_by_user: + :param bool include_personal: + :param bool include_canceled: + :param bool only_pinned: + :param list[str] tag: + :param str agent_name: + :param str since_build: + :param str since_date: + :param int start: + :param int count: + :param str locator: + :param str fields: + :return: Builds + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['project_locator', 'bt_locator', 'status', 'triggered_by_user', 'include_personal', 'include_canceled', 'only_pinned', 'tag', 'agent_name', 'since_build', 'since_date', 'start', 'count', 'locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method serve_builds" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'project_locator' is set + if ('project_locator' not in params or + params['project_locator'] is None): + raise ValueError("Missing the required parameter `project_locator` when calling `serve_builds`") # noqa: E501 + # verify the required parameter 'bt_locator' is set + if ('bt_locator' not in params or + params['bt_locator'] is None): + raise ValueError("Missing the required parameter `bt_locator` when calling `serve_builds`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'project_locator' in params: + path_params['projectLocator'] = params['project_locator'] # noqa: E501 + if 'bt_locator' in params: + path_params['btLocator'] = params['bt_locator'] # noqa: E501 + + query_params = [] + if 'status' in params: + query_params.append(('status', params['status'])) # noqa: E501 + if 'triggered_by_user' in params: + query_params.append(('triggeredByUser', params['triggered_by_user'])) # noqa: E501 + if 'include_personal' in params: + query_params.append(('includePersonal', params['include_personal'])) # noqa: E501 + if 'include_canceled' in params: + query_params.append(('includeCanceled', params['include_canceled'])) # noqa: E501 + if 'only_pinned' in params: + query_params.append(('onlyPinned', params['only_pinned'])) # noqa: E501 + if 'tag' in params: + query_params.append(('tag', params['tag'])) # noqa: E501 + collection_formats['tag'] = 'multi' # noqa: E501 + if 'agent_name' in params: + query_params.append(('agentName', params['agent_name'])) # noqa: E501 + if 'since_build' in params: + query_params.append(('sinceBuild', params['since_build'])) # noqa: E501 + if 'since_date' in params: + query_params.append(('sinceDate', params['since_date'])) # noqa: E501 + if 'start' in params: + query_params.append(('start', params['start'])) # noqa: E501 + if 'count' in params: + query_params.append(('count', params['count'])) # noqa: E501 + if 'locator' in params: + query_params.append(('locator', params['locator'])) # noqa: E501 + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/projects/{projectLocator}/buildTypes/{btLocator}/builds', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Builds', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def serve_project(self, project_locator, **kwargs): # noqa: E501 + """serve_project # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_project(project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project_locator: (required) + :param str fields: + :return: Project + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.serve_project_with_http_info(project_locator, **kwargs) # noqa: E501 + else: + (data) = self.serve_project_with_http_info(project_locator, **kwargs) # noqa: E501 + return data + + def serve_project_with_http_info(self, project_locator, **kwargs): # noqa: E501 + """serve_project # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_project_with_http_info(project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project_locator: (required) + :param str fields: + :return: Project + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['project_locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method serve_project" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'project_locator' is set + if ('project_locator' not in params or + params['project_locator'] is None): + raise ValueError("Missing the required parameter `project_locator` when calling `serve_project`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'project_locator' in params: + path_params['projectLocator'] = params['project_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/projects/{projectLocator}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Project', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def serve_project_field(self, project_locator, field, **kwargs): # noqa: E501 + """serve_project_field # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_project_field(project_locator, field, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project_locator: (required) + :param str field: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.serve_project_field_with_http_info(project_locator, field, **kwargs) # noqa: E501 + else: + (data) = self.serve_project_field_with_http_info(project_locator, field, **kwargs) # noqa: E501 + return data + + def serve_project_field_with_http_info(self, project_locator, field, **kwargs): # noqa: E501 + """serve_project_field # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_project_field_with_http_info(project_locator, field, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project_locator: (required) + :param str field: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['project_locator', 'field'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method serve_project_field" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'project_locator' is set + if ('project_locator' not in params or + params['project_locator'] is None): + raise ValueError("Missing the required parameter `project_locator` when calling `serve_project_field`") # noqa: E501 + # verify the required parameter 'field' is set + if ('field' not in params or + params['field'] is None): + raise ValueError("Missing the required parameter `field` when calling `serve_project_field`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'project_locator' in params: + path_params['projectLocator'] = params['project_locator'] # noqa: E501 + if 'field' in params: + path_params['field'] = params['field'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/projects/{projectLocator}/{field}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def serve_projects(self, **kwargs): # noqa: E501 + """serve_projects # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_projects(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str locator: + :param str fields: + :return: Projects + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.serve_projects_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.serve_projects_with_http_info(**kwargs) # noqa: E501 + return data + + def serve_projects_with_http_info(self, **kwargs): # noqa: E501 + """serve_projects # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_projects_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str locator: + :param str fields: + :return: Projects + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method serve_projects" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'locator' in params: + query_params.append(('locator', params['locator'])) # noqa: E501 + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/projects', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Projects', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def serve_templates_in_project(self, project_locator, **kwargs): # noqa: E501 + """serve_templates_in_project # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_templates_in_project(project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project_locator: (required) + :param str fields: + :return: BuildTypes + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.serve_templates_in_project_with_http_info(project_locator, **kwargs) # noqa: E501 + else: + (data) = self.serve_templates_in_project_with_http_info(project_locator, **kwargs) # noqa: E501 + return data + + def serve_templates_in_project_with_http_info(self, project_locator, **kwargs): # noqa: E501 + """serve_templates_in_project # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_templates_in_project_with_http_info(project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project_locator: (required) + :param str fields: + :return: BuildTypes + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['project_locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method serve_templates_in_project" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'project_locator' is set + if ('project_locator' not in params or + params['project_locator'] is None): + raise ValueError("Missing the required parameter `project_locator` when calling `serve_templates_in_project`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'project_locator' in params: + path_params['projectLocator'] = params['project_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/projects/{projectLocator}/templates', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='BuildTypes', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def set_build_types_order(self, project_locator, field, **kwargs): # noqa: E501 + """set_build_types_order # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.set_build_types_order(project_locator, field, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project_locator: (required) + :param str field: (required) + :param BuildTypes body: + :return: BuildTypes + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.set_build_types_order_with_http_info(project_locator, field, **kwargs) # noqa: E501 + else: + (data) = self.set_build_types_order_with_http_info(project_locator, field, **kwargs) # noqa: E501 + return data + + def set_build_types_order_with_http_info(self, project_locator, field, **kwargs): # noqa: E501 + """set_build_types_order # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.set_build_types_order_with_http_info(project_locator, field, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project_locator: (required) + :param str field: (required) + :param BuildTypes body: + :return: BuildTypes + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['project_locator', 'field', 'body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method set_build_types_order" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'project_locator' is set + if ('project_locator' not in params or + params['project_locator'] is None): + raise ValueError("Missing the required parameter `project_locator` when calling `set_build_types_order`") # noqa: E501 + # verify the required parameter 'field' is set + if ('field' not in params or + params['field'] is None): + raise ValueError("Missing the required parameter `field` when calling `set_build_types_order`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'project_locator' in params: + path_params['projectLocator'] = params['project_locator'] # noqa: E501 + if 'field' in params: + path_params['field'] = params['field'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/projects/{projectLocator}/order/buildTypes', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='BuildTypes', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def set_parameter(self, project_locator, **kwargs): # noqa: E501 + """set_parameter # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.set_parameter(project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project_locator: (required) + :param ModelProperty body: + :param str fields: + :return: ModelProperty + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.set_parameter_with_http_info(project_locator, **kwargs) # noqa: E501 + else: + (data) = self.set_parameter_with_http_info(project_locator, **kwargs) # noqa: E501 + return data + + def set_parameter_with_http_info(self, project_locator, **kwargs): # noqa: E501 + """set_parameter # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.set_parameter_with_http_info(project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project_locator: (required) + :param ModelProperty body: + :param str fields: + :return: ModelProperty + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['project_locator', 'body', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method set_parameter" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'project_locator' is set + if ('project_locator' not in params or + params['project_locator'] is None): + raise ValueError("Missing the required parameter `project_locator` when calling `set_parameter`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'project_locator' in params: + path_params['projectLocator'] = params['project_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/projects/{projectLocator}/parameters', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ModelProperty', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def set_parameter_0(self, name, project_locator, **kwargs): # noqa: E501 + """set_parameter_0 # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.set_parameter_0(name, project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str name: (required) + :param str project_locator: (required) + :param ModelProperty body: + :param str fields: + :return: ModelProperty + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.set_parameter_0_with_http_info(name, project_locator, **kwargs) # noqa: E501 + else: + (data) = self.set_parameter_0_with_http_info(name, project_locator, **kwargs) # noqa: E501 + return data + + def set_parameter_0_with_http_info(self, name, project_locator, **kwargs): # noqa: E501 + """set_parameter_0 # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.set_parameter_0_with_http_info(name, project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str name: (required) + :param str project_locator: (required) + :param ModelProperty body: + :param str fields: + :return: ModelProperty + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'project_locator', 'body', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method set_parameter_0" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params or + params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `set_parameter_0`") # noqa: E501 + # verify the required parameter 'project_locator' is set + if ('project_locator' not in params or + params['project_locator'] is None): + raise ValueError("Missing the required parameter `project_locator` when calling `set_parameter_0`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] # noqa: E501 + if 'project_locator' in params: + path_params['projectLocator'] = params['project_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/projects/{projectLocator}/parameters/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ModelProperty', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def set_parameter_1(self, feature_locator, project_locator, **kwargs): # noqa: E501 + """set_parameter_1 # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.set_parameter_1(feature_locator, project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str feature_locator: (required) + :param str project_locator: (required) + :param ModelProperty body: + :param str fields: + :param str fields2: + :return: ModelProperty + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.set_parameter_1_with_http_info(feature_locator, project_locator, **kwargs) # noqa: E501 + else: + (data) = self.set_parameter_1_with_http_info(feature_locator, project_locator, **kwargs) # noqa: E501 + return data + + def set_parameter_1_with_http_info(self, feature_locator, project_locator, **kwargs): # noqa: E501 + """set_parameter_1 # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.set_parameter_1_with_http_info(feature_locator, project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str feature_locator: (required) + :param str project_locator: (required) + :param ModelProperty body: + :param str fields: + :param str fields2: + :return: ModelProperty + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['feature_locator', 'project_locator', 'body', 'fields', 'fields2'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method set_parameter_1" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'feature_locator' is set + if ('feature_locator' not in params or + params['feature_locator'] is None): + raise ValueError("Missing the required parameter `feature_locator` when calling `set_parameter_1`") # noqa: E501 + # verify the required parameter 'project_locator' is set + if ('project_locator' not in params or + params['project_locator'] is None): + raise ValueError("Missing the required parameter `project_locator` when calling `set_parameter_1`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'feature_locator' in params: + path_params['featureLocator'] = params['feature_locator'] # noqa: E501 + if 'project_locator' in params: + path_params['projectLocator'] = params['project_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + if 'fields2' in params: + query_params.append(('fields', params['fields2'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/projects/{projectLocator}/projectFeatures/{featureLocator}/properties', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ModelProperty', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def set_parameter_2(self, name, feature_locator, project_locator, **kwargs): # noqa: E501 + """set_parameter_2 # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.set_parameter_2(name, feature_locator, project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str name: (required) + :param str feature_locator: (required) + :param str project_locator: (required) + :param ModelProperty body: + :param str fields: + :param str fields2: + :return: ModelProperty + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.set_parameter_2_with_http_info(name, feature_locator, project_locator, **kwargs) # noqa: E501 + else: + (data) = self.set_parameter_2_with_http_info(name, feature_locator, project_locator, **kwargs) # noqa: E501 + return data + + def set_parameter_2_with_http_info(self, name, feature_locator, project_locator, **kwargs): # noqa: E501 + """set_parameter_2 # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.set_parameter_2_with_http_info(name, feature_locator, project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str name: (required) + :param str feature_locator: (required) + :param str project_locator: (required) + :param ModelProperty body: + :param str fields: + :param str fields2: + :return: ModelProperty + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'feature_locator', 'project_locator', 'body', 'fields', 'fields2'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method set_parameter_2" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params or + params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `set_parameter_2`") # noqa: E501 + # verify the required parameter 'feature_locator' is set + if ('feature_locator' not in params or + params['feature_locator'] is None): + raise ValueError("Missing the required parameter `feature_locator` when calling `set_parameter_2`") # noqa: E501 + # verify the required parameter 'project_locator' is set + if ('project_locator' not in params or + params['project_locator'] is None): + raise ValueError("Missing the required parameter `project_locator` when calling `set_parameter_2`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] # noqa: E501 + if 'feature_locator' in params: + path_params['featureLocator'] = params['feature_locator'] # noqa: E501 + if 'project_locator' in params: + path_params['projectLocator'] = params['project_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + if 'fields2' in params: + query_params.append(('fields', params['fields2'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/projects/{projectLocator}/projectFeatures/{featureLocator}/properties/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ModelProperty', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def set_parameter_type(self, name, project_locator, **kwargs): # noqa: E501 + """set_parameter_type # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.set_parameter_type(name, project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str name: (required) + :param str project_locator: (required) + :param Type body: + :return: Type + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.set_parameter_type_with_http_info(name, project_locator, **kwargs) # noqa: E501 + else: + (data) = self.set_parameter_type_with_http_info(name, project_locator, **kwargs) # noqa: E501 + return data + + def set_parameter_type_with_http_info(self, name, project_locator, **kwargs): # noqa: E501 + """set_parameter_type # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.set_parameter_type_with_http_info(name, project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str name: (required) + :param str project_locator: (required) + :param Type body: + :return: Type + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'project_locator', 'body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method set_parameter_type" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params or + params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `set_parameter_type`") # noqa: E501 + # verify the required parameter 'project_locator' is set + if ('project_locator' not in params or + params['project_locator'] is None): + raise ValueError("Missing the required parameter `project_locator` when calling `set_parameter_type`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] # noqa: E501 + if 'project_locator' in params: + path_params['projectLocator'] = params['project_locator'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/projects/{projectLocator}/parameters/{name}/type', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Type', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def set_parameter_type_raw_value(self, name, project_locator, **kwargs): # noqa: E501 + """set_parameter_type_raw_value # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.set_parameter_type_raw_value(name, project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str name: (required) + :param str project_locator: (required) + :param str body: + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.set_parameter_type_raw_value_with_http_info(name, project_locator, **kwargs) # noqa: E501 + else: + (data) = self.set_parameter_type_raw_value_with_http_info(name, project_locator, **kwargs) # noqa: E501 + return data + + def set_parameter_type_raw_value_with_http_info(self, name, project_locator, **kwargs): # noqa: E501 + """set_parameter_type_raw_value # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.set_parameter_type_raw_value_with_http_info(name, project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str name: (required) + :param str project_locator: (required) + :param str body: + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'project_locator', 'body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method set_parameter_type_raw_value" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params or + params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `set_parameter_type_raw_value`") # noqa: E501 + # verify the required parameter 'project_locator' is set + if ('project_locator' not in params or + params['project_locator'] is None): + raise ValueError("Missing the required parameter `project_locator` when calling `set_parameter_type_raw_value`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] # noqa: E501 + if 'project_locator' in params: + path_params['projectLocator'] = params['project_locator'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/projects/{projectLocator}/parameters/{name}/type/rawValue', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def set_parameter_value_long(self, name, project_locator, **kwargs): # noqa: E501 + """set_parameter_value_long # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.set_parameter_value_long(name, project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str name: (required) + :param str project_locator: (required) + :param str body: + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.set_parameter_value_long_with_http_info(name, project_locator, **kwargs) # noqa: E501 + else: + (data) = self.set_parameter_value_long_with_http_info(name, project_locator, **kwargs) # noqa: E501 + return data + + def set_parameter_value_long_with_http_info(self, name, project_locator, **kwargs): # noqa: E501 + """set_parameter_value_long # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.set_parameter_value_long_with_http_info(name, project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str name: (required) + :param str project_locator: (required) + :param str body: + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'project_locator', 'body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method set_parameter_value_long" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params or + params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `set_parameter_value_long`") # noqa: E501 + # verify the required parameter 'project_locator' is set + if ('project_locator' not in params or + params['project_locator'] is None): + raise ValueError("Missing the required parameter `project_locator` when calling `set_parameter_value_long`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] # noqa: E501 + if 'project_locator' in params: + path_params['projectLocator'] = params['project_locator'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/projects/{projectLocator}/parameters/{name}/value', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def set_parameter_value_long_0(self, name, feature_locator, project_locator, **kwargs): # noqa: E501 + """set_parameter_value_long_0 # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.set_parameter_value_long_0(name, feature_locator, project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str name: (required) + :param str feature_locator: (required) + :param str project_locator: (required) + :param str body: + :param str fields: + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.set_parameter_value_long_0_with_http_info(name, feature_locator, project_locator, **kwargs) # noqa: E501 + else: + (data) = self.set_parameter_value_long_0_with_http_info(name, feature_locator, project_locator, **kwargs) # noqa: E501 + return data + + def set_parameter_value_long_0_with_http_info(self, name, feature_locator, project_locator, **kwargs): # noqa: E501 + """set_parameter_value_long_0 # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.set_parameter_value_long_0_with_http_info(name, feature_locator, project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str name: (required) + :param str feature_locator: (required) + :param str project_locator: (required) + :param str body: + :param str fields: + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'feature_locator', 'project_locator', 'body', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method set_parameter_value_long_0" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params or + params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `set_parameter_value_long_0`") # noqa: E501 + # verify the required parameter 'feature_locator' is set + if ('feature_locator' not in params or + params['feature_locator'] is None): + raise ValueError("Missing the required parameter `feature_locator` when calling `set_parameter_value_long_0`") # noqa: E501 + # verify the required parameter 'project_locator' is set + if ('project_locator' not in params or + params['project_locator'] is None): + raise ValueError("Missing the required parameter `project_locator` when calling `set_parameter_value_long_0`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] # noqa: E501 + if 'feature_locator' in params: + path_params['featureLocator'] = params['feature_locator'] # noqa: E501 + if 'project_locator' in params: + path_params['projectLocator'] = params['project_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/projects/{projectLocator}/projectFeatures/{featureLocator}/properties/{name}/value', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def set_parameters(self, project_locator, **kwargs): # noqa: E501 + """set_parameters # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.set_parameters(project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project_locator: (required) + :param Properties body: + :param str fields: + :return: Properties + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.set_parameters_with_http_info(project_locator, **kwargs) # noqa: E501 + else: + (data) = self.set_parameters_with_http_info(project_locator, **kwargs) # noqa: E501 + return data + + def set_parameters_with_http_info(self, project_locator, **kwargs): # noqa: E501 + """set_parameters # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.set_parameters_with_http_info(project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project_locator: (required) + :param Properties body: + :param str fields: + :return: Properties + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['project_locator', 'body', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method set_parameters" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'project_locator' is set + if ('project_locator' not in params or + params['project_locator'] is None): + raise ValueError("Missing the required parameter `project_locator` when calling `set_parameters`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'project_locator' in params: + path_params['projectLocator'] = params['project_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/projects/{projectLocator}/parameters', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Properties', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def set_parameters_0(self, feature_locator, project_locator, **kwargs): # noqa: E501 + """set_parameters_0 # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.set_parameters_0(feature_locator, project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str feature_locator: (required) + :param str project_locator: (required) + :param Properties body: + :param str fields: + :param str fields2: + :return: Properties + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.set_parameters_0_with_http_info(feature_locator, project_locator, **kwargs) # noqa: E501 + else: + (data) = self.set_parameters_0_with_http_info(feature_locator, project_locator, **kwargs) # noqa: E501 + return data + + def set_parameters_0_with_http_info(self, feature_locator, project_locator, **kwargs): # noqa: E501 + """set_parameters_0 # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.set_parameters_0_with_http_info(feature_locator, project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str feature_locator: (required) + :param str project_locator: (required) + :param Properties body: + :param str fields: + :param str fields2: + :return: Properties + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['feature_locator', 'project_locator', 'body', 'fields', 'fields2'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method set_parameters_0" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'feature_locator' is set + if ('feature_locator' not in params or + params['feature_locator'] is None): + raise ValueError("Missing the required parameter `feature_locator` when calling `set_parameters_0`") # noqa: E501 + # verify the required parameter 'project_locator' is set + if ('project_locator' not in params or + params['project_locator'] is None): + raise ValueError("Missing the required parameter `project_locator` when calling `set_parameters_0`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'feature_locator' in params: + path_params['featureLocator'] = params['feature_locator'] # noqa: E501 + if 'project_locator' in params: + path_params['projectLocator'] = params['project_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + if 'fields2' in params: + query_params.append(('fields', params['fields2'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/projects/{projectLocator}/projectFeatures/{featureLocator}/properties', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Properties', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def set_parent_project(self, project_locator, **kwargs): # noqa: E501 + """set_parent_project # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.set_parent_project(project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project_locator: (required) + :param Project body: + :return: Project + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.set_parent_project_with_http_info(project_locator, **kwargs) # noqa: E501 + else: + (data) = self.set_parent_project_with_http_info(project_locator, **kwargs) # noqa: E501 + return data + + def set_parent_project_with_http_info(self, project_locator, **kwargs): # noqa: E501 + """set_parent_project # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.set_parent_project_with_http_info(project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project_locator: (required) + :param Project body: + :return: Project + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['project_locator', 'body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method set_parent_project" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'project_locator' is set + if ('project_locator' not in params or + params['project_locator'] is None): + raise ValueError("Missing the required parameter `project_locator` when calling `set_parent_project`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'project_locator' in params: + path_params['projectLocator'] = params['project_locator'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/projects/{projectLocator}/parentProject', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Project', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def set_project_agent_pools(self, project_locator, **kwargs): # noqa: E501 + """set_project_agent_pools # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.set_project_agent_pools(project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project_locator: (required) + :param AgentPools body: + :param str fields: + :return: AgentPools + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.set_project_agent_pools_with_http_info(project_locator, **kwargs) # noqa: E501 + else: + (data) = self.set_project_agent_pools_with_http_info(project_locator, **kwargs) # noqa: E501 + return data + + def set_project_agent_pools_with_http_info(self, project_locator, **kwargs): # noqa: E501 + """set_project_agent_pools # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.set_project_agent_pools_with_http_info(project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project_locator: (required) + :param AgentPools body: + :param str fields: + :return: AgentPools + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['project_locator', 'body', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method set_project_agent_pools" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'project_locator' is set + if ('project_locator' not in params or + params['project_locator'] is None): + raise ValueError("Missing the required parameter `project_locator` when calling `set_project_agent_pools`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'project_locator' in params: + path_params['projectLocator'] = params['project_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/projects/{projectLocator}/agentPools', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AgentPools', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def set_project_agent_pools_0(self, project_locator, **kwargs): # noqa: E501 + """set_project_agent_pools_0 # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.set_project_agent_pools_0(project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project_locator: (required) + :param AgentPool body: + :return: AgentPool + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.set_project_agent_pools_0_with_http_info(project_locator, **kwargs) # noqa: E501 + else: + (data) = self.set_project_agent_pools_0_with_http_info(project_locator, **kwargs) # noqa: E501 + return data + + def set_project_agent_pools_0_with_http_info(self, project_locator, **kwargs): # noqa: E501 + """set_project_agent_pools_0 # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.set_project_agent_pools_0_with_http_info(project_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project_locator: (required) + :param AgentPool body: + :return: AgentPool + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['project_locator', 'body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method set_project_agent_pools_0" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'project_locator' is set + if ('project_locator' not in params or + params['project_locator'] is None): + raise ValueError("Missing the required parameter `project_locator` when calling `set_project_agent_pools_0`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'project_locator' in params: + path_params['projectLocator'] = params['project_locator'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/projects/{projectLocator}/agentPools', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AgentPool', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def set_project_filed(self, project_locator, field, **kwargs): # noqa: E501 + """set_project_filed # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.set_project_filed(project_locator, field, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project_locator: (required) + :param str field: (required) + :param str body: + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.set_project_filed_with_http_info(project_locator, field, **kwargs) # noqa: E501 + else: + (data) = self.set_project_filed_with_http_info(project_locator, field, **kwargs) # noqa: E501 + return data + + def set_project_filed_with_http_info(self, project_locator, field, **kwargs): # noqa: E501 + """set_project_filed # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.set_project_filed_with_http_info(project_locator, field, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project_locator: (required) + :param str field: (required) + :param str body: + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['project_locator', 'field', 'body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method set_project_filed" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'project_locator' is set + if ('project_locator' not in params or + params['project_locator'] is None): + raise ValueError("Missing the required parameter `project_locator` when calling `set_project_filed`") # noqa: E501 + # verify the required parameter 'field' is set + if ('field' not in params or + params['field'] is None): + raise ValueError("Missing the required parameter `field` when calling `set_project_filed`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'project_locator' in params: + path_params['projectLocator'] = params['project_locator'] # noqa: E501 + if 'field' in params: + path_params['field'] = params['field'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/projects/{projectLocator}/{field}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def set_projects_order(self, project_locator, field, **kwargs): # noqa: E501 + """set_projects_order # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.set_projects_order(project_locator, field, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project_locator: (required) + :param str field: (required) + :param Projects body: + :return: Projects + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.set_projects_order_with_http_info(project_locator, field, **kwargs) # noqa: E501 + else: + (data) = self.set_projects_order_with_http_info(project_locator, field, **kwargs) # noqa: E501 + return data + + def set_projects_order_with_http_info(self, project_locator, field, **kwargs): # noqa: E501 + """set_projects_order # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.set_projects_order_with_http_info(project_locator, field, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project_locator: (required) + :param str field: (required) + :param Projects body: + :return: Projects + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['project_locator', 'field', 'body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method set_projects_order" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'project_locator' is set + if ('project_locator' not in params or + params['project_locator'] is None): + raise ValueError("Missing the required parameter `project_locator` when calling `set_projects_order`") # noqa: E501 + # verify the required parameter 'field' is set + if ('field' not in params or + params['field'] is None): + raise ValueError("Missing the required parameter `field` when calling `set_projects_order`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'project_locator' in params: + path_params['projectLocator'] = params['project_locator'] # noqa: E501 + if 'field' in params: + path_params['field'] = params['field'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/projects/{projectLocator}/order/projects', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Projects', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/swagger_client/api/server_api.py b/swagger_client/api/server_api.py new file mode 100644 index 0000000..fa50189 --- /dev/null +++ b/swagger_client/api/server_api.py @@ -0,0 +1,1671 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from swagger_client.api_client import ApiClient + + +class ServerApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def add_license_keys(self, **kwargs): # noqa: E501 + """add_license_keys # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_license_keys(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str body: + :param str fields: + :return: LicenseKeys + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.add_license_keys_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.add_license_keys_with_http_info(**kwargs) # noqa: E501 + return data + + def add_license_keys_with_http_info(self, **kwargs): # noqa: E501 + """add_license_keys # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_license_keys_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str body: + :param str fields: + :return: LicenseKeys + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method add_license_keys" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/server/licensingData/licenseKeys', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='LicenseKeys', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_license_key(self, license_key, **kwargs): # noqa: E501 + """delete_license_key # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_license_key(license_key, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str license_key: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.delete_license_key_with_http_info(license_key, **kwargs) # noqa: E501 + else: + (data) = self.delete_license_key_with_http_info(license_key, **kwargs) # noqa: E501 + return data + + def delete_license_key_with_http_info(self, license_key, **kwargs): # noqa: E501 + """delete_license_key # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_license_key_with_http_info(license_key, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str license_key: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['license_key'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_license_key" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'license_key' is set + if ('license_key' not in params or + params['license_key'] is None): + raise ValueError("Missing the required parameter `license_key` when calling `delete_license_key`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'license_key' in params: + path_params['licenseKey'] = params['license_key'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/server/licensingData/licenseKeys/{licenseKey}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_backup_status(self, **kwargs): # noqa: E501 + """get_backup_status # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_backup_status(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param BackupProcessManager body: + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_backup_status_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.get_backup_status_with_http_info(**kwargs) # noqa: E501 + return data + + def get_backup_status_with_http_info(self, **kwargs): # noqa: E501 + """get_backup_status # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_backup_status_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param BackupProcessManager body: + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_backup_status" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/server/backup', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_children(self, path, area_id, **kwargs): # noqa: E501 + """get_children # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_children(path, area_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str path: (required) + :param str area_id: (required) + :param str base_path: + :param str locator: + :param str fields: + :return: Files + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_children_with_http_info(path, area_id, **kwargs) # noqa: E501 + else: + (data) = self.get_children_with_http_info(path, area_id, **kwargs) # noqa: E501 + return data + + def get_children_with_http_info(self, path, area_id, **kwargs): # noqa: E501 + """get_children # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_children_with_http_info(path, area_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str path: (required) + :param str area_id: (required) + :param str base_path: + :param str locator: + :param str fields: + :return: Files + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['path', 'area_id', 'base_path', 'locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_children" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'path' is set + if ('path' not in params or + params['path'] is None): + raise ValueError("Missing the required parameter `path` when calling `get_children`") # noqa: E501 + # verify the required parameter 'area_id' is set + if ('area_id' not in params or + params['area_id'] is None): + raise ValueError("Missing the required parameter `area_id` when calling `get_children`") # noqa: E501 + + if 'path' in params and not re.search('(\/.*)?', params['path']): # noqa: E501 + raise ValueError("Invalid value for parameter `path` when calling `get_children`, must conform to the pattern `/(\/.*)?/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'path' in params: + path_params['path'] = params['path'] # noqa: E501 + if 'area_id' in params: + path_params['areaId'] = params['area_id'] # noqa: E501 + + query_params = [] + if 'base_path' in params: + query_params.append(('basePath', params['base_path'])) # noqa: E501 + if 'locator' in params: + query_params.append(('locator', params['locator'])) # noqa: E501 + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/server/files/{areaId}/children{path}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Files', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_children_alias(self, path, area_id, **kwargs): # noqa: E501 + """get_children_alias # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_children_alias(path, area_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str path: (required) + :param str area_id: (required) + :param str base_path: + :param str locator: + :param str fields: + :return: Files + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_children_alias_with_http_info(path, area_id, **kwargs) # noqa: E501 + else: + (data) = self.get_children_alias_with_http_info(path, area_id, **kwargs) # noqa: E501 + return data + + def get_children_alias_with_http_info(self, path, area_id, **kwargs): # noqa: E501 + """get_children_alias # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_children_alias_with_http_info(path, area_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str path: (required) + :param str area_id: (required) + :param str base_path: + :param str locator: + :param str fields: + :return: Files + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['path', 'area_id', 'base_path', 'locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_children_alias" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'path' is set + if ('path' not in params or + params['path'] is None): + raise ValueError("Missing the required parameter `path` when calling `get_children_alias`") # noqa: E501 + # verify the required parameter 'area_id' is set + if ('area_id' not in params or + params['area_id'] is None): + raise ValueError("Missing the required parameter `area_id` when calling `get_children_alias`") # noqa: E501 + + if 'path' in params and not re.search('(.*)?', params['path']): # noqa: E501 + raise ValueError("Invalid value for parameter `path` when calling `get_children_alias`, must conform to the pattern `/(.*)?/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'path' in params: + path_params['path'] = params['path'] # noqa: E501 + if 'area_id' in params: + path_params['areaId'] = params['area_id'] # noqa: E501 + + query_params = [] + if 'base_path' in params: + query_params.append(('basePath', params['base_path'])) # noqa: E501 + if 'locator' in params: + query_params.append(('locator', params['locator'])) # noqa: E501 + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/server/files/{areaId}/{path}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Files', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_content(self, path, area_id, **kwargs): # noqa: E501 + """get_content # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_content(path, area_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str path: (required) + :param str area_id: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_content_with_http_info(path, area_id, **kwargs) # noqa: E501 + else: + (data) = self.get_content_with_http_info(path, area_id, **kwargs) # noqa: E501 + return data + + def get_content_with_http_info(self, path, area_id, **kwargs): # noqa: E501 + """get_content # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_content_with_http_info(path, area_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str path: (required) + :param str area_id: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['path', 'area_id'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_content" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'path' is set + if ('path' not in params or + params['path'] is None): + raise ValueError("Missing the required parameter `path` when calling `get_content`") # noqa: E501 + # verify the required parameter 'area_id' is set + if ('area_id' not in params or + params['area_id'] is None): + raise ValueError("Missing the required parameter `area_id` when calling `get_content`") # noqa: E501 + + if 'path' in params and not re.search('(\/.*)?', params['path']): # noqa: E501 + raise ValueError("Invalid value for parameter `path` when calling `get_content`, must conform to the pattern `/(\/.*)?/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'path' in params: + path_params['path'] = params['path'] # noqa: E501 + if 'area_id' in params: + path_params['areaId'] = params['area_id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/server/files/{areaId}/content{path}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_content_alias(self, path, area_id, **kwargs): # noqa: E501 + """get_content_alias # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_content_alias(path, area_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str path: (required) + :param str area_id: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_content_alias_with_http_info(path, area_id, **kwargs) # noqa: E501 + else: + (data) = self.get_content_alias_with_http_info(path, area_id, **kwargs) # noqa: E501 + return data + + def get_content_alias_with_http_info(self, path, area_id, **kwargs): # noqa: E501 + """get_content_alias # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_content_alias_with_http_info(path, area_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str path: (required) + :param str area_id: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['path', 'area_id'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_content_alias" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'path' is set + if ('path' not in params or + params['path'] is None): + raise ValueError("Missing the required parameter `path` when calling `get_content_alias`") # noqa: E501 + # verify the required parameter 'area_id' is set + if ('area_id' not in params or + params['area_id'] is None): + raise ValueError("Missing the required parameter `area_id` when calling `get_content_alias`") # noqa: E501 + + if 'path' in params and not re.search('(\/.*)?', params['path']): # noqa: E501 + raise ValueError("Invalid value for parameter `path` when calling `get_content_alias`, must conform to the pattern `/(\/.*)?/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'path' in params: + path_params['path'] = params['path'] # noqa: E501 + if 'area_id' in params: + path_params['areaId'] = params['area_id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/server/files/{areaId}/files{path}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_license_key(self, license_key, **kwargs): # noqa: E501 + """get_license_key # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_license_key(license_key, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str license_key: (required) + :param str fields: + :return: LicenseKey + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_license_key_with_http_info(license_key, **kwargs) # noqa: E501 + else: + (data) = self.get_license_key_with_http_info(license_key, **kwargs) # noqa: E501 + return data + + def get_license_key_with_http_info(self, license_key, **kwargs): # noqa: E501 + """get_license_key # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_license_key_with_http_info(license_key, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str license_key: (required) + :param str fields: + :return: LicenseKey + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['license_key', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_license_key" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'license_key' is set + if ('license_key' not in params or + params['license_key'] is None): + raise ValueError("Missing the required parameter `license_key` when calling `get_license_key`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'license_key' in params: + path_params['licenseKey'] = params['license_key'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/server/licensingData/licenseKeys/{licenseKey}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='LicenseKey', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_license_keys(self, **kwargs): # noqa: E501 + """get_license_keys # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_license_keys(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str fields: + :return: LicenseKeys + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_license_keys_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.get_license_keys_with_http_info(**kwargs) # noqa: E501 + return data + + def get_license_keys_with_http_info(self, **kwargs): # noqa: E501 + """get_license_keys # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_license_keys_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str fields: + :return: LicenseKeys + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_license_keys" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/server/licensingData/licenseKeys', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='LicenseKeys', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_licensing_data(self, **kwargs): # noqa: E501 + """get_licensing_data # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_licensing_data(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str fields: + :return: LicensingData + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_licensing_data_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.get_licensing_data_with_http_info(**kwargs) # noqa: E501 + return data + + def get_licensing_data_with_http_info(self, **kwargs): # noqa: E501 + """get_licensing_data # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_licensing_data_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str fields: + :return: LicensingData + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_licensing_data" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/server/licensingData', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='LicensingData', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_metadata(self, path, area_id, **kwargs): # noqa: E501 + """get_metadata # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_metadata(path, area_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str path: (required) + :param str area_id: (required) + :param str fields: + :return: file + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_metadata_with_http_info(path, area_id, **kwargs) # noqa: E501 + else: + (data) = self.get_metadata_with_http_info(path, area_id, **kwargs) # noqa: E501 + return data + + def get_metadata_with_http_info(self, path, area_id, **kwargs): # noqa: E501 + """get_metadata # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_metadata_with_http_info(path, area_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str path: (required) + :param str area_id: (required) + :param str fields: + :return: file + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['path', 'area_id', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_metadata" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'path' is set + if ('path' not in params or + params['path'] is None): + raise ValueError("Missing the required parameter `path` when calling `get_metadata`") # noqa: E501 + # verify the required parameter 'area_id' is set + if ('area_id' not in params or + params['area_id'] is None): + raise ValueError("Missing the required parameter `area_id` when calling `get_metadata`") # noqa: E501 + + if 'path' in params and not re.search('(\/.*)?', params['path']): # noqa: E501 + raise ValueError("Invalid value for parameter `path` when calling `get_metadata`, must conform to the pattern `/(\/.*)?/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'path' in params: + path_params['path'] = params['path'] # noqa: E501 + if 'area_id' in params: + path_params['areaId'] = params['area_id'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/server/files/{areaId}/metadata{path}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='file', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_root(self, area_id, **kwargs): # noqa: E501 + """get_root # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_root(area_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str area_id: (required) + :param str base_path: + :param str locator: + :param str fields: + :return: Files + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_root_with_http_info(area_id, **kwargs) # noqa: E501 + else: + (data) = self.get_root_with_http_info(area_id, **kwargs) # noqa: E501 + return data + + def get_root_with_http_info(self, area_id, **kwargs): # noqa: E501 + """get_root # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_root_with_http_info(area_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str area_id: (required) + :param str base_path: + :param str locator: + :param str fields: + :return: Files + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['area_id', 'base_path', 'locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_root" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'area_id' is set + if ('area_id' not in params or + params['area_id'] is None): + raise ValueError("Missing the required parameter `area_id` when calling `get_root`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'area_id' in params: + path_params['areaId'] = params['area_id'] # noqa: E501 + + query_params = [] + if 'base_path' in params: + query_params.append(('basePath', params['base_path'])) # noqa: E501 + if 'locator' in params: + query_params.append(('locator', params['locator'])) # noqa: E501 + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/server/files/{areaId}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Files', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_zipped(self, path, area_id, **kwargs): # noqa: E501 + """get_zipped # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_zipped(path, area_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str path: (required) + :param str area_id: (required) + :param str base_path: + :param str locator: + :param str name: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_zipped_with_http_info(path, area_id, **kwargs) # noqa: E501 + else: + (data) = self.get_zipped_with_http_info(path, area_id, **kwargs) # noqa: E501 + return data + + def get_zipped_with_http_info(self, path, area_id, **kwargs): # noqa: E501 + """get_zipped # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_zipped_with_http_info(path, area_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str path: (required) + :param str area_id: (required) + :param str base_path: + :param str locator: + :param str name: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['path', 'area_id', 'base_path', 'locator', 'name'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_zipped" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'path' is set + if ('path' not in params or + params['path'] is None): + raise ValueError("Missing the required parameter `path` when calling `get_zipped`") # noqa: E501 + # verify the required parameter 'area_id' is set + if ('area_id' not in params or + params['area_id'] is None): + raise ValueError("Missing the required parameter `area_id` when calling `get_zipped`") # noqa: E501 + + if 'path' in params and not re.search('(\/.*)?', params['path']): # noqa: E501 + raise ValueError("Invalid value for parameter `path` when calling `get_zipped`, must conform to the pattern `/(\/.*)?/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'path' in params: + path_params['path'] = params['path'] # noqa: E501 + if 'area_id' in params: + path_params['areaId'] = params['area_id'] # noqa: E501 + + query_params = [] + if 'base_path' in params: + query_params.append(('basePath', params['base_path'])) # noqa: E501 + if 'locator' in params: + query_params.append(('locator', params['locator'])) # noqa: E501 + if 'name' in params: + query_params.append(('name', params['name'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/server/files/{areaId}/archived{path}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def serve_plugins(self, **kwargs): # noqa: E501 + """serve_plugins # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_plugins(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str fields: + :return: Plugins + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.serve_plugins_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.serve_plugins_with_http_info(**kwargs) # noqa: E501 + return data + + def serve_plugins_with_http_info(self, **kwargs): # noqa: E501 + """serve_plugins # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_plugins_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str fields: + :return: Plugins + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method serve_plugins" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/server/plugins', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Plugins', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def serve_server_info(self, **kwargs): # noqa: E501 + """serve_server_info # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_server_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str fields: + :return: Server + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.serve_server_info_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.serve_server_info_with_http_info(**kwargs) # noqa: E501 + return data + + def serve_server_info_with_http_info(self, **kwargs): # noqa: E501 + """serve_server_info # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_server_info_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str fields: + :return: Server + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method serve_server_info" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/server', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Server', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def serve_server_version(self, field, **kwargs): # noqa: E501 + """serve_server_version # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_server_version(field, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str field: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.serve_server_version_with_http_info(field, **kwargs) # noqa: E501 + else: + (data) = self.serve_server_version_with_http_info(field, **kwargs) # noqa: E501 + return data + + def serve_server_version_with_http_info(self, field, **kwargs): # noqa: E501 + """serve_server_version # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_server_version_with_http_info(field, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str field: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['field'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method serve_server_version" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'field' is set + if ('field' not in params or + params['field'] is None): + raise ValueError("Missing the required parameter `field` when calling `serve_server_version`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'field' in params: + path_params['field'] = params['field'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/server/{field}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def start_backup(self, **kwargs): # noqa: E501 + """start_backup # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.start_backup(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str file_name: + :param bool add_timestamp: + :param bool include_configs: + :param bool include_database: + :param bool include_build_logs: + :param bool include_personal_changes: + :param bool include_running_builds: + :param bool include_supplimentary_data: + :param BackupProcessManager body: + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.start_backup_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.start_backup_with_http_info(**kwargs) # noqa: E501 + return data + + def start_backup_with_http_info(self, **kwargs): # noqa: E501 + """start_backup # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.start_backup_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str file_name: + :param bool add_timestamp: + :param bool include_configs: + :param bool include_database: + :param bool include_build_logs: + :param bool include_personal_changes: + :param bool include_running_builds: + :param bool include_supplimentary_data: + :param BackupProcessManager body: + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['file_name', 'add_timestamp', 'include_configs', 'include_database', 'include_build_logs', 'include_personal_changes', 'include_running_builds', 'include_supplimentary_data', 'body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method start_backup" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'file_name' in params: + query_params.append(('fileName', params['file_name'])) # noqa: E501 + if 'add_timestamp' in params: + query_params.append(('addTimestamp', params['add_timestamp'])) # noqa: E501 + if 'include_configs' in params: + query_params.append(('includeConfigs', params['include_configs'])) # noqa: E501 + if 'include_database' in params: + query_params.append(('includeDatabase', params['include_database'])) # noqa: E501 + if 'include_build_logs' in params: + query_params.append(('includeBuildLogs', params['include_build_logs'])) # noqa: E501 + if 'include_personal_changes' in params: + query_params.append(('includePersonalChanges', params['include_personal_changes'])) # noqa: E501 + if 'include_running_builds' in params: + query_params.append(('includeRunningBuilds', params['include_running_builds'])) # noqa: E501 + if 'include_supplimentary_data' in params: + query_params.append(('includeSupplimentaryData', params['include_supplimentary_data'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/server/backup', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/swagger_client/api/test_api.py b/swagger_client/api/test_api.py new file mode 100644 index 0000000..5cd259a --- /dev/null +++ b/swagger_client/api/test_api.py @@ -0,0 +1,216 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from swagger_client.api_client import ApiClient + + +class TestApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def get_tests(self, **kwargs): # noqa: E501 + """get_tests # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_tests(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str locator: + :param str fields: + :return: Tests + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_tests_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.get_tests_with_http_info(**kwargs) # noqa: E501 + return data + + def get_tests_with_http_info(self, **kwargs): # noqa: E501 + """get_tests # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_tests_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str locator: + :param str fields: + :return: Tests + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_tests" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'locator' in params: + query_params.append(('locator', params['locator'])) # noqa: E501 + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/tests', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Tests', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def serve_instance(self, test_locator, **kwargs): # noqa: E501 + """serve_instance # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_instance(test_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str test_locator: (required) + :param str fields: + :return: Test + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.serve_instance_with_http_info(test_locator, **kwargs) # noqa: E501 + else: + (data) = self.serve_instance_with_http_info(test_locator, **kwargs) # noqa: E501 + return data + + def serve_instance_with_http_info(self, test_locator, **kwargs): # noqa: E501 + """serve_instance # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_instance_with_http_info(test_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str test_locator: (required) + :param str fields: + :return: Test + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['test_locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method serve_instance" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'test_locator' is set + if ('test_locator' not in params or + params['test_locator'] is None): + raise ValueError("Missing the required parameter `test_locator` when calling `serve_instance`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'test_locator' in params: + path_params['testLocator'] = params['test_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/tests/{testLocator}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Test', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/swagger_client/api/test_occurrence_api.py b/swagger_client/api/test_occurrence_api.py new file mode 100644 index 0000000..b6199bc --- /dev/null +++ b/swagger_client/api/test_occurrence_api.py @@ -0,0 +1,216 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from swagger_client.api_client import ApiClient + + +class TestOccurrenceApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def get_test_occurrences(self, **kwargs): # noqa: E501 + """get_test_occurrences # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_test_occurrences(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str locator: + :param str fields: + :return: TestOccurrences + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_test_occurrences_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.get_test_occurrences_with_http_info(**kwargs) # noqa: E501 + return data + + def get_test_occurrences_with_http_info(self, **kwargs): # noqa: E501 + """get_test_occurrences # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_test_occurrences_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str locator: + :param str fields: + :return: TestOccurrences + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_test_occurrences" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'locator' in params: + query_params.append(('locator', params['locator'])) # noqa: E501 + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/testOccurrences', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='TestOccurrences', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def serve_instance(self, test_locator, **kwargs): # noqa: E501 + """serve_instance # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_instance(test_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str test_locator: (required) + :param str fields: + :return: TestOccurrence + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.serve_instance_with_http_info(test_locator, **kwargs) # noqa: E501 + else: + (data) = self.serve_instance_with_http_info(test_locator, **kwargs) # noqa: E501 + return data + + def serve_instance_with_http_info(self, test_locator, **kwargs): # noqa: E501 + """serve_instance # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_instance_with_http_info(test_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str test_locator: (required) + :param str fields: + :return: TestOccurrence + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['test_locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method serve_instance" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'test_locator' is set + if ('test_locator' not in params or + params['test_locator'] is None): + raise ValueError("Missing the required parameter `test_locator` when calling `serve_instance`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'test_locator' in params: + path_params['testLocator'] = params['test_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/testOccurrences/{testLocator}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='TestOccurrence', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/swagger_client/api/user_api.py b/swagger_client/api/user_api.py new file mode 100644 index 0000000..f43bf92 --- /dev/null +++ b/swagger_client/api/user_api.py @@ -0,0 +1,2334 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from swagger_client.api_client import ApiClient + + +class UserApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def add_group(self, user_locator, **kwargs): # noqa: E501 + """add_group # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_group(user_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str user_locator: (required) + :param Group body: + :param str fields: + :return: Group + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.add_group_with_http_info(user_locator, **kwargs) # noqa: E501 + else: + (data) = self.add_group_with_http_info(user_locator, **kwargs) # noqa: E501 + return data + + def add_group_with_http_info(self, user_locator, **kwargs): # noqa: E501 + """add_group # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_group_with_http_info(user_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str user_locator: (required) + :param Group body: + :param str fields: + :return: Group + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['user_locator', 'body', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method add_group" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'user_locator' is set + if ('user_locator' not in params or + params['user_locator'] is None): + raise ValueError("Missing the required parameter `user_locator` when calling `add_group`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'user_locator' in params: + path_params['userLocator'] = params['user_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/users/{userLocator}/groups', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Group', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def add_role(self, user_locator, **kwargs): # noqa: E501 + """add_role # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_role(user_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str user_locator: (required) + :param Role body: + :return: Role + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.add_role_with_http_info(user_locator, **kwargs) # noqa: E501 + else: + (data) = self.add_role_with_http_info(user_locator, **kwargs) # noqa: E501 + return data + + def add_role_with_http_info(self, user_locator, **kwargs): # noqa: E501 + """add_role # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_role_with_http_info(user_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str user_locator: (required) + :param Role body: + :return: Role + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['user_locator', 'body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method add_role" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'user_locator' is set + if ('user_locator' not in params or + params['user_locator'] is None): + raise ValueError("Missing the required parameter `user_locator` when calling `add_role`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'user_locator' in params: + path_params['userLocator'] = params['user_locator'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/users/{userLocator}/roles', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Role', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def add_role_simple(self, user_locator, role_id, scope, **kwargs): # noqa: E501 + """add_role_simple # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_role_simple(user_locator, role_id, scope, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str user_locator: (required) + :param str role_id: (required) + :param str scope: (required) + :return: Role + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.add_role_simple_with_http_info(user_locator, role_id, scope, **kwargs) # noqa: E501 + else: + (data) = self.add_role_simple_with_http_info(user_locator, role_id, scope, **kwargs) # noqa: E501 + return data + + def add_role_simple_with_http_info(self, user_locator, role_id, scope, **kwargs): # noqa: E501 + """add_role_simple # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_role_simple_with_http_info(user_locator, role_id, scope, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str user_locator: (required) + :param str role_id: (required) + :param str scope: (required) + :return: Role + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['user_locator', 'role_id', 'scope'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method add_role_simple" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'user_locator' is set + if ('user_locator' not in params or + params['user_locator'] is None): + raise ValueError("Missing the required parameter `user_locator` when calling `add_role_simple`") # noqa: E501 + # verify the required parameter 'role_id' is set + if ('role_id' not in params or + params['role_id'] is None): + raise ValueError("Missing the required parameter `role_id` when calling `add_role_simple`") # noqa: E501 + # verify the required parameter 'scope' is set + if ('scope' not in params or + params['scope'] is None): + raise ValueError("Missing the required parameter `scope` when calling `add_role_simple`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'user_locator' in params: + path_params['userLocator'] = params['user_locator'] # noqa: E501 + if 'role_id' in params: + path_params['roleId'] = params['role_id'] # noqa: E501 + if 'scope' in params: + path_params['scope'] = params['scope'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/users/{userLocator}/roles/{roleId}/{scope}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Role', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def add_role_simple_post(self, user_locator, role_id, scope, **kwargs): # noqa: E501 + """add_role_simple_post # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_role_simple_post(user_locator, role_id, scope, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str user_locator: (required) + :param str role_id: (required) + :param str scope: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.add_role_simple_post_with_http_info(user_locator, role_id, scope, **kwargs) # noqa: E501 + else: + (data) = self.add_role_simple_post_with_http_info(user_locator, role_id, scope, **kwargs) # noqa: E501 + return data + + def add_role_simple_post_with_http_info(self, user_locator, role_id, scope, **kwargs): # noqa: E501 + """add_role_simple_post # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_role_simple_post_with_http_info(user_locator, role_id, scope, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str user_locator: (required) + :param str role_id: (required) + :param str scope: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['user_locator', 'role_id', 'scope'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method add_role_simple_post" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'user_locator' is set + if ('user_locator' not in params or + params['user_locator'] is None): + raise ValueError("Missing the required parameter `user_locator` when calling `add_role_simple_post`") # noqa: E501 + # verify the required parameter 'role_id' is set + if ('role_id' not in params or + params['role_id'] is None): + raise ValueError("Missing the required parameter `role_id` when calling `add_role_simple_post`") # noqa: E501 + # verify the required parameter 'scope' is set + if ('scope' not in params or + params['scope'] is None): + raise ValueError("Missing the required parameter `scope` when calling `add_role_simple_post`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'user_locator' in params: + path_params['userLocator'] = params['user_locator'] # noqa: E501 + if 'role_id' in params: + path_params['roleId'] = params['role_id'] # noqa: E501 + if 'scope' in params: + path_params['scope'] = params['scope'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/users/{userLocator}/roles/{roleId}/{scope}', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_user(self, **kwargs): # noqa: E501 + """create_user # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_user(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param User body: + :param str fields: + :return: User + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.create_user_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.create_user_with_http_info(**kwargs) # noqa: E501 + return data + + def create_user_with_http_info(self, **kwargs): # noqa: E501 + """create_user # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_user_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param User body: + :param str fields: + :return: User + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_user" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/users', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='User', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_remember_me(self, user_locator, **kwargs): # noqa: E501 + """delete_remember_me # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_remember_me(user_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str user_locator: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.delete_remember_me_with_http_info(user_locator, **kwargs) # noqa: E501 + else: + (data) = self.delete_remember_me_with_http_info(user_locator, **kwargs) # noqa: E501 + return data + + def delete_remember_me_with_http_info(self, user_locator, **kwargs): # noqa: E501 + """delete_remember_me # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_remember_me_with_http_info(user_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str user_locator: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['user_locator'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_remember_me" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'user_locator' is set + if ('user_locator' not in params or + params['user_locator'] is None): + raise ValueError("Missing the required parameter `user_locator` when calling `delete_remember_me`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'user_locator' in params: + path_params['userLocator'] = params['user_locator'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/users/{userLocator}/debug/rememberMe', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_role(self, user_locator, role_id, scope, **kwargs): # noqa: E501 + """delete_role # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_role(user_locator, role_id, scope, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str user_locator: (required) + :param str role_id: (required) + :param str scope: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.delete_role_with_http_info(user_locator, role_id, scope, **kwargs) # noqa: E501 + else: + (data) = self.delete_role_with_http_info(user_locator, role_id, scope, **kwargs) # noqa: E501 + return data + + def delete_role_with_http_info(self, user_locator, role_id, scope, **kwargs): # noqa: E501 + """delete_role # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_role_with_http_info(user_locator, role_id, scope, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str user_locator: (required) + :param str role_id: (required) + :param str scope: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['user_locator', 'role_id', 'scope'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_role" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'user_locator' is set + if ('user_locator' not in params or + params['user_locator'] is None): + raise ValueError("Missing the required parameter `user_locator` when calling `delete_role`") # noqa: E501 + # verify the required parameter 'role_id' is set + if ('role_id' not in params or + params['role_id'] is None): + raise ValueError("Missing the required parameter `role_id` when calling `delete_role`") # noqa: E501 + # verify the required parameter 'scope' is set + if ('scope' not in params or + params['scope'] is None): + raise ValueError("Missing the required parameter `scope` when calling `delete_role`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'user_locator' in params: + path_params['userLocator'] = params['user_locator'] # noqa: E501 + if 'role_id' in params: + path_params['roleId'] = params['role_id'] # noqa: E501 + if 'scope' in params: + path_params['scope'] = params['scope'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/users/{userLocator}/roles/{roleId}/{scope}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_user(self, user_locator, **kwargs): # noqa: E501 + """delete_user # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_user(user_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str user_locator: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.delete_user_with_http_info(user_locator, **kwargs) # noqa: E501 + else: + (data) = self.delete_user_with_http_info(user_locator, **kwargs) # noqa: E501 + return data + + def delete_user_with_http_info(self, user_locator, **kwargs): # noqa: E501 + """delete_user # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_user_with_http_info(user_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str user_locator: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['user_locator'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_user" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'user_locator' is set + if ('user_locator' not in params or + params['user_locator'] is None): + raise ValueError("Missing the required parameter `user_locator` when calling `delete_user`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'user_locator' in params: + path_params['userLocator'] = params['user_locator'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/users/{userLocator}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_user_field(self, user_locator, field, **kwargs): # noqa: E501 + """delete_user_field # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_user_field(user_locator, field, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str user_locator: (required) + :param str field: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.delete_user_field_with_http_info(user_locator, field, **kwargs) # noqa: E501 + else: + (data) = self.delete_user_field_with_http_info(user_locator, field, **kwargs) # noqa: E501 + return data + + def delete_user_field_with_http_info(self, user_locator, field, **kwargs): # noqa: E501 + """delete_user_field # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_user_field_with_http_info(user_locator, field, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str user_locator: (required) + :param str field: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['user_locator', 'field'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_user_field" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'user_locator' is set + if ('user_locator' not in params or + params['user_locator'] is None): + raise ValueError("Missing the required parameter `user_locator` when calling `delete_user_field`") # noqa: E501 + # verify the required parameter 'field' is set + if ('field' not in params or + params['field'] is None): + raise ValueError("Missing the required parameter `field` when calling `delete_user_field`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'user_locator' in params: + path_params['userLocator'] = params['user_locator'] # noqa: E501 + if 'field' in params: + path_params['field'] = params['field'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/users/{userLocator}/{field}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_groups(self, user_locator, **kwargs): # noqa: E501 + """get_groups # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_groups(user_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str user_locator: (required) + :param str fields: + :return: Groups + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_groups_with_http_info(user_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_groups_with_http_info(user_locator, **kwargs) # noqa: E501 + return data + + def get_groups_with_http_info(self, user_locator, **kwargs): # noqa: E501 + """get_groups # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_groups_with_http_info(user_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str user_locator: (required) + :param str fields: + :return: Groups + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['user_locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_groups" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'user_locator' is set + if ('user_locator' not in params or + params['user_locator'] is None): + raise ValueError("Missing the required parameter `user_locator` when calling `get_groups`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'user_locator' in params: + path_params['userLocator'] = params['user_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/users/{userLocator}/groups', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Groups', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_permissions(self, user_locator, **kwargs): # noqa: E501 + """get_permissions # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_permissions(user_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str user_locator: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_permissions_with_http_info(user_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_permissions_with_http_info(user_locator, **kwargs) # noqa: E501 + return data + + def get_permissions_with_http_info(self, user_locator, **kwargs): # noqa: E501 + """get_permissions # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_permissions_with_http_info(user_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str user_locator: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['user_locator'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_permissions" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'user_locator' is set + if ('user_locator' not in params or + params['user_locator'] is None): + raise ValueError("Missing the required parameter `user_locator` when calling `get_permissions`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'user_locator' in params: + path_params['userLocator'] = params['user_locator'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/users/{userLocator}/debug/permissions', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_role(self, user_locator, role_id, scope, **kwargs): # noqa: E501 + """list_role # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_role(user_locator, role_id, scope, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str user_locator: (required) + :param str role_id: (required) + :param str scope: (required) + :return: Role + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.list_role_with_http_info(user_locator, role_id, scope, **kwargs) # noqa: E501 + else: + (data) = self.list_role_with_http_info(user_locator, role_id, scope, **kwargs) # noqa: E501 + return data + + def list_role_with_http_info(self, user_locator, role_id, scope, **kwargs): # noqa: E501 + """list_role # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_role_with_http_info(user_locator, role_id, scope, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str user_locator: (required) + :param str role_id: (required) + :param str scope: (required) + :return: Role + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['user_locator', 'role_id', 'scope'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_role" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'user_locator' is set + if ('user_locator' not in params or + params['user_locator'] is None): + raise ValueError("Missing the required parameter `user_locator` when calling `list_role`") # noqa: E501 + # verify the required parameter 'role_id' is set + if ('role_id' not in params or + params['role_id'] is None): + raise ValueError("Missing the required parameter `role_id` when calling `list_role`") # noqa: E501 + # verify the required parameter 'scope' is set + if ('scope' not in params or + params['scope'] is None): + raise ValueError("Missing the required parameter `scope` when calling `list_role`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'user_locator' in params: + path_params['userLocator'] = params['user_locator'] # noqa: E501 + if 'role_id' in params: + path_params['roleId'] = params['role_id'] # noqa: E501 + if 'scope' in params: + path_params['scope'] = params['scope'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/users/{userLocator}/roles/{roleId}/{scope}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Role', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_roles(self, user_locator, **kwargs): # noqa: E501 + """list_roles # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_roles(user_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str user_locator: (required) + :return: Roles + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.list_roles_with_http_info(user_locator, **kwargs) # noqa: E501 + else: + (data) = self.list_roles_with_http_info(user_locator, **kwargs) # noqa: E501 + return data + + def list_roles_with_http_info(self, user_locator, **kwargs): # noqa: E501 + """list_roles # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_roles_with_http_info(user_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str user_locator: (required) + :return: Roles + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['user_locator'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_roles" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'user_locator' is set + if ('user_locator' not in params or + params['user_locator'] is None): + raise ValueError("Missing the required parameter `user_locator` when calling `list_roles`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'user_locator' in params: + path_params['userLocator'] = params['user_locator'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/users/{userLocator}/roles', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Roles', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def put_user_property(self, user_locator, name, **kwargs): # noqa: E501 + """put_user_property # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.put_user_property(user_locator, name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str user_locator: (required) + :param str name: (required) + :param str body: + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.put_user_property_with_http_info(user_locator, name, **kwargs) # noqa: E501 + else: + (data) = self.put_user_property_with_http_info(user_locator, name, **kwargs) # noqa: E501 + return data + + def put_user_property_with_http_info(self, user_locator, name, **kwargs): # noqa: E501 + """put_user_property # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.put_user_property_with_http_info(user_locator, name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str user_locator: (required) + :param str name: (required) + :param str body: + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['user_locator', 'name', 'body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method put_user_property" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'user_locator' is set + if ('user_locator' not in params or + params['user_locator'] is None): + raise ValueError("Missing the required parameter `user_locator` when calling `put_user_property`") # noqa: E501 + # verify the required parameter 'name' is set + if ('name' not in params or + params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `put_user_property`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'user_locator' in params: + path_params['userLocator'] = params['user_locator'] # noqa: E501 + if 'name' in params: + path_params['name'] = params['name'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/users/{userLocator}/properties/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def remove_user_property(self, user_locator, name, **kwargs): # noqa: E501 + """remove_user_property # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.remove_user_property(user_locator, name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str user_locator: (required) + :param str name: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.remove_user_property_with_http_info(user_locator, name, **kwargs) # noqa: E501 + else: + (data) = self.remove_user_property_with_http_info(user_locator, name, **kwargs) # noqa: E501 + return data + + def remove_user_property_with_http_info(self, user_locator, name, **kwargs): # noqa: E501 + """remove_user_property # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.remove_user_property_with_http_info(user_locator, name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str user_locator: (required) + :param str name: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['user_locator', 'name'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method remove_user_property" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'user_locator' is set + if ('user_locator' not in params or + params['user_locator'] is None): + raise ValueError("Missing the required parameter `user_locator` when calling `remove_user_property`") # noqa: E501 + # verify the required parameter 'name' is set + if ('name' not in params or + params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `remove_user_property`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'user_locator' in params: + path_params['userLocator'] = params['user_locator'] # noqa: E501 + if 'name' in params: + path_params['name'] = params['name'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/users/{userLocator}/properties/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_groups(self, user_locator, **kwargs): # noqa: E501 + """replace_groups # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.replace_groups(user_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str user_locator: (required) + :param Groups body: + :param str fields: + :return: Groups + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.replace_groups_with_http_info(user_locator, **kwargs) # noqa: E501 + else: + (data) = self.replace_groups_with_http_info(user_locator, **kwargs) # noqa: E501 + return data + + def replace_groups_with_http_info(self, user_locator, **kwargs): # noqa: E501 + """replace_groups # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.replace_groups_with_http_info(user_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str user_locator: (required) + :param Groups body: + :param str fields: + :return: Groups + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['user_locator', 'body', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_groups" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'user_locator' is set + if ('user_locator' not in params or + params['user_locator'] is None): + raise ValueError("Missing the required parameter `user_locator` when calling `replace_groups`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'user_locator' in params: + path_params['userLocator'] = params['user_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/users/{userLocator}/groups', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Groups', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_roles(self, user_locator, **kwargs): # noqa: E501 + """replace_roles # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.replace_roles(user_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str user_locator: (required) + :param Roles body: + :return: Roles + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.replace_roles_with_http_info(user_locator, **kwargs) # noqa: E501 + else: + (data) = self.replace_roles_with_http_info(user_locator, **kwargs) # noqa: E501 + return data + + def replace_roles_with_http_info(self, user_locator, **kwargs): # noqa: E501 + """replace_roles # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.replace_roles_with_http_info(user_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str user_locator: (required) + :param Roles body: + :return: Roles + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['user_locator', 'body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method replace_roles" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'user_locator' is set + if ('user_locator' not in params or + params['user_locator'] is None): + raise ValueError("Missing the required parameter `user_locator` when calling `replace_roles`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'user_locator' in params: + path_params['userLocator'] = params['user_locator'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/users/{userLocator}/roles', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Roles', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def serve_user(self, user_locator, **kwargs): # noqa: E501 + """serve_user # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_user(user_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str user_locator: (required) + :param str fields: + :return: User + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.serve_user_with_http_info(user_locator, **kwargs) # noqa: E501 + else: + (data) = self.serve_user_with_http_info(user_locator, **kwargs) # noqa: E501 + return data + + def serve_user_with_http_info(self, user_locator, **kwargs): # noqa: E501 + """serve_user # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_user_with_http_info(user_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str user_locator: (required) + :param str fields: + :return: User + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['user_locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method serve_user" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'user_locator' is set + if ('user_locator' not in params or + params['user_locator'] is None): + raise ValueError("Missing the required parameter `user_locator` when calling `serve_user`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'user_locator' in params: + path_params['userLocator'] = params['user_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/users/{userLocator}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='User', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def serve_user_field(self, user_locator, field, **kwargs): # noqa: E501 + """serve_user_field # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_user_field(user_locator, field, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str user_locator: (required) + :param str field: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.serve_user_field_with_http_info(user_locator, field, **kwargs) # noqa: E501 + else: + (data) = self.serve_user_field_with_http_info(user_locator, field, **kwargs) # noqa: E501 + return data + + def serve_user_field_with_http_info(self, user_locator, field, **kwargs): # noqa: E501 + """serve_user_field # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_user_field_with_http_info(user_locator, field, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str user_locator: (required) + :param str field: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['user_locator', 'field'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method serve_user_field" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'user_locator' is set + if ('user_locator' not in params or + params['user_locator'] is None): + raise ValueError("Missing the required parameter `user_locator` when calling `serve_user_field`") # noqa: E501 + # verify the required parameter 'field' is set + if ('field' not in params or + params['field'] is None): + raise ValueError("Missing the required parameter `field` when calling `serve_user_field`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'user_locator' in params: + path_params['userLocator'] = params['user_locator'] # noqa: E501 + if 'field' in params: + path_params['field'] = params['field'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/users/{userLocator}/{field}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def serve_user_properties(self, user_locator, **kwargs): # noqa: E501 + """serve_user_properties # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_user_properties(user_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str user_locator: (required) + :param str fields: + :return: Properties + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.serve_user_properties_with_http_info(user_locator, **kwargs) # noqa: E501 + else: + (data) = self.serve_user_properties_with_http_info(user_locator, **kwargs) # noqa: E501 + return data + + def serve_user_properties_with_http_info(self, user_locator, **kwargs): # noqa: E501 + """serve_user_properties # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_user_properties_with_http_info(user_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str user_locator: (required) + :param str fields: + :return: Properties + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['user_locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method serve_user_properties" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'user_locator' is set + if ('user_locator' not in params or + params['user_locator'] is None): + raise ValueError("Missing the required parameter `user_locator` when calling `serve_user_properties`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'user_locator' in params: + path_params['userLocator'] = params['user_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/users/{userLocator}/properties', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Properties', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def serve_user_property(self, user_locator, name, **kwargs): # noqa: E501 + """serve_user_property # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_user_property(user_locator, name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str user_locator: (required) + :param str name: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.serve_user_property_with_http_info(user_locator, name, **kwargs) # noqa: E501 + else: + (data) = self.serve_user_property_with_http_info(user_locator, name, **kwargs) # noqa: E501 + return data + + def serve_user_property_with_http_info(self, user_locator, name, **kwargs): # noqa: E501 + """serve_user_property # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_user_property_with_http_info(user_locator, name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str user_locator: (required) + :param str name: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['user_locator', 'name'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method serve_user_property" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'user_locator' is set + if ('user_locator' not in params or + params['user_locator'] is None): + raise ValueError("Missing the required parameter `user_locator` when calling `serve_user_property`") # noqa: E501 + # verify the required parameter 'name' is set + if ('name' not in params or + params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `serve_user_property`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'user_locator' in params: + path_params['userLocator'] = params['user_locator'] # noqa: E501 + if 'name' in params: + path_params['name'] = params['name'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/users/{userLocator}/properties/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def serve_users(self, **kwargs): # noqa: E501 + """serve_users # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_users(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str locator: + :param str fields: + :return: Users + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.serve_users_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.serve_users_with_http_info(**kwargs) # noqa: E501 + return data + + def serve_users_with_http_info(self, **kwargs): # noqa: E501 + """serve_users # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_users_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str locator: + :param str fields: + :return: Users + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method serve_users" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'locator' in params: + query_params.append(('locator', params['locator'])) # noqa: E501 + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/users', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Users', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def set_user_field(self, user_locator, field, **kwargs): # noqa: E501 + """set_user_field # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.set_user_field(user_locator, field, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str user_locator: (required) + :param str field: (required) + :param str body: + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.set_user_field_with_http_info(user_locator, field, **kwargs) # noqa: E501 + else: + (data) = self.set_user_field_with_http_info(user_locator, field, **kwargs) # noqa: E501 + return data + + def set_user_field_with_http_info(self, user_locator, field, **kwargs): # noqa: E501 + """set_user_field # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.set_user_field_with_http_info(user_locator, field, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str user_locator: (required) + :param str field: (required) + :param str body: + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['user_locator', 'field', 'body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method set_user_field" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'user_locator' is set + if ('user_locator' not in params or + params['user_locator'] is None): + raise ValueError("Missing the required parameter `user_locator` when calling `set_user_field`") # noqa: E501 + # verify the required parameter 'field' is set + if ('field' not in params or + params['field'] is None): + raise ValueError("Missing the required parameter `field` when calling `set_user_field`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'user_locator' in params: + path_params['userLocator'] = params['user_locator'] # noqa: E501 + if 'field' in params: + path_params['field'] = params['field'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/users/{userLocator}/{field}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def update_user(self, user_locator, **kwargs): # noqa: E501 + """update_user # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_user(user_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str user_locator: (required) + :param User body: + :param str fields: + :return: User + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.update_user_with_http_info(user_locator, **kwargs) # noqa: E501 + else: + (data) = self.update_user_with_http_info(user_locator, **kwargs) # noqa: E501 + return data + + def update_user_with_http_info(self, user_locator, **kwargs): # noqa: E501 + """update_user # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_user_with_http_info(user_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str user_locator: (required) + :param User body: + :param str fields: + :return: User + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['user_locator', 'body', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method update_user" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'user_locator' is set + if ('user_locator' not in params or + params['user_locator'] is None): + raise ValueError("Missing the required parameter `user_locator` when calling `update_user`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'user_locator' in params: + path_params['userLocator'] = params['user_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/users/{userLocator}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='User', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/swagger_client/api/vcs_root_api.py b/swagger_client/api/vcs_root_api.py new file mode 100644 index 0000000..82e9c23 --- /dev/null +++ b/swagger_client/api/vcs_root_api.py @@ -0,0 +1,1764 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from swagger_client.api_client import ApiClient + + +class VcsRootApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def add_root(self, **kwargs): # noqa: E501 + """add_root # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_root(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param VcsRoot body: + :param str fields: + :return: VcsRoot + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.add_root_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.add_root_with_http_info(**kwargs) # noqa: E501 + return data + + def add_root_with_http_info(self, **kwargs): # noqa: E501 + """add_root # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_root_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param VcsRoot body: + :param str fields: + :return: VcsRoot + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method add_root" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/vcs-roots', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VcsRoot', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def change_properties(self, vcs_root_locator, **kwargs): # noqa: E501 + """change_properties # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.change_properties(vcs_root_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str vcs_root_locator: (required) + :param Properties body: + :param str fields: + :return: Properties + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.change_properties_with_http_info(vcs_root_locator, **kwargs) # noqa: E501 + else: + (data) = self.change_properties_with_http_info(vcs_root_locator, **kwargs) # noqa: E501 + return data + + def change_properties_with_http_info(self, vcs_root_locator, **kwargs): # noqa: E501 + """change_properties # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.change_properties_with_http_info(vcs_root_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str vcs_root_locator: (required) + :param Properties body: + :param str fields: + :return: Properties + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['vcs_root_locator', 'body', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method change_properties" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'vcs_root_locator' is set + if ('vcs_root_locator' not in params or + params['vcs_root_locator'] is None): + raise ValueError("Missing the required parameter `vcs_root_locator` when calling `change_properties`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'vcs_root_locator' in params: + path_params['vcsRootLocator'] = params['vcs_root_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/vcs-roots/{vcsRootLocator}/properties', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Properties', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_all_properties(self, vcs_root_locator, **kwargs): # noqa: E501 + """delete_all_properties # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_all_properties(vcs_root_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str vcs_root_locator: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.delete_all_properties_with_http_info(vcs_root_locator, **kwargs) # noqa: E501 + else: + (data) = self.delete_all_properties_with_http_info(vcs_root_locator, **kwargs) # noqa: E501 + return data + + def delete_all_properties_with_http_info(self, vcs_root_locator, **kwargs): # noqa: E501 + """delete_all_properties # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_all_properties_with_http_info(vcs_root_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str vcs_root_locator: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['vcs_root_locator'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_all_properties" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'vcs_root_locator' is set + if ('vcs_root_locator' not in params or + params['vcs_root_locator'] is None): + raise ValueError("Missing the required parameter `vcs_root_locator` when calling `delete_all_properties`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'vcs_root_locator' in params: + path_params['vcsRootLocator'] = params['vcs_root_locator'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/vcs-roots/{vcsRootLocator}/properties', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_parameter(self, vcs_root_locator, name, **kwargs): # noqa: E501 + """delete_parameter # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_parameter(vcs_root_locator, name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str vcs_root_locator: (required) + :param str name: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.delete_parameter_with_http_info(vcs_root_locator, name, **kwargs) # noqa: E501 + else: + (data) = self.delete_parameter_with_http_info(vcs_root_locator, name, **kwargs) # noqa: E501 + return data + + def delete_parameter_with_http_info(self, vcs_root_locator, name, **kwargs): # noqa: E501 + """delete_parameter # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_parameter_with_http_info(vcs_root_locator, name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str vcs_root_locator: (required) + :param str name: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['vcs_root_locator', 'name'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_parameter" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'vcs_root_locator' is set + if ('vcs_root_locator' not in params or + params['vcs_root_locator'] is None): + raise ValueError("Missing the required parameter `vcs_root_locator` when calling `delete_parameter`") # noqa: E501 + # verify the required parameter 'name' is set + if ('name' not in params or + params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_parameter`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'vcs_root_locator' in params: + path_params['vcsRootLocator'] = params['vcs_root_locator'] # noqa: E501 + if 'name' in params: + path_params['name'] = params['name'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/vcs-roots/{vcsRootLocator}/properties/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_root(self, vcs_root_locator, **kwargs): # noqa: E501 + """delete_root # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_root(vcs_root_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str vcs_root_locator: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.delete_root_with_http_info(vcs_root_locator, **kwargs) # noqa: E501 + else: + (data) = self.delete_root_with_http_info(vcs_root_locator, **kwargs) # noqa: E501 + return data + + def delete_root_with_http_info(self, vcs_root_locator, **kwargs): # noqa: E501 + """delete_root # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_root_with_http_info(vcs_root_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str vcs_root_locator: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['vcs_root_locator'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_root" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'vcs_root_locator' is set + if ('vcs_root_locator' not in params or + params['vcs_root_locator'] is None): + raise ValueError("Missing the required parameter `vcs_root_locator` when calling `delete_root`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'vcs_root_locator' in params: + path_params['vcsRootLocator'] = params['vcs_root_locator'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/vcs-roots/{vcsRootLocator}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_settings_file(self, vcs_root_locator, **kwargs): # noqa: E501 + """get_settings_file # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_settings_file(vcs_root_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str vcs_root_locator: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_settings_file_with_http_info(vcs_root_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_settings_file_with_http_info(vcs_root_locator, **kwargs) # noqa: E501 + return data + + def get_settings_file_with_http_info(self, vcs_root_locator, **kwargs): # noqa: E501 + """get_settings_file # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_settings_file_with_http_info(vcs_root_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str vcs_root_locator: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['vcs_root_locator'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_settings_file" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'vcs_root_locator' is set + if ('vcs_root_locator' not in params or + params['vcs_root_locator'] is None): + raise ValueError("Missing the required parameter `vcs_root_locator` when calling `get_settings_file`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'vcs_root_locator' in params: + path_params['vcsRootLocator'] = params['vcs_root_locator'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/vcs-roots/{vcsRootLocator}/settingsFile', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def put_parameter(self, vcs_root_locator, name, **kwargs): # noqa: E501 + """put_parameter # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.put_parameter(vcs_root_locator, name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str vcs_root_locator: (required) + :param str name: (required) + :param str body: + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.put_parameter_with_http_info(vcs_root_locator, name, **kwargs) # noqa: E501 + else: + (data) = self.put_parameter_with_http_info(vcs_root_locator, name, **kwargs) # noqa: E501 + return data + + def put_parameter_with_http_info(self, vcs_root_locator, name, **kwargs): # noqa: E501 + """put_parameter # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.put_parameter_with_http_info(vcs_root_locator, name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str vcs_root_locator: (required) + :param str name: (required) + :param str body: + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['vcs_root_locator', 'name', 'body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method put_parameter" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'vcs_root_locator' is set + if ('vcs_root_locator' not in params or + params['vcs_root_locator'] is None): + raise ValueError("Missing the required parameter `vcs_root_locator` when calling `put_parameter`") # noqa: E501 + # verify the required parameter 'name' is set + if ('name' not in params or + params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `put_parameter`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'vcs_root_locator' in params: + path_params['vcsRootLocator'] = params['vcs_root_locator'] # noqa: E501 + if 'name' in params: + path_params['name'] = params['name'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/vcs-roots/{vcsRootLocator}/properties/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def serve_field(self, vcs_root_locator, field, **kwargs): # noqa: E501 + """serve_field # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_field(vcs_root_locator, field, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str vcs_root_locator: (required) + :param str field: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.serve_field_with_http_info(vcs_root_locator, field, **kwargs) # noqa: E501 + else: + (data) = self.serve_field_with_http_info(vcs_root_locator, field, **kwargs) # noqa: E501 + return data + + def serve_field_with_http_info(self, vcs_root_locator, field, **kwargs): # noqa: E501 + """serve_field # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_field_with_http_info(vcs_root_locator, field, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str vcs_root_locator: (required) + :param str field: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['vcs_root_locator', 'field'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method serve_field" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'vcs_root_locator' is set + if ('vcs_root_locator' not in params or + params['vcs_root_locator'] is None): + raise ValueError("Missing the required parameter `vcs_root_locator` when calling `serve_field`") # noqa: E501 + # verify the required parameter 'field' is set + if ('field' not in params or + params['field'] is None): + raise ValueError("Missing the required parameter `field` when calling `serve_field`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'vcs_root_locator' in params: + path_params['vcsRootLocator'] = params['vcs_root_locator'] # noqa: E501 + if 'field' in params: + path_params['field'] = params['field'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/vcs-roots/{vcsRootLocator}/{field}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def serve_instance_field(self, vcs_root_locator, vcs_root_instance_locator, field, **kwargs): # noqa: E501 + """serve_instance_field # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_instance_field(vcs_root_locator, vcs_root_instance_locator, field, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str vcs_root_locator: (required) + :param str vcs_root_instance_locator: (required) + :param str field: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.serve_instance_field_with_http_info(vcs_root_locator, vcs_root_instance_locator, field, **kwargs) # noqa: E501 + else: + (data) = self.serve_instance_field_with_http_info(vcs_root_locator, vcs_root_instance_locator, field, **kwargs) # noqa: E501 + return data + + def serve_instance_field_with_http_info(self, vcs_root_locator, vcs_root_instance_locator, field, **kwargs): # noqa: E501 + """serve_instance_field # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_instance_field_with_http_info(vcs_root_locator, vcs_root_instance_locator, field, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str vcs_root_locator: (required) + :param str vcs_root_instance_locator: (required) + :param str field: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['vcs_root_locator', 'vcs_root_instance_locator', 'field'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method serve_instance_field" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'vcs_root_locator' is set + if ('vcs_root_locator' not in params or + params['vcs_root_locator'] is None): + raise ValueError("Missing the required parameter `vcs_root_locator` when calling `serve_instance_field`") # noqa: E501 + # verify the required parameter 'vcs_root_instance_locator' is set + if ('vcs_root_instance_locator' not in params or + params['vcs_root_instance_locator'] is None): + raise ValueError("Missing the required parameter `vcs_root_instance_locator` when calling `serve_instance_field`") # noqa: E501 + # verify the required parameter 'field' is set + if ('field' not in params or + params['field'] is None): + raise ValueError("Missing the required parameter `field` when calling `serve_instance_field`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'vcs_root_locator' in params: + path_params['vcsRootLocator'] = params['vcs_root_locator'] # noqa: E501 + if 'vcs_root_instance_locator' in params: + path_params['vcsRootInstanceLocator'] = params['vcs_root_instance_locator'] # noqa: E501 + if 'field' in params: + path_params['field'] = params['field'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/vcs-roots/{vcsRootLocator}/instances/{vcsRootInstanceLocator}/{field}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def serve_properties(self, vcs_root_locator, **kwargs): # noqa: E501 + """serve_properties # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_properties(vcs_root_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str vcs_root_locator: (required) + :param str fields: + :return: Properties + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.serve_properties_with_http_info(vcs_root_locator, **kwargs) # noqa: E501 + else: + (data) = self.serve_properties_with_http_info(vcs_root_locator, **kwargs) # noqa: E501 + return data + + def serve_properties_with_http_info(self, vcs_root_locator, **kwargs): # noqa: E501 + """serve_properties # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_properties_with_http_info(vcs_root_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str vcs_root_locator: (required) + :param str fields: + :return: Properties + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['vcs_root_locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method serve_properties" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'vcs_root_locator' is set + if ('vcs_root_locator' not in params or + params['vcs_root_locator'] is None): + raise ValueError("Missing the required parameter `vcs_root_locator` when calling `serve_properties`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'vcs_root_locator' in params: + path_params['vcsRootLocator'] = params['vcs_root_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/vcs-roots/{vcsRootLocator}/properties', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Properties', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def serve_property(self, vcs_root_locator, name, **kwargs): # noqa: E501 + """serve_property # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_property(vcs_root_locator, name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str vcs_root_locator: (required) + :param str name: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.serve_property_with_http_info(vcs_root_locator, name, **kwargs) # noqa: E501 + else: + (data) = self.serve_property_with_http_info(vcs_root_locator, name, **kwargs) # noqa: E501 + return data + + def serve_property_with_http_info(self, vcs_root_locator, name, **kwargs): # noqa: E501 + """serve_property # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_property_with_http_info(vcs_root_locator, name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str vcs_root_locator: (required) + :param str name: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['vcs_root_locator', 'name'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method serve_property" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'vcs_root_locator' is set + if ('vcs_root_locator' not in params or + params['vcs_root_locator'] is None): + raise ValueError("Missing the required parameter `vcs_root_locator` when calling `serve_property`") # noqa: E501 + # verify the required parameter 'name' is set + if ('name' not in params or + params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `serve_property`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'vcs_root_locator' in params: + path_params['vcsRootLocator'] = params['vcs_root_locator'] # noqa: E501 + if 'name' in params: + path_params['name'] = params['name'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/vcs-roots/{vcsRootLocator}/properties/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def serve_root(self, vcs_root_locator, **kwargs): # noqa: E501 + """serve_root # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_root(vcs_root_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str vcs_root_locator: (required) + :param str fields: + :return: VcsRoot + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.serve_root_with_http_info(vcs_root_locator, **kwargs) # noqa: E501 + else: + (data) = self.serve_root_with_http_info(vcs_root_locator, **kwargs) # noqa: E501 + return data + + def serve_root_with_http_info(self, vcs_root_locator, **kwargs): # noqa: E501 + """serve_root # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_root_with_http_info(vcs_root_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str vcs_root_locator: (required) + :param str fields: + :return: VcsRoot + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['vcs_root_locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method serve_root" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'vcs_root_locator' is set + if ('vcs_root_locator' not in params or + params['vcs_root_locator'] is None): + raise ValueError("Missing the required parameter `vcs_root_locator` when calling `serve_root`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'vcs_root_locator' in params: + path_params['vcsRootLocator'] = params['vcs_root_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/vcs-roots/{vcsRootLocator}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VcsRoot', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def serve_root_instance(self, vcs_root_locator, vcs_root_instance_locator, **kwargs): # noqa: E501 + """serve_root_instance # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_root_instance(vcs_root_locator, vcs_root_instance_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str vcs_root_locator: (required) + :param str vcs_root_instance_locator: (required) + :param str fields: + :return: VcsRootInstance + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.serve_root_instance_with_http_info(vcs_root_locator, vcs_root_instance_locator, **kwargs) # noqa: E501 + else: + (data) = self.serve_root_instance_with_http_info(vcs_root_locator, vcs_root_instance_locator, **kwargs) # noqa: E501 + return data + + def serve_root_instance_with_http_info(self, vcs_root_locator, vcs_root_instance_locator, **kwargs): # noqa: E501 + """serve_root_instance # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_root_instance_with_http_info(vcs_root_locator, vcs_root_instance_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str vcs_root_locator: (required) + :param str vcs_root_instance_locator: (required) + :param str fields: + :return: VcsRootInstance + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['vcs_root_locator', 'vcs_root_instance_locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method serve_root_instance" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'vcs_root_locator' is set + if ('vcs_root_locator' not in params or + params['vcs_root_locator'] is None): + raise ValueError("Missing the required parameter `vcs_root_locator` when calling `serve_root_instance`") # noqa: E501 + # verify the required parameter 'vcs_root_instance_locator' is set + if ('vcs_root_instance_locator' not in params or + params['vcs_root_instance_locator'] is None): + raise ValueError("Missing the required parameter `vcs_root_instance_locator` when calling `serve_root_instance`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'vcs_root_locator' in params: + path_params['vcsRootLocator'] = params['vcs_root_locator'] # noqa: E501 + if 'vcs_root_instance_locator' in params: + path_params['vcsRootInstanceLocator'] = params['vcs_root_instance_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/vcs-roots/{vcsRootLocator}/instances/{vcsRootInstanceLocator}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VcsRootInstance', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def serve_root_instance_properties(self, vcs_root_locator, vcs_root_instance_locator, **kwargs): # noqa: E501 + """serve_root_instance_properties # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_root_instance_properties(vcs_root_locator, vcs_root_instance_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str vcs_root_locator: (required) + :param str vcs_root_instance_locator: (required) + :param str fields: + :return: Properties + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.serve_root_instance_properties_with_http_info(vcs_root_locator, vcs_root_instance_locator, **kwargs) # noqa: E501 + else: + (data) = self.serve_root_instance_properties_with_http_info(vcs_root_locator, vcs_root_instance_locator, **kwargs) # noqa: E501 + return data + + def serve_root_instance_properties_with_http_info(self, vcs_root_locator, vcs_root_instance_locator, **kwargs): # noqa: E501 + """serve_root_instance_properties # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_root_instance_properties_with_http_info(vcs_root_locator, vcs_root_instance_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str vcs_root_locator: (required) + :param str vcs_root_instance_locator: (required) + :param str fields: + :return: Properties + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['vcs_root_locator', 'vcs_root_instance_locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method serve_root_instance_properties" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'vcs_root_locator' is set + if ('vcs_root_locator' not in params or + params['vcs_root_locator'] is None): + raise ValueError("Missing the required parameter `vcs_root_locator` when calling `serve_root_instance_properties`") # noqa: E501 + # verify the required parameter 'vcs_root_instance_locator' is set + if ('vcs_root_instance_locator' not in params or + params['vcs_root_instance_locator'] is None): + raise ValueError("Missing the required parameter `vcs_root_instance_locator` when calling `serve_root_instance_properties`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'vcs_root_locator' in params: + path_params['vcsRootLocator'] = params['vcs_root_locator'] # noqa: E501 + if 'vcs_root_instance_locator' in params: + path_params['vcsRootInstanceLocator'] = params['vcs_root_instance_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/vcs-roots/{vcsRootLocator}/instances/{vcsRootInstanceLocator}/properties', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Properties', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def serve_root_instances(self, vcs_root_locator, **kwargs): # noqa: E501 + """serve_root_instances # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_root_instances(vcs_root_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str vcs_root_locator: (required) + :param str fields: + :return: VcsRootInstances + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.serve_root_instances_with_http_info(vcs_root_locator, **kwargs) # noqa: E501 + else: + (data) = self.serve_root_instances_with_http_info(vcs_root_locator, **kwargs) # noqa: E501 + return data + + def serve_root_instances_with_http_info(self, vcs_root_locator, **kwargs): # noqa: E501 + """serve_root_instances # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_root_instances_with_http_info(vcs_root_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str vcs_root_locator: (required) + :param str fields: + :return: VcsRootInstances + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['vcs_root_locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method serve_root_instances" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'vcs_root_locator' is set + if ('vcs_root_locator' not in params or + params['vcs_root_locator'] is None): + raise ValueError("Missing the required parameter `vcs_root_locator` when calling `serve_root_instances`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'vcs_root_locator' in params: + path_params['vcsRootLocator'] = params['vcs_root_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/vcs-roots/{vcsRootLocator}/instances', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VcsRootInstances', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def serve_roots(self, **kwargs): # noqa: E501 + """serve_roots # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_roots(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str locator: + :param str fields: + :return: VcsRoots + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.serve_roots_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.serve_roots_with_http_info(**kwargs) # noqa: E501 + return data + + def serve_roots_with_http_info(self, **kwargs): # noqa: E501 + """serve_roots # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_roots_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str locator: + :param str fields: + :return: VcsRoots + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method serve_roots" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'locator' in params: + query_params.append(('locator', params['locator'])) # noqa: E501 + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/vcs-roots', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VcsRoots', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def set_field(self, vcs_root_locator, field, **kwargs): # noqa: E501 + """set_field # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.set_field(vcs_root_locator, field, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str vcs_root_locator: (required) + :param str field: (required) + :param str body: + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.set_field_with_http_info(vcs_root_locator, field, **kwargs) # noqa: E501 + else: + (data) = self.set_field_with_http_info(vcs_root_locator, field, **kwargs) # noqa: E501 + return data + + def set_field_with_http_info(self, vcs_root_locator, field, **kwargs): # noqa: E501 + """set_field # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.set_field_with_http_info(vcs_root_locator, field, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str vcs_root_locator: (required) + :param str field: (required) + :param str body: + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['vcs_root_locator', 'field', 'body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method set_field" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'vcs_root_locator' is set + if ('vcs_root_locator' not in params or + params['vcs_root_locator'] is None): + raise ValueError("Missing the required parameter `vcs_root_locator` when calling `set_field`") # noqa: E501 + # verify the required parameter 'field' is set + if ('field' not in params or + params['field'] is None): + raise ValueError("Missing the required parameter `field` when calling `set_field`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'vcs_root_locator' in params: + path_params['vcsRootLocator'] = params['vcs_root_locator'] # noqa: E501 + if 'field' in params: + path_params['field'] = params['field'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/vcs-roots/{vcsRootLocator}/{field}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def set_instance_field(self, vcs_root_locator, vcs_root_instance_locator, field, **kwargs): # noqa: E501 + """set_instance_field # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.set_instance_field(vcs_root_locator, vcs_root_instance_locator, field, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str vcs_root_locator: (required) + :param str vcs_root_instance_locator: (required) + :param str field: (required) + :param str body: + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.set_instance_field_with_http_info(vcs_root_locator, vcs_root_instance_locator, field, **kwargs) # noqa: E501 + else: + (data) = self.set_instance_field_with_http_info(vcs_root_locator, vcs_root_instance_locator, field, **kwargs) # noqa: E501 + return data + + def set_instance_field_with_http_info(self, vcs_root_locator, vcs_root_instance_locator, field, **kwargs): # noqa: E501 + """set_instance_field # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.set_instance_field_with_http_info(vcs_root_locator, vcs_root_instance_locator, field, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str vcs_root_locator: (required) + :param str vcs_root_instance_locator: (required) + :param str field: (required) + :param str body: + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['vcs_root_locator', 'vcs_root_instance_locator', 'field', 'body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method set_instance_field" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'vcs_root_locator' is set + if ('vcs_root_locator' not in params or + params['vcs_root_locator'] is None): + raise ValueError("Missing the required parameter `vcs_root_locator` when calling `set_instance_field`") # noqa: E501 + # verify the required parameter 'vcs_root_instance_locator' is set + if ('vcs_root_instance_locator' not in params or + params['vcs_root_instance_locator'] is None): + raise ValueError("Missing the required parameter `vcs_root_instance_locator` when calling `set_instance_field`") # noqa: E501 + # verify the required parameter 'field' is set + if ('field' not in params or + params['field'] is None): + raise ValueError("Missing the required parameter `field` when calling `set_instance_field`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'vcs_root_locator' in params: + path_params['vcsRootLocator'] = params['vcs_root_locator'] # noqa: E501 + if 'vcs_root_instance_locator' in params: + path_params['vcsRootInstanceLocator'] = params['vcs_root_instance_locator'] # noqa: E501 + if 'field' in params: + path_params['field'] = params['field'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/vcs-roots/{vcsRootLocator}/instances/{vcsRootInstanceLocator}/{field}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/swagger_client/api/vcs_root_instance_api.py b/swagger_client/api/vcs_root_instance_api.py new file mode 100644 index 0000000..e0c00fb --- /dev/null +++ b/swagger_client/api/vcs_root_instance_api.py @@ -0,0 +1,1889 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from swagger_client.api_client import ApiClient + + +class VcsRootInstanceApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def delete_instance_field(self, vcs_root_instance_locator, field, **kwargs): # noqa: E501 + """delete_instance_field # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_instance_field(vcs_root_instance_locator, field, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str vcs_root_instance_locator: (required) + :param str field: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.delete_instance_field_with_http_info(vcs_root_instance_locator, field, **kwargs) # noqa: E501 + else: + (data) = self.delete_instance_field_with_http_info(vcs_root_instance_locator, field, **kwargs) # noqa: E501 + return data + + def delete_instance_field_with_http_info(self, vcs_root_instance_locator, field, **kwargs): # noqa: E501 + """delete_instance_field # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_instance_field_with_http_info(vcs_root_instance_locator, field, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str vcs_root_instance_locator: (required) + :param str field: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['vcs_root_instance_locator', 'field'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_instance_field" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'vcs_root_instance_locator' is set + if ('vcs_root_instance_locator' not in params or + params['vcs_root_instance_locator'] is None): + raise ValueError("Missing the required parameter `vcs_root_instance_locator` when calling `delete_instance_field`") # noqa: E501 + # verify the required parameter 'field' is set + if ('field' not in params or + params['field'] is None): + raise ValueError("Missing the required parameter `field` when calling `delete_instance_field`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'vcs_root_instance_locator' in params: + path_params['vcsRootInstanceLocator'] = params['vcs_root_instance_locator'] # noqa: E501 + if 'field' in params: + path_params['field'] = params['field'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/vcs-root-instances/{vcsRootInstanceLocator}/{field}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_repository_state(self, vcs_root_instance_locator, **kwargs): # noqa: E501 + """delete_repository_state # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_repository_state(vcs_root_instance_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str vcs_root_instance_locator: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.delete_repository_state_with_http_info(vcs_root_instance_locator, **kwargs) # noqa: E501 + else: + (data) = self.delete_repository_state_with_http_info(vcs_root_instance_locator, **kwargs) # noqa: E501 + return data + + def delete_repository_state_with_http_info(self, vcs_root_instance_locator, **kwargs): # noqa: E501 + """delete_repository_state # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_repository_state_with_http_info(vcs_root_instance_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str vcs_root_instance_locator: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['vcs_root_instance_locator'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_repository_state" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'vcs_root_instance_locator' is set + if ('vcs_root_instance_locator' not in params or + params['vcs_root_instance_locator'] is None): + raise ValueError("Missing the required parameter `vcs_root_instance_locator` when calling `delete_repository_state`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'vcs_root_instance_locator' in params: + path_params['vcsRootInstanceLocator'] = params['vcs_root_instance_locator'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/vcs-root-instances/{vcsRootInstanceLocator}/repositoryState', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_children(self, path, vcs_root_instance_locator, **kwargs): # noqa: E501 + """get_children # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_children(path, vcs_root_instance_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str path: (required) + :param str vcs_root_instance_locator: (required) + :param str base_path: + :param str locator: + :param str fields: + :return: Files + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_children_with_http_info(path, vcs_root_instance_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_children_with_http_info(path, vcs_root_instance_locator, **kwargs) # noqa: E501 + return data + + def get_children_with_http_info(self, path, vcs_root_instance_locator, **kwargs): # noqa: E501 + """get_children # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_children_with_http_info(path, vcs_root_instance_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str path: (required) + :param str vcs_root_instance_locator: (required) + :param str base_path: + :param str locator: + :param str fields: + :return: Files + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['path', 'vcs_root_instance_locator', 'base_path', 'locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_children" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'path' is set + if ('path' not in params or + params['path'] is None): + raise ValueError("Missing the required parameter `path` when calling `get_children`") # noqa: E501 + # verify the required parameter 'vcs_root_instance_locator' is set + if ('vcs_root_instance_locator' not in params or + params['vcs_root_instance_locator'] is None): + raise ValueError("Missing the required parameter `vcs_root_instance_locator` when calling `get_children`") # noqa: E501 + + if 'path' in params and not re.search('(\/.*)?', params['path']): # noqa: E501 + raise ValueError("Invalid value for parameter `path` when calling `get_children`, must conform to the pattern `/(\/.*)?/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'path' in params: + path_params['path'] = params['path'] # noqa: E501 + if 'vcs_root_instance_locator' in params: + path_params['vcsRootInstanceLocator'] = params['vcs_root_instance_locator'] # noqa: E501 + + query_params = [] + if 'base_path' in params: + query_params.append(('basePath', params['base_path'])) # noqa: E501 + if 'locator' in params: + query_params.append(('locator', params['locator'])) # noqa: E501 + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/vcs-root-instances/{vcsRootInstanceLocator}/files/latest/children{path}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Files', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_children_alias(self, path, vcs_root_instance_locator, **kwargs): # noqa: E501 + """get_children_alias # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_children_alias(path, vcs_root_instance_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str path: (required) + :param str vcs_root_instance_locator: (required) + :param str base_path: + :param str locator: + :param str fields: + :return: Files + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_children_alias_with_http_info(path, vcs_root_instance_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_children_alias_with_http_info(path, vcs_root_instance_locator, **kwargs) # noqa: E501 + return data + + def get_children_alias_with_http_info(self, path, vcs_root_instance_locator, **kwargs): # noqa: E501 + """get_children_alias # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_children_alias_with_http_info(path, vcs_root_instance_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str path: (required) + :param str vcs_root_instance_locator: (required) + :param str base_path: + :param str locator: + :param str fields: + :return: Files + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['path', 'vcs_root_instance_locator', 'base_path', 'locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_children_alias" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'path' is set + if ('path' not in params or + params['path'] is None): + raise ValueError("Missing the required parameter `path` when calling `get_children_alias`") # noqa: E501 + # verify the required parameter 'vcs_root_instance_locator' is set + if ('vcs_root_instance_locator' not in params or + params['vcs_root_instance_locator'] is None): + raise ValueError("Missing the required parameter `vcs_root_instance_locator` when calling `get_children_alias`") # noqa: E501 + + if 'path' in params and not re.search('(.*)?', params['path']): # noqa: E501 + raise ValueError("Invalid value for parameter `path` when calling `get_children_alias`, must conform to the pattern `/(.*)?/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'path' in params: + path_params['path'] = params['path'] # noqa: E501 + if 'vcs_root_instance_locator' in params: + path_params['vcsRootInstanceLocator'] = params['vcs_root_instance_locator'] # noqa: E501 + + query_params = [] + if 'base_path' in params: + query_params.append(('basePath', params['base_path'])) # noqa: E501 + if 'locator' in params: + query_params.append(('locator', params['locator'])) # noqa: E501 + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/vcs-root-instances/{vcsRootInstanceLocator}/files/latest/{path}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Files', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_content(self, path, vcs_root_instance_locator, **kwargs): # noqa: E501 + """get_content # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_content(path, vcs_root_instance_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str path: (required) + :param str vcs_root_instance_locator: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_content_with_http_info(path, vcs_root_instance_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_content_with_http_info(path, vcs_root_instance_locator, **kwargs) # noqa: E501 + return data + + def get_content_with_http_info(self, path, vcs_root_instance_locator, **kwargs): # noqa: E501 + """get_content # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_content_with_http_info(path, vcs_root_instance_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str path: (required) + :param str vcs_root_instance_locator: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['path', 'vcs_root_instance_locator'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_content" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'path' is set + if ('path' not in params or + params['path'] is None): + raise ValueError("Missing the required parameter `path` when calling `get_content`") # noqa: E501 + # verify the required parameter 'vcs_root_instance_locator' is set + if ('vcs_root_instance_locator' not in params or + params['vcs_root_instance_locator'] is None): + raise ValueError("Missing the required parameter `vcs_root_instance_locator` when calling `get_content`") # noqa: E501 + + if 'path' in params and not re.search('(\/.*)?', params['path']): # noqa: E501 + raise ValueError("Invalid value for parameter `path` when calling `get_content`, must conform to the pattern `/(\/.*)?/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'path' in params: + path_params['path'] = params['path'] # noqa: E501 + if 'vcs_root_instance_locator' in params: + path_params['vcsRootInstanceLocator'] = params['vcs_root_instance_locator'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/vcs-root-instances/{vcsRootInstanceLocator}/files/latest/content{path}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_content_alias(self, path, vcs_root_instance_locator, **kwargs): # noqa: E501 + """get_content_alias # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_content_alias(path, vcs_root_instance_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str path: (required) + :param str vcs_root_instance_locator: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_content_alias_with_http_info(path, vcs_root_instance_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_content_alias_with_http_info(path, vcs_root_instance_locator, **kwargs) # noqa: E501 + return data + + def get_content_alias_with_http_info(self, path, vcs_root_instance_locator, **kwargs): # noqa: E501 + """get_content_alias # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_content_alias_with_http_info(path, vcs_root_instance_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str path: (required) + :param str vcs_root_instance_locator: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['path', 'vcs_root_instance_locator'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_content_alias" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'path' is set + if ('path' not in params or + params['path'] is None): + raise ValueError("Missing the required parameter `path` when calling `get_content_alias`") # noqa: E501 + # verify the required parameter 'vcs_root_instance_locator' is set + if ('vcs_root_instance_locator' not in params or + params['vcs_root_instance_locator'] is None): + raise ValueError("Missing the required parameter `vcs_root_instance_locator` when calling `get_content_alias`") # noqa: E501 + + if 'path' in params and not re.search('(\/.*)?', params['path']): # noqa: E501 + raise ValueError("Invalid value for parameter `path` when calling `get_content_alias`, must conform to the pattern `/(\/.*)?/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'path' in params: + path_params['path'] = params['path'] # noqa: E501 + if 'vcs_root_instance_locator' in params: + path_params['vcsRootInstanceLocator'] = params['vcs_root_instance_locator'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/vcs-root-instances/{vcsRootInstanceLocator}/files/latest/files{path}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_metadata(self, path, vcs_root_instance_locator, **kwargs): # noqa: E501 + """get_metadata # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_metadata(path, vcs_root_instance_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str path: (required) + :param str vcs_root_instance_locator: (required) + :param str fields: + :return: file + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_metadata_with_http_info(path, vcs_root_instance_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_metadata_with_http_info(path, vcs_root_instance_locator, **kwargs) # noqa: E501 + return data + + def get_metadata_with_http_info(self, path, vcs_root_instance_locator, **kwargs): # noqa: E501 + """get_metadata # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_metadata_with_http_info(path, vcs_root_instance_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str path: (required) + :param str vcs_root_instance_locator: (required) + :param str fields: + :return: file + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['path', 'vcs_root_instance_locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_metadata" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'path' is set + if ('path' not in params or + params['path'] is None): + raise ValueError("Missing the required parameter `path` when calling `get_metadata`") # noqa: E501 + # verify the required parameter 'vcs_root_instance_locator' is set + if ('vcs_root_instance_locator' not in params or + params['vcs_root_instance_locator'] is None): + raise ValueError("Missing the required parameter `vcs_root_instance_locator` when calling `get_metadata`") # noqa: E501 + + if 'path' in params and not re.search('(\/.*)?', params['path']): # noqa: E501 + raise ValueError("Invalid value for parameter `path` when calling `get_metadata`, must conform to the pattern `/(\/.*)?/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'path' in params: + path_params['path'] = params['path'] # noqa: E501 + if 'vcs_root_instance_locator' in params: + path_params['vcsRootInstanceLocator'] = params['vcs_root_instance_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/vcs-root-instances/{vcsRootInstanceLocator}/files/latest/metadata{path}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='file', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_repository_state(self, vcs_root_instance_locator, **kwargs): # noqa: E501 + """get_repository_state # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_repository_state(vcs_root_instance_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str vcs_root_instance_locator: (required) + :param str fields: + :return: Entries + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_repository_state_with_http_info(vcs_root_instance_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_repository_state_with_http_info(vcs_root_instance_locator, **kwargs) # noqa: E501 + return data + + def get_repository_state_with_http_info(self, vcs_root_instance_locator, **kwargs): # noqa: E501 + """get_repository_state # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_repository_state_with_http_info(vcs_root_instance_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str vcs_root_instance_locator: (required) + :param str fields: + :return: Entries + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['vcs_root_instance_locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_repository_state" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'vcs_root_instance_locator' is set + if ('vcs_root_instance_locator' not in params or + params['vcs_root_instance_locator'] is None): + raise ValueError("Missing the required parameter `vcs_root_instance_locator` when calling `get_repository_state`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'vcs_root_instance_locator' in params: + path_params['vcsRootInstanceLocator'] = params['vcs_root_instance_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/vcs-root-instances/{vcsRootInstanceLocator}/repositoryState', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Entries', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_repository_state_creation_date(self, vcs_root_instance_locator, **kwargs): # noqa: E501 + """get_repository_state_creation_date # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_repository_state_creation_date(vcs_root_instance_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str vcs_root_instance_locator: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_repository_state_creation_date_with_http_info(vcs_root_instance_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_repository_state_creation_date_with_http_info(vcs_root_instance_locator, **kwargs) # noqa: E501 + return data + + def get_repository_state_creation_date_with_http_info(self, vcs_root_instance_locator, **kwargs): # noqa: E501 + """get_repository_state_creation_date # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_repository_state_creation_date_with_http_info(vcs_root_instance_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str vcs_root_instance_locator: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['vcs_root_instance_locator'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_repository_state_creation_date" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'vcs_root_instance_locator' is set + if ('vcs_root_instance_locator' not in params or + params['vcs_root_instance_locator'] is None): + raise ValueError("Missing the required parameter `vcs_root_instance_locator` when calling `get_repository_state_creation_date`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'vcs_root_instance_locator' in params: + path_params['vcsRootInstanceLocator'] = params['vcs_root_instance_locator'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/vcs-root-instances/{vcsRootInstanceLocator}/repositoryState/creationDate', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_root(self, vcs_root_instance_locator, **kwargs): # noqa: E501 + """get_root # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_root(vcs_root_instance_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str vcs_root_instance_locator: (required) + :param str base_path: + :param str locator: + :param str fields: + :return: Files + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_root_with_http_info(vcs_root_instance_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_root_with_http_info(vcs_root_instance_locator, **kwargs) # noqa: E501 + return data + + def get_root_with_http_info(self, vcs_root_instance_locator, **kwargs): # noqa: E501 + """get_root # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_root_with_http_info(vcs_root_instance_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str vcs_root_instance_locator: (required) + :param str base_path: + :param str locator: + :param str fields: + :return: Files + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['vcs_root_instance_locator', 'base_path', 'locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_root" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'vcs_root_instance_locator' is set + if ('vcs_root_instance_locator' not in params or + params['vcs_root_instance_locator'] is None): + raise ValueError("Missing the required parameter `vcs_root_instance_locator` when calling `get_root`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'vcs_root_instance_locator' in params: + path_params['vcsRootInstanceLocator'] = params['vcs_root_instance_locator'] # noqa: E501 + + query_params = [] + if 'base_path' in params: + query_params.append(('basePath', params['base_path'])) # noqa: E501 + if 'locator' in params: + query_params.append(('locator', params['locator'])) # noqa: E501 + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/vcs-root-instances/{vcsRootInstanceLocator}/files/latest', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Files', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_zipped(self, path, vcs_root_instance_locator, **kwargs): # noqa: E501 + """get_zipped # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_zipped(path, vcs_root_instance_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str path: (required) + :param str vcs_root_instance_locator: (required) + :param str base_path: + :param str locator: + :param str name: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_zipped_with_http_info(path, vcs_root_instance_locator, **kwargs) # noqa: E501 + else: + (data) = self.get_zipped_with_http_info(path, vcs_root_instance_locator, **kwargs) # noqa: E501 + return data + + def get_zipped_with_http_info(self, path, vcs_root_instance_locator, **kwargs): # noqa: E501 + """get_zipped # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_zipped_with_http_info(path, vcs_root_instance_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str path: (required) + :param str vcs_root_instance_locator: (required) + :param str base_path: + :param str locator: + :param str name: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['path', 'vcs_root_instance_locator', 'base_path', 'locator', 'name'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_zipped" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'path' is set + if ('path' not in params or + params['path'] is None): + raise ValueError("Missing the required parameter `path` when calling `get_zipped`") # noqa: E501 + # verify the required parameter 'vcs_root_instance_locator' is set + if ('vcs_root_instance_locator' not in params or + params['vcs_root_instance_locator'] is None): + raise ValueError("Missing the required parameter `vcs_root_instance_locator` when calling `get_zipped`") # noqa: E501 + + if 'path' in params and not re.search('(\/.*)?', params['path']): # noqa: E501 + raise ValueError("Invalid value for parameter `path` when calling `get_zipped`, must conform to the pattern `/(\/.*)?/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'path' in params: + path_params['path'] = params['path'] # noqa: E501 + if 'vcs_root_instance_locator' in params: + path_params['vcsRootInstanceLocator'] = params['vcs_root_instance_locator'] # noqa: E501 + + query_params = [] + if 'base_path' in params: + query_params.append(('basePath', params['base_path'])) # noqa: E501 + if 'locator' in params: + query_params.append(('locator', params['locator'])) # noqa: E501 + if 'name' in params: + query_params.append(('name', params['name'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/vcs-root-instances/{vcsRootInstanceLocator}/files/latest/archived{path}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def schedule_checking_for_changes(self, **kwargs): # noqa: E501 + """schedule_checking_for_changes # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.schedule_checking_for_changes(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str locator: + :param str requestor: + :param str fields: + :return: VcsRootInstances + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.schedule_checking_for_changes_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.schedule_checking_for_changes_with_http_info(**kwargs) # noqa: E501 + return data + + def schedule_checking_for_changes_with_http_info(self, **kwargs): # noqa: E501 + """schedule_checking_for_changes # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.schedule_checking_for_changes_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str locator: + :param str requestor: + :param str fields: + :return: VcsRootInstances + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['locator', 'requestor', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method schedule_checking_for_changes" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'locator' in params: + query_params.append(('locator', params['locator'])) # noqa: E501 + if 'requestor' in params: + query_params.append(('requestor', params['requestor'])) # noqa: E501 + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/vcs-root-instances/checkingForChangesQueue', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VcsRootInstances', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def schedule_checking_for_changes_0(self, **kwargs): # noqa: E501 + """schedule_checking_for_changes_0 # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.schedule_checking_for_changes_0(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str locator: + :param bool ok_on_nothing_found: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.schedule_checking_for_changes_0_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.schedule_checking_for_changes_0_with_http_info(**kwargs) # noqa: E501 + return data + + def schedule_checking_for_changes_0_with_http_info(self, **kwargs): # noqa: E501 + """schedule_checking_for_changes_0 # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.schedule_checking_for_changes_0_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str locator: + :param bool ok_on_nothing_found: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['locator', 'ok_on_nothing_found'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method schedule_checking_for_changes_0" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'locator' in params: + query_params.append(('locator', params['locator'])) # noqa: E501 + if 'ok_on_nothing_found' in params: + query_params.append(('okOnNothingFound', params['ok_on_nothing_found'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/vcs-root-instances/commitHookNotification', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def serve_instance(self, vcs_root_instance_locator, **kwargs): # noqa: E501 + """serve_instance # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_instance(vcs_root_instance_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str vcs_root_instance_locator: (required) + :param str fields: + :return: VcsRootInstance + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.serve_instance_with_http_info(vcs_root_instance_locator, **kwargs) # noqa: E501 + else: + (data) = self.serve_instance_with_http_info(vcs_root_instance_locator, **kwargs) # noqa: E501 + return data + + def serve_instance_with_http_info(self, vcs_root_instance_locator, **kwargs): # noqa: E501 + """serve_instance # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_instance_with_http_info(vcs_root_instance_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str vcs_root_instance_locator: (required) + :param str fields: + :return: VcsRootInstance + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['vcs_root_instance_locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method serve_instance" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'vcs_root_instance_locator' is set + if ('vcs_root_instance_locator' not in params or + params['vcs_root_instance_locator'] is None): + raise ValueError("Missing the required parameter `vcs_root_instance_locator` when calling `serve_instance`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'vcs_root_instance_locator' in params: + path_params['vcsRootInstanceLocator'] = params['vcs_root_instance_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/vcs-root-instances/{vcsRootInstanceLocator}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VcsRootInstance', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def serve_instance_field(self, vcs_root_instance_locator, field, **kwargs): # noqa: E501 + """serve_instance_field # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_instance_field(vcs_root_instance_locator, field, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str vcs_root_instance_locator: (required) + :param str field: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.serve_instance_field_with_http_info(vcs_root_instance_locator, field, **kwargs) # noqa: E501 + else: + (data) = self.serve_instance_field_with_http_info(vcs_root_instance_locator, field, **kwargs) # noqa: E501 + return data + + def serve_instance_field_with_http_info(self, vcs_root_instance_locator, field, **kwargs): # noqa: E501 + """serve_instance_field # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_instance_field_with_http_info(vcs_root_instance_locator, field, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str vcs_root_instance_locator: (required) + :param str field: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['vcs_root_instance_locator', 'field'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method serve_instance_field" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'vcs_root_instance_locator' is set + if ('vcs_root_instance_locator' not in params or + params['vcs_root_instance_locator'] is None): + raise ValueError("Missing the required parameter `vcs_root_instance_locator` when calling `serve_instance_field`") # noqa: E501 + # verify the required parameter 'field' is set + if ('field' not in params or + params['field'] is None): + raise ValueError("Missing the required parameter `field` when calling `serve_instance_field`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'vcs_root_instance_locator' in params: + path_params['vcsRootInstanceLocator'] = params['vcs_root_instance_locator'] # noqa: E501 + if 'field' in params: + path_params['field'] = params['field'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/vcs-root-instances/{vcsRootInstanceLocator}/{field}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def serve_instances(self, **kwargs): # noqa: E501 + """serve_instances # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_instances(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str locator: + :param str fields: + :return: VcsRootInstances + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.serve_instances_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.serve_instances_with_http_info(**kwargs) # noqa: E501 + return data + + def serve_instances_with_http_info(self, **kwargs): # noqa: E501 + """serve_instances # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_instances_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str locator: + :param str fields: + :return: VcsRootInstances + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method serve_instances" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'locator' in params: + query_params.append(('locator', params['locator'])) # noqa: E501 + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/vcs-root-instances', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VcsRootInstances', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def serve_root_instance_properties(self, vcs_root_instance_locator, **kwargs): # noqa: E501 + """serve_root_instance_properties # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_root_instance_properties(vcs_root_instance_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str vcs_root_instance_locator: (required) + :param str fields: + :return: Properties + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.serve_root_instance_properties_with_http_info(vcs_root_instance_locator, **kwargs) # noqa: E501 + else: + (data) = self.serve_root_instance_properties_with_http_info(vcs_root_instance_locator, **kwargs) # noqa: E501 + return data + + def serve_root_instance_properties_with_http_info(self, vcs_root_instance_locator, **kwargs): # noqa: E501 + """serve_root_instance_properties # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.serve_root_instance_properties_with_http_info(vcs_root_instance_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str vcs_root_instance_locator: (required) + :param str fields: + :return: Properties + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['vcs_root_instance_locator', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method serve_root_instance_properties" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'vcs_root_instance_locator' is set + if ('vcs_root_instance_locator' not in params or + params['vcs_root_instance_locator'] is None): + raise ValueError("Missing the required parameter `vcs_root_instance_locator` when calling `serve_root_instance_properties`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'vcs_root_instance_locator' in params: + path_params['vcsRootInstanceLocator'] = params['vcs_root_instance_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/vcs-root-instances/{vcsRootInstanceLocator}/properties', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Properties', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def set_instance_field(self, vcs_root_instance_locator, field, **kwargs): # noqa: E501 + """set_instance_field # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.set_instance_field(vcs_root_instance_locator, field, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str vcs_root_instance_locator: (required) + :param str field: (required) + :param str body: + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.set_instance_field_with_http_info(vcs_root_instance_locator, field, **kwargs) # noqa: E501 + else: + (data) = self.set_instance_field_with_http_info(vcs_root_instance_locator, field, **kwargs) # noqa: E501 + return data + + def set_instance_field_with_http_info(self, vcs_root_instance_locator, field, **kwargs): # noqa: E501 + """set_instance_field # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.set_instance_field_with_http_info(vcs_root_instance_locator, field, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str vcs_root_instance_locator: (required) + :param str field: (required) + :param str body: + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['vcs_root_instance_locator', 'field', 'body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method set_instance_field" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'vcs_root_instance_locator' is set + if ('vcs_root_instance_locator' not in params or + params['vcs_root_instance_locator'] is None): + raise ValueError("Missing the required parameter `vcs_root_instance_locator` when calling `set_instance_field`") # noqa: E501 + # verify the required parameter 'field' is set + if ('field' not in params or + params['field'] is None): + raise ValueError("Missing the required parameter `field` when calling `set_instance_field`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'vcs_root_instance_locator' in params: + path_params['vcsRootInstanceLocator'] = params['vcs_root_instance_locator'] # noqa: E501 + if 'field' in params: + path_params['field'] = params['field'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/vcs-root-instances/{vcsRootInstanceLocator}/{field}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def set_repository_state(self, vcs_root_instance_locator, **kwargs): # noqa: E501 + """set_repository_state # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.set_repository_state(vcs_root_instance_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str vcs_root_instance_locator: (required) + :param Entries body: + :param str fields: + :return: Entries + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.set_repository_state_with_http_info(vcs_root_instance_locator, **kwargs) # noqa: E501 + else: + (data) = self.set_repository_state_with_http_info(vcs_root_instance_locator, **kwargs) # noqa: E501 + return data + + def set_repository_state_with_http_info(self, vcs_root_instance_locator, **kwargs): # noqa: E501 + """set_repository_state # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.set_repository_state_with_http_info(vcs_root_instance_locator, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str vcs_root_instance_locator: (required) + :param Entries body: + :param str fields: + :return: Entries + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['vcs_root_instance_locator', 'body', 'fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method set_repository_state" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'vcs_root_instance_locator' is set + if ('vcs_root_instance_locator' not in params or + params['vcs_root_instance_locator'] is None): + raise ValueError("Missing the required parameter `vcs_root_instance_locator` when calling `set_repository_state`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'vcs_root_instance_locator' in params: + path_params['vcsRootInstanceLocator'] = params['vcs_root_instance_locator'] # noqa: E501 + + query_params = [] + if 'fields' in params: + query_params.append(('fields', params['fields'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/app/rest/vcs-root-instances/{vcsRootInstanceLocator}/repositoryState', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Entries', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/swagger_client/api_client.py b/swagger_client/api_client.py new file mode 100644 index 0000000..13803c4 --- /dev/null +++ b/swagger_client/api_client.py @@ -0,0 +1,627 @@ +# coding: utf-8 +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import datetime +import json +import mimetypes +from multiprocessing.pool import ThreadPool +import os +import re +import tempfile + +# python 2 and python 3 compatibility library +import six +from six.moves.urllib.parse import quote + +from swagger_client.configuration import Configuration +import swagger_client.models +from swagger_client import rest + + +class ApiClient(object): + """Generic API client for Swagger client library builds. + + Swagger generic API client. This client handles the client- + server communication, and is invariant across implementations. Specifics of + the methods and models for each application are generated from the Swagger + templates. + + NOTE: This class is auto generated by the swagger code generator program. + Ref: https://github.com/swagger-api/swagger-codegen + Do not edit the class manually. + + :param configuration: .Configuration object for this client + :param header_name: a header to pass when making calls to the API. + :param header_value: a header value to pass when making calls to + the API. + :param cookie: a cookie to include in the header when making calls + to the API + """ + + PRIMITIVE_TYPES = (float, bool, bytes, six.text_type) + six.integer_types + NATIVE_TYPES_MAPPING = { + 'int': int, + 'long': int if six.PY3 else long, # noqa: F821 + 'float': float, + 'str': str, + 'bool': bool, + 'date': datetime.date, + 'datetime': datetime.datetime, + 'object': object, + } + + def __init__(self, configuration=None, header_name=None, header_value=None, + cookie=None): + if configuration is None: + configuration = Configuration() + self.configuration = configuration + + self.pool = ThreadPool() + self.rest_client = rest.RESTClientObject(configuration) + self.default_headers = {} + if header_name is not None: + self.default_headers[header_name] = header_value + self.cookie = cookie + # Set default User-Agent. + self.user_agent = 'Swagger-Codegen/1.0.0/python' + + def __del__(self): + self.pool.close() + self.pool.join() + + @property + def user_agent(self): + """User agent for this API client""" + return self.default_headers['User-Agent'] + + @user_agent.setter + def user_agent(self, value): + self.default_headers['User-Agent'] = value + + def set_default_header(self, header_name, header_value): + self.default_headers[header_name] = header_value + + def __call_api( + self, resource_path, method, path_params=None, + query_params=None, header_params=None, body=None, post_params=None, + files=None, response_type=None, auth_settings=None, + _return_http_data_only=None, collection_formats=None, + _preload_content=True, _request_timeout=None): + + config = self.configuration + + # header parameters + header_params = header_params or {} + header_params.update(self.default_headers) + if self.cookie: + header_params['Cookie'] = self.cookie + if header_params: + header_params = self.sanitize_for_serialization(header_params) + header_params = dict(self.parameters_to_tuples(header_params, + collection_formats)) + + # path parameters + if path_params: + path_params = self.sanitize_for_serialization(path_params) + path_params = self.parameters_to_tuples(path_params, + collection_formats) + for k, v in path_params: + # specified safe chars, encode everything + resource_path = resource_path.replace( + '{%s}' % k, + quote(str(v), safe=config.safe_chars_for_path_param) + ) + + # query parameters + if query_params: + query_params = self.sanitize_for_serialization(query_params) + query_params = self.parameters_to_tuples(query_params, + collection_formats) + + # post parameters + if post_params or files: + post_params = self.prepare_post_parameters(post_params, files) + post_params = self.sanitize_for_serialization(post_params) + post_params = self.parameters_to_tuples(post_params, + collection_formats) + + # auth setting + self.update_params_for_auth(header_params, query_params, auth_settings) + + # body + if body: + body = self.sanitize_for_serialization(body) + + # request url + url = self.configuration.host + resource_path + + # perform request and return response + response_data = self.request( + method, url, query_params=query_params, headers=header_params, + post_params=post_params, body=body, + _preload_content=_preload_content, + _request_timeout=_request_timeout) + + self.last_response = response_data + + return_data = response_data + if _preload_content: + # deserialize response data + if response_type: + return_data = self.deserialize(response_data, response_type) + else: + return_data = None + + if _return_http_data_only: + return (return_data) + else: + return (return_data, response_data.status, + response_data.getheaders()) + + def sanitize_for_serialization(self, obj): + """Builds a JSON POST object. + + If obj is None, return None. + If obj is str, int, long, float, bool, return directly. + If obj is datetime.datetime, datetime.date + convert to string in iso8601 format. + If obj is list, sanitize each element in the list. + If obj is dict, return the dict. + If obj is swagger model, return the properties dict. + + :param obj: The data to serialize. + :return: The serialized form of data. + """ + if obj is None: + return None + elif isinstance(obj, self.PRIMITIVE_TYPES): + return obj + elif isinstance(obj, list): + return [self.sanitize_for_serialization(sub_obj) + for sub_obj in obj] + elif isinstance(obj, tuple): + return tuple(self.sanitize_for_serialization(sub_obj) + for sub_obj in obj) + elif isinstance(obj, (datetime.datetime, datetime.date)): + return obj.isoformat() + + if isinstance(obj, dict): + obj_dict = obj + else: + # Convert model obj to dict except + # attributes `swagger_types`, `attribute_map` + # and attributes which value is not None. + # Convert attribute name to json key in + # model definition for request. + obj_dict = {obj.attribute_map[attr]: getattr(obj, attr) + for attr, _ in six.iteritems(obj.swagger_types) + if getattr(obj, attr) is not None} + + return {key: self.sanitize_for_serialization(val) + for key, val in six.iteritems(obj_dict)} + + def deserialize(self, response, response_type): + """Deserializes response into an object. + + :param response: RESTResponse object to be deserialized. + :param response_type: class literal for + deserialized object, or string of class name. + + :return: deserialized object. + """ + # handle file downloading + # save response body into a tmp file and return the instance + if response_type == "file": + return self.__deserialize_file(response) + + # fetch data from response object + try: + data = json.loads(response.data) + except ValueError: + data = response.data + + return self.__deserialize(data, response_type) + + def __deserialize(self, data, klass): + """Deserializes dict, list, str into an object. + + :param data: dict, list or str. + :param klass: class literal, or string of class name. + + :return: object. + """ + if data is None: + return None + + if type(klass) == str: + if klass.startswith('list['): + sub_kls = re.match('list\[(.*)\]', klass).group(1) + return [self.__deserialize(sub_data, sub_kls) + for sub_data in data] + + if klass.startswith('dict('): + sub_kls = re.match('dict\(([^,]*), (.*)\)', klass).group(2) + return {k: self.__deserialize(v, sub_kls) + for k, v in six.iteritems(data)} + + # convert str to class + if klass in self.NATIVE_TYPES_MAPPING: + klass = self.NATIVE_TYPES_MAPPING[klass] + else: + klass = getattr(swagger_client.models, klass) + + if klass in self.PRIMITIVE_TYPES: + return self.__deserialize_primitive(data, klass) + elif klass == object: + return self.__deserialize_object(data) + elif klass == datetime.date: + return self.__deserialize_date(data) + elif klass == datetime.datetime: + return self.__deserialize_datatime(data) + else: + return self.__deserialize_model(data, klass) + + def call_api(self, resource_path, method, + path_params=None, query_params=None, header_params=None, + body=None, post_params=None, files=None, + response_type=None, auth_settings=None, async_req=None, + _return_http_data_only=None, collection_formats=None, + _preload_content=True, _request_timeout=None): + """Makes the HTTP request (synchronous) and returns deserialized data. + + To make an async request, set the async_req parameter. + + :param resource_path: Path to method endpoint. + :param method: Method to call. + :param path_params: Path parameters in the url. + :param query_params: Query parameters in the url. + :param header_params: Header parameters to be + placed in the request header. + :param body: Request body. + :param post_params dict: Request post form parameters, + for `application/x-www-form-urlencoded`, `multipart/form-data`. + :param auth_settings list: Auth Settings names for the request. + :param response: Response data type. + :param files dict: key -> filename, value -> filepath, + for `multipart/form-data`. + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param collection_formats: dict of collection formats for path, query, + header, and post parameters. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: + If async_req parameter is True, + the request will be called asynchronously. + The method will return the request thread. + If parameter async_req is False or missing, + then the method will return the response directly. + """ + if not async_req: + return self.__call_api(resource_path, method, + path_params, query_params, header_params, + body, post_params, files, + response_type, auth_settings, + _return_http_data_only, collection_formats, + _preload_content, _request_timeout) + else: + thread = self.pool.apply_async(self.__call_api, (resource_path, + method, path_params, query_params, + header_params, body, + post_params, files, + response_type, auth_settings, + _return_http_data_only, + collection_formats, + _preload_content, _request_timeout)) + return thread + + def request(self, method, url, query_params=None, headers=None, + post_params=None, body=None, _preload_content=True, + _request_timeout=None): + """Makes the HTTP request using RESTClient.""" + if method == "GET": + return self.rest_client.GET(url, + query_params=query_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + headers=headers) + elif method == "HEAD": + return self.rest_client.HEAD(url, + query_params=query_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + headers=headers) + elif method == "OPTIONS": + return self.rest_client.OPTIONS(url, + query_params=query_params, + headers=headers, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + elif method == "POST": + return self.rest_client.POST(url, + query_params=query_params, + headers=headers, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + elif method == "PUT": + return self.rest_client.PUT(url, + query_params=query_params, + headers=headers, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + elif method == "PATCH": + return self.rest_client.PATCH(url, + query_params=query_params, + headers=headers, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + elif method == "DELETE": + return self.rest_client.DELETE(url, + query_params=query_params, + headers=headers, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + else: + raise ValueError( + "http method must be `GET`, `HEAD`, `OPTIONS`," + " `POST`, `PATCH`, `PUT` or `DELETE`." + ) + + def parameters_to_tuples(self, params, collection_formats): + """Get parameters as list of tuples, formatting collections. + + :param params: Parameters as dict or list of two-tuples + :param dict collection_formats: Parameter collection formats + :return: Parameters as list of tuples, collections formatted + """ + new_params = [] + if collection_formats is None: + collection_formats = {} + for k, v in six.iteritems(params) if isinstance(params, dict) else params: # noqa: E501 + if k in collection_formats: + collection_format = collection_formats[k] + if collection_format == 'multi': + new_params.extend((k, value) for value in v) + else: + if collection_format == 'ssv': + delimiter = ' ' + elif collection_format == 'tsv': + delimiter = '\t' + elif collection_format == 'pipes': + delimiter = '|' + else: # csv is the default + delimiter = ',' + new_params.append( + (k, delimiter.join(str(value) for value in v))) + else: + new_params.append((k, v)) + return new_params + + def prepare_post_parameters(self, post_params=None, files=None): + """Builds form parameters. + + :param post_params: Normal form parameters. + :param files: File parameters. + :return: Form parameters with files. + """ + params = [] + + if post_params: + params = post_params + + if files: + for k, v in six.iteritems(files): + if not v: + continue + file_names = v if type(v) is list else [v] + for n in file_names: + with open(n, 'rb') as f: + filename = os.path.basename(f.name) + filedata = f.read() + mimetype = (mimetypes.guess_type(filename)[0] or + 'application/octet-stream') + params.append( + tuple([k, tuple([filename, filedata, mimetype])])) + + return params + + def select_header_accept(self, accepts): + """Returns `Accept` based on an array of accepts provided. + + :param accepts: List of headers. + :return: Accept (e.g. application/json). + """ + if not accepts: + return + + accepts = [x.lower() for x in accepts] + + if 'application/json' in accepts: + return 'application/json' + else: + return ', '.join(accepts) + + def select_header_content_type(self, content_types): + """Returns `Content-Type` based on an array of content_types provided. + + :param content_types: List of content-types. + :return: Content-Type (e.g. application/json). + """ + if not content_types: + return 'application/json' + + content_types = [x.lower() for x in content_types] + + if 'application/json' in content_types or '*/*' in content_types: + return 'application/json' + else: + return content_types[0] + + def update_params_for_auth(self, headers, querys, auth_settings): + """Updates header and query params based on authentication setting. + + :param headers: Header parameters dict to be updated. + :param querys: Query parameters tuple list to be updated. + :param auth_settings: Authentication setting identifiers list. + """ + if not auth_settings: + return + + for auth in auth_settings: + auth_setting = self.configuration.auth_settings().get(auth) + if auth_setting: + if not auth_setting['value']: + continue + elif auth_setting['in'] == 'header': + headers[auth_setting['key']] = auth_setting['value'] + elif auth_setting['in'] == 'query': + querys.append((auth_setting['key'], auth_setting['value'])) + else: + raise ValueError( + 'Authentication token must be in `query` or `header`' + ) + + def __deserialize_file(self, response): + """Deserializes body to file + + Saves response body into a file in a temporary folder, + using the filename from the `Content-Disposition` header if provided. + + :param response: RESTResponse. + :return: file path. + """ + fd, path = tempfile.mkstemp(dir=self.configuration.temp_folder_path) + os.close(fd) + os.remove(path) + + content_disposition = response.getheader("Content-Disposition") + if content_disposition: + filename = re.search(r'filename=[\'"]?([^\'"\s]+)[\'"]?', + content_disposition).group(1) + path = os.path.join(os.path.dirname(path), filename) + + with open(path, "wb") as f: + f.write(response.data) + + return path + + def __deserialize_primitive(self, data, klass): + """Deserializes string to primitive type. + + :param data: str. + :param klass: class literal. + + :return: int, long, float, str, bool. + """ + try: + return klass(data) + except UnicodeEncodeError: + return six.text_type(data) + except TypeError: + return data + + def __deserialize_object(self, value): + """Return a original value. + + :return: object. + """ + return value + + def __deserialize_date(self, string): + """Deserializes string to date. + + :param string: str. + :return: date. + """ + try: + from dateutil.parser import parse + return parse(string).date() + except ImportError: + return string + except ValueError: + raise rest.ApiException( + status=0, + reason="Failed to parse `{0}` as date object".format(string) + ) + + def __deserialize_datatime(self, string): + """Deserializes string to datetime. + + The string should be in iso8601 datetime format. + + :param string: str. + :return: datetime. + """ + try: + from dateutil.parser import parse + return parse(string) + except ImportError: + return string + except ValueError: + raise rest.ApiException( + status=0, + reason=( + "Failed to parse `{0}` as datetime object" + .format(string) + ) + ) + + def __deserialize_model(self, data, klass): + """Deserializes list or dict to model. + + :param data: dict, list. + :param klass: class literal. + :return: model object. + """ + + if not klass.swagger_types and not hasattr(klass, + 'get_real_child_model'): + return data + + kwargs = {} + if klass.swagger_types is not None: + for attr, attr_type in six.iteritems(klass.swagger_types): + if (data is not None and + klass.attribute_map[attr] in data and + isinstance(data, (list, dict))): + value = data[klass.attribute_map[attr]] + kwargs[attr] = self.__deserialize(value, attr_type) + + instance = klass(**kwargs) + + if (isinstance(instance, dict) and + klass.swagger_types is not None and + isinstance(data, dict)): + for key, value in data.items(): + if key not in klass.swagger_types: + instance[key] = value + if hasattr(instance, 'get_real_child_model'): + klass_name = instance.get_real_child_model(data) + if klass_name: + instance = self.__deserialize(data, klass_name) + return instance diff --git a/swagger_client/configuration.py b/swagger_client/configuration.py new file mode 100644 index 0000000..c574c2b --- /dev/null +++ b/swagger_client/configuration.py @@ -0,0 +1,247 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import copy +import logging +import multiprocessing +import sys +import urllib3 + +import six +from six.moves import http_client as httplib + + +class TypeWithDefault(type): + def __init__(cls, name, bases, dct): + super(TypeWithDefault, cls).__init__(name, bases, dct) + cls._default = None + + def __call__(cls): + if cls._default is None: + cls._default = type.__call__(cls) + return copy.copy(cls._default) + + def set_default(cls, default): + cls._default = copy.copy(default) + + +class Configuration(six.with_metaclass(TypeWithDefault, object)): + """NOTE: This class is auto generated by the swagger code generator program. + + Ref: https://github.com/swagger-api/swagger-codegen + Do not edit the class manually. + """ + + def __init__(self): + """Constructor""" + # Default Base url + self.host = "https://teamcity.ptsecurity.ru" + # Temp file folder for downloading files + self.temp_folder_path = None + + # Authentication Settings + # dict to store API key(s) + self.api_key = {} + # dict to store API prefix (e.g. Bearer) + self.api_key_prefix = {} + # Username for HTTP basic authentication + self.username = "" + # Password for HTTP basic authentication + self.password = "" + + # Logging Settings + self.logger = {} + self.logger["package_logger"] = logging.getLogger("swagger_client") + self.logger["urllib3_logger"] = logging.getLogger("urllib3") + # Log format + self.logger_format = '%(asctime)s %(levelname)s %(message)s' + # Log stream handler + self.logger_stream_handler = None + # Log file handler + self.logger_file_handler = None + # Debug file location + self.logger_file = None + # Debug switch + self.debug = False + + # SSL/TLS verification + # Set this to false to skip verifying SSL certificate when calling API + # from https server. + self.verify_ssl = True + # Set this to customize the certificate file to verify the peer. + self.ssl_ca_cert = None + # client certificate file + self.cert_file = None + # client key file + self.key_file = None + # Set this to True/False to enable/disable SSL hostname verification. + self.assert_hostname = None + + # urllib3 connection pool's maximum number of connections saved + # per pool. urllib3 uses 1 connection as default value, but this is + # not the best value when you are making a lot of possibly parallel + # requests to the same host, which is often the case here. + # cpu_count * 5 is used as default value to increase performance. + self.connection_pool_maxsize = multiprocessing.cpu_count() * 5 + + # Proxy URL + self.proxy = None + # Safe chars for path_param + self.safe_chars_for_path_param = '' + + @property + def logger_file(self): + """The logger file. + + If the logger_file is None, then add stream handler and remove file + handler. Otherwise, add file handler and remove stream handler. + + :param value: The logger_file path. + :type: str + """ + return self.__logger_file + + @logger_file.setter + def logger_file(self, value): + """The logger file. + + If the logger_file is None, then add stream handler and remove file + handler. Otherwise, add file handler and remove stream handler. + + :param value: The logger_file path. + :type: str + """ + self.__logger_file = value + if self.__logger_file: + # If set logging file, + # then add file handler and remove stream handler. + self.logger_file_handler = logging.FileHandler(self.__logger_file) + self.logger_file_handler.setFormatter(self.logger_formatter) + for _, logger in six.iteritems(self.logger): + logger.addHandler(self.logger_file_handler) + if self.logger_stream_handler: + logger.removeHandler(self.logger_stream_handler) + else: + # If not set logging file, + # then add stream handler and remove file handler. + self.logger_stream_handler = logging.StreamHandler() + self.logger_stream_handler.setFormatter(self.logger_formatter) + for _, logger in six.iteritems(self.logger): + logger.addHandler(self.logger_stream_handler) + if self.logger_file_handler: + logger.removeHandler(self.logger_file_handler) + + @property + def debug(self): + """Debug status + + :param value: The debug status, True or False. + :type: bool + """ + return self.__debug + + @debug.setter + def debug(self, value): + """Debug status + + :param value: The debug status, True or False. + :type: bool + """ + self.__debug = value + if self.__debug: + # if debug status is True, turn on debug logging + for _, logger in six.iteritems(self.logger): + logger.setLevel(logging.DEBUG) + # turn on httplib debug + httplib.HTTPConnection.debuglevel = 1 + else: + # if debug status is False, turn off debug logging, + # setting log level to default `logging.WARNING` + for _, logger in six.iteritems(self.logger): + logger.setLevel(logging.WARNING) + # turn off httplib debug + httplib.HTTPConnection.debuglevel = 0 + + @property + def logger_format(self): + """The logger format. + + The logger_formatter will be updated when sets logger_format. + + :param value: The format string. + :type: str + """ + return self.__logger_format + + @logger_format.setter + def logger_format(self, value): + """The logger format. + + The logger_formatter will be updated when sets logger_format. + + :param value: The format string. + :type: str + """ + self.__logger_format = value + self.logger_formatter = logging.Formatter(self.__logger_format) + + def get_api_key_with_prefix(self, identifier): + """Gets API key (with prefix if set). + + :param identifier: The identifier of apiKey. + :return: The token for api key authentication. + """ + if (self.api_key.get(identifier) and + self.api_key_prefix.get(identifier)): + return self.api_key_prefix[identifier] + ' ' + self.api_key[identifier] # noqa: E501 + elif self.api_key.get(identifier): + return self.api_key[identifier] + + def get_basic_auth_token(self): + """Gets HTTP basic authentication header (string). + + :return: The token for basic HTTP authentication. + """ + return urllib3.util.make_headers( + basic_auth=self.username + ':' + self.password + ).get('authorization') + + def auth_settings(self): + """Gets Auth Settings dict for api client. + + :return: The Auth Settings information dict. + """ + return { + 'Basic': + { + 'type': 'basic', + 'in': 'header', + 'key': 'Authorization', + 'value': self.get_basic_auth_token() + }, + + } + + def to_debug_report(self): + """Gets the essential information for debugging. + + :return: The report for debugging. + """ + return "Python SDK Debug Report:\n"\ + "OS: {env}\n"\ + "Python Version: {pyversion}\n"\ + "Version of the API: 10.0\n"\ + "SDK Package Version: 1.0.0".\ + format(env=sys.platform, pyversion=sys.version) diff --git a/swagger_client/models/__init__.py b/swagger_client/models/__init__.py new file mode 100644 index 0000000..abc5cf5 --- /dev/null +++ b/swagger_client/models/__init__.py @@ -0,0 +1,129 @@ +# coding: utf-8 + +# flake8: noqa +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +# import models into model package +from swagger_client.models.agent import Agent +from swagger_client.models.agent_pool import AgentPool +from swagger_client.models.agent_pools import AgentPools +from swagger_client.models.agent_requirement import AgentRequirement +from swagger_client.models.agent_requirements import AgentRequirements +from swagger_client.models.agents import Agents +from swagger_client.models.artifact_dependencies import ArtifactDependencies +from swagger_client.models.artifact_dependency import ArtifactDependency +from swagger_client.models.authorized_info import AuthorizedInfo +from swagger_client.models.backup_process import BackupProcess +from swagger_client.models.backup_process_info import BackupProcessInfo +from swagger_client.models.backup_process_manager import BackupProcessManager +from swagger_client.models.branch import Branch +from swagger_client.models.branch_version import BranchVersion +from swagger_client.models.branches import Branches +from swagger_client.models.build import Build +from swagger_client.models.build_cancel_request import BuildCancelRequest +from swagger_client.models.build_triggering_options import BuildTriggeringOptions +from swagger_client.models.build_type import BuildType +from swagger_client.models.build_types import BuildTypes +from swagger_client.models.builds import Builds +from swagger_client.models.change import Change +from swagger_client.models.changes import Changes +from swagger_client.models.comment import Comment +from swagger_client.models.compatibilities import Compatibilities +from swagger_client.models.compatibility import Compatibility +from swagger_client.models.datas import Datas +from swagger_client.models.enabled_info import EnabledInfo +from swagger_client.models.entries import Entries +from swagger_client.models.entry import Entry +from swagger_client.models.exception import Exception +from swagger_client.models.feature import Feature +from swagger_client.models.features import Features +from swagger_client.models.federation_server import FederationServer +from swagger_client.models.file import File +from swagger_client.models.file_change import FileChange +from swagger_client.models.file_changes import FileChanges +from swagger_client.models.files import Files +from swagger_client.models.group import Group +from swagger_client.models.groups import Groups +from swagger_client.models.href import Href +from swagger_client.models.investigation import Investigation +from swagger_client.models.investigations import Investigations +from swagger_client.models.issue import Issue +from swagger_client.models.issue_usage import IssueUsage +from swagger_client.models.issues import Issues +from swagger_client.models.issues_usages import IssuesUsages +from swagger_client.models.items import Items +from swagger_client.models.license_key import LicenseKey +from swagger_client.models.license_keys import LicenseKeys +from swagger_client.models.licensing_data import LicensingData +from swagger_client.models.link import Link +from swagger_client.models.links import Links +from swagger_client.models.meta_data import MetaData +from swagger_client.models.model_property import ModelProperty +from swagger_client.models.mute import Mute +from swagger_client.models.mutes import Mutes +from swagger_client.models.new_build_type_description import NewBuildTypeDescription +from swagger_client.models.new_project_description import NewProjectDescription +from swagger_client.models.plugin import Plugin +from swagger_client.models.plugins import Plugins +from swagger_client.models.problem import Problem +from swagger_client.models.problem_occurrence import ProblemOccurrence +from swagger_client.models.problem_occurrences import ProblemOccurrences +from swagger_client.models.problem_scope import ProblemScope +from swagger_client.models.problem_target import ProblemTarget +from swagger_client.models.problems import Problems +from swagger_client.models.progress_info import ProgressInfo +from swagger_client.models.project import Project +from swagger_client.models.project_feature import ProjectFeature +from swagger_client.models.project_features import ProjectFeatures +from swagger_client.models.projects import Projects +from swagger_client.models.properties import Properties +from swagger_client.models.repository_state import RepositoryState +from swagger_client.models.requirements import Requirements +from swagger_client.models.resolution import Resolution +from swagger_client.models.revision import Revision +from swagger_client.models.revisions import Revisions +from swagger_client.models.role import Role +from swagger_client.models.roles import Roles +from swagger_client.models.server import Server +from swagger_client.models.servers import Servers +from swagger_client.models.session import Session +from swagger_client.models.sessions import Sessions +from swagger_client.models.snapshot_dependencies import SnapshotDependencies +from swagger_client.models.snapshot_dependency import SnapshotDependency +from swagger_client.models.stack_trace_element import StackTraceElement +from swagger_client.models.state_field import StateField +from swagger_client.models.step import Step +from swagger_client.models.steps import Steps +from swagger_client.models.tag import Tag +from swagger_client.models.tags import Tags +from swagger_client.models.test import Test +from swagger_client.models.test_occurrence import TestOccurrence +from swagger_client.models.test_occurrences import TestOccurrences +from swagger_client.models.tests import Tests +from swagger_client.models.throwable import Throwable +from swagger_client.models.trigger import Trigger +from swagger_client.models.triggered_by import TriggeredBy +from swagger_client.models.triggers import Triggers +from swagger_client.models.type import Type +from swagger_client.models.user import User +from swagger_client.models.users import Users +from swagger_client.models.vcs_check_status import VcsCheckStatus +from swagger_client.models.vcs_labeling import VcsLabeling +from swagger_client.models.vcs_root import VcsRoot +from swagger_client.models.vcs_root_entries import VcsRootEntries +from swagger_client.models.vcs_root_entry import VcsRootEntry +from swagger_client.models.vcs_root_instance import VcsRootInstance +from swagger_client.models.vcs_root_instances import VcsRootInstances +from swagger_client.models.vcs_roots import VcsRoots +from swagger_client.models.vcs_status import VcsStatus diff --git a/swagger_client/models/agent.py b/swagger_client/models/agent.py new file mode 100644 index 0000000..ede7959 --- /dev/null +++ b/swagger_client/models/agent.py @@ -0,0 +1,538 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +# from swagger_client.models.agent_pool import AgentPool # noqa: F401,E501 +from swagger_client.models.authorized_info import AuthorizedInfo # noqa: F401,E501 +from swagger_client.models.build_types import BuildTypes # noqa: F401,E501 +from swagger_client.models.compatibilities import Compatibilities # noqa: F401,E501 +from swagger_client.models.enabled_info import EnabledInfo # noqa: F401,E501 +from swagger_client.models.properties import Properties # noqa: F401,E501 + + +class Agent(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'authorized': 'bool', + 'authorized_info': 'AuthorizedInfo', + 'compatible_build_types': 'BuildTypes', + 'connected': 'bool', + 'enabled': 'bool', + 'enabled_info': 'EnabledInfo', + 'href': 'str', + 'id': 'int', + 'incompatible_build_types': 'Compatibilities', + 'ip': 'str', + 'locator': 'str', + 'name': 'str', + 'pool': 'AgentPool', + 'properties': 'Properties', + 'protocol': 'str', + 'type_id': 'int', + 'uptodate': 'bool' + } + + attribute_map = { + 'authorized': 'authorized', + 'authorized_info': 'authorizedInfo', + 'compatible_build_types': 'compatibleBuildTypes', + 'connected': 'connected', + 'enabled': 'enabled', + 'enabled_info': 'enabledInfo', + 'href': 'href', + 'id': 'id', + 'incompatible_build_types': 'incompatibleBuildTypes', + 'ip': 'ip', + 'locator': 'locator', + 'name': 'name', + 'pool': 'pool', + 'properties': 'properties', + 'protocol': 'protocol', + 'type_id': 'typeId', + 'uptodate': 'uptodate' + } + + def __init__(self, authorized=False, authorized_info=None, compatible_build_types=None, connected=False, enabled=False, enabled_info=None, href=None, id=None, incompatible_build_types=None, ip=None, locator=None, name=None, pool=None, properties=None, protocol=None, type_id=None, uptodate=False): # noqa: E501 + """Agent - a model defined in Swagger""" # noqa: E501 + + self._authorized = None + self._authorized_info = None + self._compatible_build_types = None + self._connected = None + self._enabled = None + self._enabled_info = None + self._href = None + self._id = None + self._incompatible_build_types = None + self._ip = None + self._locator = None + self._name = None + self._pool = None + self._properties = None + self._protocol = None + self._type_id = None + self._uptodate = None + self.discriminator = None + + if authorized is not None: + self.authorized = authorized + if authorized_info is not None: + self.authorized_info = authorized_info + if compatible_build_types is not None: + self.compatible_build_types = compatible_build_types + if connected is not None: + self.connected = connected + if enabled is not None: + self.enabled = enabled + if enabled_info is not None: + self.enabled_info = enabled_info + if href is not None: + self.href = href + if id is not None: + self.id = id + if incompatible_build_types is not None: + self.incompatible_build_types = incompatible_build_types + if ip is not None: + self.ip = ip + if locator is not None: + self.locator = locator + if name is not None: + self.name = name + if pool is not None: + self.pool = pool + if properties is not None: + self.properties = properties + if protocol is not None: + self.protocol = protocol + if type_id is not None: + self.type_id = type_id + if uptodate is not None: + self.uptodate = uptodate + + @property + def authorized(self): + """Gets the authorized of this Agent. # noqa: E501 + + + :return: The authorized of this Agent. # noqa: E501 + :rtype: bool + """ + return self._authorized + + @authorized.setter + def authorized(self, authorized): + """Sets the authorized of this Agent. + + + :param authorized: The authorized of this Agent. # noqa: E501 + :type: bool + """ + + self._authorized = authorized + + @property + def authorized_info(self): + """Gets the authorized_info of this Agent. # noqa: E501 + + + :return: The authorized_info of this Agent. # noqa: E501 + :rtype: AuthorizedInfo + """ + return self._authorized_info + + @authorized_info.setter + def authorized_info(self, authorized_info): + """Sets the authorized_info of this Agent. + + + :param authorized_info: The authorized_info of this Agent. # noqa: E501 + :type: AuthorizedInfo + """ + + self._authorized_info = authorized_info + + @property + def compatible_build_types(self): + """Gets the compatible_build_types of this Agent. # noqa: E501 + + + :return: The compatible_build_types of this Agent. # noqa: E501 + :rtype: BuildTypes + """ + return self._compatible_build_types + + @compatible_build_types.setter + def compatible_build_types(self, compatible_build_types): + """Sets the compatible_build_types of this Agent. + + + :param compatible_build_types: The compatible_build_types of this Agent. # noqa: E501 + :type: BuildTypes + """ + + self._compatible_build_types = compatible_build_types + + @property + def connected(self): + """Gets the connected of this Agent. # noqa: E501 + + + :return: The connected of this Agent. # noqa: E501 + :rtype: bool + """ + return self._connected + + @connected.setter + def connected(self, connected): + """Sets the connected of this Agent. + + + :param connected: The connected of this Agent. # noqa: E501 + :type: bool + """ + + self._connected = connected + + @property + def enabled(self): + """Gets the enabled of this Agent. # noqa: E501 + + + :return: The enabled of this Agent. # noqa: E501 + :rtype: bool + """ + return self._enabled + + @enabled.setter + def enabled(self, enabled): + """Sets the enabled of this Agent. + + + :param enabled: The enabled of this Agent. # noqa: E501 + :type: bool + """ + + self._enabled = enabled + + @property + def enabled_info(self): + """Gets the enabled_info of this Agent. # noqa: E501 + + + :return: The enabled_info of this Agent. # noqa: E501 + :rtype: EnabledInfo + """ + return self._enabled_info + + @enabled_info.setter + def enabled_info(self, enabled_info): + """Sets the enabled_info of this Agent. + + + :param enabled_info: The enabled_info of this Agent. # noqa: E501 + :type: EnabledInfo + """ + + self._enabled_info = enabled_info + + @property + def href(self): + """Gets the href of this Agent. # noqa: E501 + + + :return: The href of this Agent. # noqa: E501 + :rtype: str + """ + return self._href + + @href.setter + def href(self, href): + """Sets the href of this Agent. + + + :param href: The href of this Agent. # noqa: E501 + :type: str + """ + + self._href = href + + @property + def id(self): + """Gets the id of this Agent. # noqa: E501 + + + :return: The id of this Agent. # noqa: E501 + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this Agent. + + + :param id: The id of this Agent. # noqa: E501 + :type: int + """ + + self._id = id + + @property + def incompatible_build_types(self): + """Gets the incompatible_build_types of this Agent. # noqa: E501 + + + :return: The incompatible_build_types of this Agent. # noqa: E501 + :rtype: Compatibilities + """ + return self._incompatible_build_types + + @incompatible_build_types.setter + def incompatible_build_types(self, incompatible_build_types): + """Sets the incompatible_build_types of this Agent. + + + :param incompatible_build_types: The incompatible_build_types of this Agent. # noqa: E501 + :type: Compatibilities + """ + + self._incompatible_build_types = incompatible_build_types + + @property + def ip(self): + """Gets the ip of this Agent. # noqa: E501 + + + :return: The ip of this Agent. # noqa: E501 + :rtype: str + """ + return self._ip + + @ip.setter + def ip(self, ip): + """Sets the ip of this Agent. + + + :param ip: The ip of this Agent. # noqa: E501 + :type: str + """ + + self._ip = ip + + @property + def locator(self): + """Gets the locator of this Agent. # noqa: E501 + + + :return: The locator of this Agent. # noqa: E501 + :rtype: str + """ + return self._locator + + @locator.setter + def locator(self, locator): + """Sets the locator of this Agent. + + + :param locator: The locator of this Agent. # noqa: E501 + :type: str + """ + + self._locator = locator + + @property + def name(self): + """Gets the name of this Agent. # noqa: E501 + + + :return: The name of this Agent. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this Agent. + + + :param name: The name of this Agent. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def pool(self): + """Gets the pool of this Agent. # noqa: E501 + + + :return: The pool of this Agent. # noqa: E501 + :rtype: AgentPool + """ + return self._pool + + @pool.setter + def pool(self, pool): + """Sets the pool of this Agent. + + + :param pool: The pool of this Agent. # noqa: E501 + :type: AgentPool + """ + + self._pool = pool + + @property + def properties(self): + """Gets the properties of this Agent. # noqa: E501 + + + :return: The properties of this Agent. # noqa: E501 + :rtype: Properties + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this Agent. + + + :param properties: The properties of this Agent. # noqa: E501 + :type: Properties + """ + + self._properties = properties + + @property + def protocol(self): + """Gets the protocol of this Agent. # noqa: E501 + + + :return: The protocol of this Agent. # noqa: E501 + :rtype: str + """ + return self._protocol + + @protocol.setter + def protocol(self, protocol): + """Sets the protocol of this Agent. + + + :param protocol: The protocol of this Agent. # noqa: E501 + :type: str + """ + + self._protocol = protocol + + @property + def type_id(self): + """Gets the type_id of this Agent. # noqa: E501 + + + :return: The type_id of this Agent. # noqa: E501 + :rtype: int + """ + return self._type_id + + @type_id.setter + def type_id(self, type_id): + """Sets the type_id of this Agent. + + + :param type_id: The type_id of this Agent. # noqa: E501 + :type: int + """ + + self._type_id = type_id + + @property + def uptodate(self): + """Gets the uptodate of this Agent. # noqa: E501 + + + :return: The uptodate of this Agent. # noqa: E501 + :rtype: bool + """ + return self._uptodate + + @uptodate.setter + def uptodate(self, uptodate): + """Sets the uptodate of this Agent. + + + :param uptodate: The uptodate of this Agent. # noqa: E501 + :type: bool + """ + + self._uptodate = uptodate + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Agent, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Agent): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/agent_pool.py b/swagger_client/models/agent_pool.py new file mode 100644 index 0000000..e9c16a7 --- /dev/null +++ b/swagger_client/models/agent_pool.py @@ -0,0 +1,274 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.agents import Agents # noqa: F401,E501 +from swagger_client.models.projects import Projects # noqa: F401,E501 + + +class AgentPool(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'agents': 'Agents', + 'href': 'str', + 'id': 'int', + 'locator': 'str', + 'max_agents': 'int', + 'name': 'str', + 'projects': 'Projects' + } + + attribute_map = { + 'agents': 'agents', + 'href': 'href', + 'id': 'id', + 'locator': 'locator', + 'max_agents': 'maxAgents', + 'name': 'name', + 'projects': 'projects' + } + + def __init__(self, agents=None, href=None, id=None, locator=None, max_agents=None, name=None, projects=None): # noqa: E501 + """AgentPool - a model defined in Swagger""" # noqa: E501 + + self._agents = None + self._href = None + self._id = None + self._locator = None + self._max_agents = None + self._name = None + self._projects = None + self.discriminator = None + + if agents is not None: + self.agents = agents + if href is not None: + self.href = href + if id is not None: + self.id = id + if locator is not None: + self.locator = locator + if max_agents is not None: + self.max_agents = max_agents + if name is not None: + self.name = name + if projects is not None: + self.projects = projects + + @property + def agents(self): + """Gets the agents of this AgentPool. # noqa: E501 + + + :return: The agents of this AgentPool. # noqa: E501 + :rtype: Agents + """ + return self._agents + + @agents.setter + def agents(self, agents): + """Sets the agents of this AgentPool. + + + :param agents: The agents of this AgentPool. # noqa: E501 + :type: Agents + """ + + self._agents = agents + + @property + def href(self): + """Gets the href of this AgentPool. # noqa: E501 + + + :return: The href of this AgentPool. # noqa: E501 + :rtype: str + """ + return self._href + + @href.setter + def href(self, href): + """Sets the href of this AgentPool. + + + :param href: The href of this AgentPool. # noqa: E501 + :type: str + """ + + self._href = href + + @property + def id(self): + """Gets the id of this AgentPool. # noqa: E501 + + + :return: The id of this AgentPool. # noqa: E501 + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this AgentPool. + + + :param id: The id of this AgentPool. # noqa: E501 + :type: int + """ + + self._id = id + + @property + def locator(self): + """Gets the locator of this AgentPool. # noqa: E501 + + + :return: The locator of this AgentPool. # noqa: E501 + :rtype: str + """ + return self._locator + + @locator.setter + def locator(self, locator): + """Sets the locator of this AgentPool. + + + :param locator: The locator of this AgentPool. # noqa: E501 + :type: str + """ + + self._locator = locator + + @property + def max_agents(self): + """Gets the max_agents of this AgentPool. # noqa: E501 + + + :return: The max_agents of this AgentPool. # noqa: E501 + :rtype: int + """ + return self._max_agents + + @max_agents.setter + def max_agents(self, max_agents): + """Sets the max_agents of this AgentPool. + + + :param max_agents: The max_agents of this AgentPool. # noqa: E501 + :type: int + """ + + self._max_agents = max_agents + + @property + def name(self): + """Gets the name of this AgentPool. # noqa: E501 + + + :return: The name of this AgentPool. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this AgentPool. + + + :param name: The name of this AgentPool. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def projects(self): + """Gets the projects of this AgentPool. # noqa: E501 + + + :return: The projects of this AgentPool. # noqa: E501 + :rtype: Projects + """ + return self._projects + + @projects.setter + def projects(self, projects): + """Sets the projects of this AgentPool. + + + :param projects: The projects of this AgentPool. # noqa: E501 + :type: Projects + """ + + self._projects = projects + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AgentPool, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AgentPool): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/agent_pools.py b/swagger_client/models/agent_pools.py new file mode 100644 index 0000000..f892830 --- /dev/null +++ b/swagger_client/models/agent_pools.py @@ -0,0 +1,221 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.agent_pool import AgentPool # noqa: F401,E501 + + +class AgentPools(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'agent_pool': 'list[AgentPool]', + 'count': 'int', + 'href': 'str', + 'next_href': 'str', + 'prev_href': 'str' + } + + attribute_map = { + 'agent_pool': 'agentPool', + 'count': 'count', + 'href': 'href', + 'next_href': 'nextHref', + 'prev_href': 'prevHref' + } + + def __init__(self, agent_pool=None, count=None, href=None, next_href=None, prev_href=None): # noqa: E501 + """AgentPools - a model defined in Swagger""" # noqa: E501 + + self._agent_pool = None + self._count = None + self._href = None + self._next_href = None + self._prev_href = None + self.discriminator = None + + if agent_pool is not None: + self.agent_pool = agent_pool + if count is not None: + self.count = count + if href is not None: + self.href = href + if next_href is not None: + self.next_href = next_href + if prev_href is not None: + self.prev_href = prev_href + + @property + def agent_pool(self): + """Gets the agent_pool of this AgentPools. # noqa: E501 + + + :return: The agent_pool of this AgentPools. # noqa: E501 + :rtype: list[AgentPool] + """ + return self._agent_pool + + @agent_pool.setter + def agent_pool(self, agent_pool): + """Sets the agent_pool of this AgentPools. + + + :param agent_pool: The agent_pool of this AgentPools. # noqa: E501 + :type: list[AgentPool] + """ + + self._agent_pool = agent_pool + + @property + def count(self): + """Gets the count of this AgentPools. # noqa: E501 + + + :return: The count of this AgentPools. # noqa: E501 + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this AgentPools. + + + :param count: The count of this AgentPools. # noqa: E501 + :type: int + """ + + self._count = count + + @property + def href(self): + """Gets the href of this AgentPools. # noqa: E501 + + + :return: The href of this AgentPools. # noqa: E501 + :rtype: str + """ + return self._href + + @href.setter + def href(self, href): + """Sets the href of this AgentPools. + + + :param href: The href of this AgentPools. # noqa: E501 + :type: str + """ + + self._href = href + + @property + def next_href(self): + """Gets the next_href of this AgentPools. # noqa: E501 + + + :return: The next_href of this AgentPools. # noqa: E501 + :rtype: str + """ + return self._next_href + + @next_href.setter + def next_href(self, next_href): + """Sets the next_href of this AgentPools. + + + :param next_href: The next_href of this AgentPools. # noqa: E501 + :type: str + """ + + self._next_href = next_href + + @property + def prev_href(self): + """Gets the prev_href of this AgentPools. # noqa: E501 + + + :return: The prev_href of this AgentPools. # noqa: E501 + :rtype: str + """ + return self._prev_href + + @prev_href.setter + def prev_href(self, prev_href): + """Sets the prev_href of this AgentPools. + + + :param prev_href: The prev_href of this AgentPools. # noqa: E501 + :type: str + """ + + self._prev_href = prev_href + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AgentPools, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AgentPools): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/agent_requirement.py b/swagger_client/models/agent_requirement.py new file mode 100644 index 0000000..3c045e4 --- /dev/null +++ b/swagger_client/models/agent_requirement.py @@ -0,0 +1,273 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.properties import Properties # noqa: F401,E501 + + +class AgentRequirement(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'disabled': 'bool', + 'href': 'str', + 'id': 'str', + 'inherited': 'bool', + 'name': 'str', + 'properties': 'Properties', + 'type': 'str' + } + + attribute_map = { + 'disabled': 'disabled', + 'href': 'href', + 'id': 'id', + 'inherited': 'inherited', + 'name': 'name', + 'properties': 'properties', + 'type': 'type' + } + + def __init__(self, disabled=False, href=None, id=None, inherited=False, name=None, properties=None, type=None): # noqa: E501 + """AgentRequirement - a model defined in Swagger""" # noqa: E501 + + self._disabled = None + self._href = None + self._id = None + self._inherited = None + self._name = None + self._properties = None + self._type = None + self.discriminator = None + + if disabled is not None: + self.disabled = disabled + if href is not None: + self.href = href + if id is not None: + self.id = id + if inherited is not None: + self.inherited = inherited + if name is not None: + self.name = name + if properties is not None: + self.properties = properties + if type is not None: + self.type = type + + @property + def disabled(self): + """Gets the disabled of this AgentRequirement. # noqa: E501 + + + :return: The disabled of this AgentRequirement. # noqa: E501 + :rtype: bool + """ + return self._disabled + + @disabled.setter + def disabled(self, disabled): + """Sets the disabled of this AgentRequirement. + + + :param disabled: The disabled of this AgentRequirement. # noqa: E501 + :type: bool + """ + + self._disabled = disabled + + @property + def href(self): + """Gets the href of this AgentRequirement. # noqa: E501 + + + :return: The href of this AgentRequirement. # noqa: E501 + :rtype: str + """ + return self._href + + @href.setter + def href(self, href): + """Sets the href of this AgentRequirement. + + + :param href: The href of this AgentRequirement. # noqa: E501 + :type: str + """ + + self._href = href + + @property + def id(self): + """Gets the id of this AgentRequirement. # noqa: E501 + + + :return: The id of this AgentRequirement. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this AgentRequirement. + + + :param id: The id of this AgentRequirement. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def inherited(self): + """Gets the inherited of this AgentRequirement. # noqa: E501 + + + :return: The inherited of this AgentRequirement. # noqa: E501 + :rtype: bool + """ + return self._inherited + + @inherited.setter + def inherited(self, inherited): + """Sets the inherited of this AgentRequirement. + + + :param inherited: The inherited of this AgentRequirement. # noqa: E501 + :type: bool + """ + + self._inherited = inherited + + @property + def name(self): + """Gets the name of this AgentRequirement. # noqa: E501 + + + :return: The name of this AgentRequirement. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this AgentRequirement. + + + :param name: The name of this AgentRequirement. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def properties(self): + """Gets the properties of this AgentRequirement. # noqa: E501 + + + :return: The properties of this AgentRequirement. # noqa: E501 + :rtype: Properties + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this AgentRequirement. + + + :param properties: The properties of this AgentRequirement. # noqa: E501 + :type: Properties + """ + + self._properties = properties + + @property + def type(self): + """Gets the type of this AgentRequirement. # noqa: E501 + + + :return: The type of this AgentRequirement. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this AgentRequirement. + + + :param type: The type of this AgentRequirement. # noqa: E501 + :type: str + """ + + self._type = type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AgentRequirement, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AgentRequirement): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/agent_requirements.py b/swagger_client/models/agent_requirements.py new file mode 100644 index 0000000..a679c88 --- /dev/null +++ b/swagger_client/models/agent_requirements.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.agent_requirement import AgentRequirement # noqa: F401,E501 + + +class AgentRequirements(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'agent_requirement': 'list[AgentRequirement]', + 'count': 'int' + } + + attribute_map = { + 'agent_requirement': 'agent-requirement', + 'count': 'count' + } + + def __init__(self, agent_requirement=None, count=None): # noqa: E501 + """AgentRequirements - a model defined in Swagger""" # noqa: E501 + + self._agent_requirement = None + self._count = None + self.discriminator = None + + if agent_requirement is not None: + self.agent_requirement = agent_requirement + if count is not None: + self.count = count + + @property + def agent_requirement(self): + """Gets the agent_requirement of this AgentRequirements. # noqa: E501 + + + :return: The agent_requirement of this AgentRequirements. # noqa: E501 + :rtype: list[AgentRequirement] + """ + return self._agent_requirement + + @agent_requirement.setter + def agent_requirement(self, agent_requirement): + """Sets the agent_requirement of this AgentRequirements. + + + :param agent_requirement: The agent_requirement of this AgentRequirements. # noqa: E501 + :type: list[AgentRequirement] + """ + + self._agent_requirement = agent_requirement + + @property + def count(self): + """Gets the count of this AgentRequirements. # noqa: E501 + + + :return: The count of this AgentRequirements. # noqa: E501 + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this AgentRequirements. + + + :param count: The count of this AgentRequirements. # noqa: E501 + :type: int + """ + + self._count = count + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AgentRequirements, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AgentRequirements): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/agents.py b/swagger_client/models/agents.py new file mode 100644 index 0000000..a7c3c59 --- /dev/null +++ b/swagger_client/models/agents.py @@ -0,0 +1,221 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.agent import Agent # noqa: F401,E501 + + +class Agents(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'agent': 'list[Agent]', + 'count': 'int', + 'href': 'str', + 'next_href': 'str', + 'prev_href': 'str' + } + + attribute_map = { + 'agent': 'agent', + 'count': 'count', + 'href': 'href', + 'next_href': 'nextHref', + 'prev_href': 'prevHref' + } + + def __init__(self, agent=None, count=None, href=None, next_href=None, prev_href=None): # noqa: E501 + """Agents - a model defined in Swagger""" # noqa: E501 + + self._agent = None + self._count = None + self._href = None + self._next_href = None + self._prev_href = None + self.discriminator = None + + if agent is not None: + self.agent = agent + if count is not None: + self.count = count + if href is not None: + self.href = href + if next_href is not None: + self.next_href = next_href + if prev_href is not None: + self.prev_href = prev_href + + @property + def agent(self): + """Gets the agent of this Agents. # noqa: E501 + + + :return: The agent of this Agents. # noqa: E501 + :rtype: list[Agent] + """ + return self._agent + + @agent.setter + def agent(self, agent): + """Sets the agent of this Agents. + + + :param agent: The agent of this Agents. # noqa: E501 + :type: list[Agent] + """ + + self._agent = agent + + @property + def count(self): + """Gets the count of this Agents. # noqa: E501 + + + :return: The count of this Agents. # noqa: E501 + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this Agents. + + + :param count: The count of this Agents. # noqa: E501 + :type: int + """ + + self._count = count + + @property + def href(self): + """Gets the href of this Agents. # noqa: E501 + + + :return: The href of this Agents. # noqa: E501 + :rtype: str + """ + return self._href + + @href.setter + def href(self, href): + """Sets the href of this Agents. + + + :param href: The href of this Agents. # noqa: E501 + :type: str + """ + + self._href = href + + @property + def next_href(self): + """Gets the next_href of this Agents. # noqa: E501 + + + :return: The next_href of this Agents. # noqa: E501 + :rtype: str + """ + return self._next_href + + @next_href.setter + def next_href(self, next_href): + """Sets the next_href of this Agents. + + + :param next_href: The next_href of this Agents. # noqa: E501 + :type: str + """ + + self._next_href = next_href + + @property + def prev_href(self): + """Gets the prev_href of this Agents. # noqa: E501 + + + :return: The prev_href of this Agents. # noqa: E501 + :rtype: str + """ + return self._prev_href + + @prev_href.setter + def prev_href(self, prev_href): + """Sets the prev_href of this Agents. + + + :param prev_href: The prev_href of this Agents. # noqa: E501 + :type: str + """ + + self._prev_href = prev_href + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Agents, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Agents): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/artifact_dependencies.py b/swagger_client/models/artifact_dependencies.py new file mode 100644 index 0000000..10f1e7f --- /dev/null +++ b/swagger_client/models/artifact_dependencies.py @@ -0,0 +1,169 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.artifact_dependency import ArtifactDependency # noqa: F401,E501 + + +class ArtifactDependencies(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'artifact_dependency': 'list[ArtifactDependency]', + 'count': 'int', + 'replace': 'str' + } + + attribute_map = { + 'artifact_dependency': 'artifact-dependency', + 'count': 'count', + 'replace': 'replace' + } + + def __init__(self, artifact_dependency=None, count=None, replace=None): # noqa: E501 + """ArtifactDependencies - a model defined in Swagger""" # noqa: E501 + + self._artifact_dependency = None + self._count = None + self._replace = None + self.discriminator = None + + if artifact_dependency is not None: + self.artifact_dependency = artifact_dependency + if count is not None: + self.count = count + if replace is not None: + self.replace = replace + + @property + def artifact_dependency(self): + """Gets the artifact_dependency of this ArtifactDependencies. # noqa: E501 + + + :return: The artifact_dependency of this ArtifactDependencies. # noqa: E501 + :rtype: list[ArtifactDependency] + """ + return self._artifact_dependency + + @artifact_dependency.setter + def artifact_dependency(self, artifact_dependency): + """Sets the artifact_dependency of this ArtifactDependencies. + + + :param artifact_dependency: The artifact_dependency of this ArtifactDependencies. # noqa: E501 + :type: list[ArtifactDependency] + """ + + self._artifact_dependency = artifact_dependency + + @property + def count(self): + """Gets the count of this ArtifactDependencies. # noqa: E501 + + + :return: The count of this ArtifactDependencies. # noqa: E501 + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this ArtifactDependencies. + + + :param count: The count of this ArtifactDependencies. # noqa: E501 + :type: int + """ + + self._count = count + + @property + def replace(self): + """Gets the replace of this ArtifactDependencies. # noqa: E501 + + + :return: The replace of this ArtifactDependencies. # noqa: E501 + :rtype: str + """ + return self._replace + + @replace.setter + def replace(self, replace): + """Sets the replace of this ArtifactDependencies. + + + :param replace: The replace of this ArtifactDependencies. # noqa: E501 + :type: str + """ + + self._replace = replace + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ArtifactDependencies, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ArtifactDependencies): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/artifact_dependency.py b/swagger_client/models/artifact_dependency.py new file mode 100644 index 0000000..5d4ceb3 --- /dev/null +++ b/swagger_client/models/artifact_dependency.py @@ -0,0 +1,300 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.build_type import BuildType # noqa: F401,E501 +from swagger_client.models.properties import Properties # noqa: F401,E501 + + +class ArtifactDependency(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'disabled': 'bool', + 'href': 'str', + 'id': 'str', + 'inherited': 'bool', + 'name': 'str', + 'properties': 'Properties', + 'source_build_type': 'BuildType', + 'type': 'str' + } + + attribute_map = { + 'disabled': 'disabled', + 'href': 'href', + 'id': 'id', + 'inherited': 'inherited', + 'name': 'name', + 'properties': 'properties', + 'source_build_type': 'source-buildType', + 'type': 'type' + } + + def __init__(self, disabled=False, href=None, id=None, inherited=False, name=None, properties=None, source_build_type=None, type=None): # noqa: E501 + """ArtifactDependency - a model defined in Swagger""" # noqa: E501 + + self._disabled = None + self._href = None + self._id = None + self._inherited = None + self._name = None + self._properties = None + self._source_build_type = None + self._type = None + self.discriminator = None + + if disabled is not None: + self.disabled = disabled + if href is not None: + self.href = href + if id is not None: + self.id = id + if inherited is not None: + self.inherited = inherited + if name is not None: + self.name = name + if properties is not None: + self.properties = properties + if source_build_type is not None: + self.source_build_type = source_build_type + if type is not None: + self.type = type + + @property + def disabled(self): + """Gets the disabled of this ArtifactDependency. # noqa: E501 + + + :return: The disabled of this ArtifactDependency. # noqa: E501 + :rtype: bool + """ + return self._disabled + + @disabled.setter + def disabled(self, disabled): + """Sets the disabled of this ArtifactDependency. + + + :param disabled: The disabled of this ArtifactDependency. # noqa: E501 + :type: bool + """ + + self._disabled = disabled + + @property + def href(self): + """Gets the href of this ArtifactDependency. # noqa: E501 + + + :return: The href of this ArtifactDependency. # noqa: E501 + :rtype: str + """ + return self._href + + @href.setter + def href(self, href): + """Sets the href of this ArtifactDependency. + + + :param href: The href of this ArtifactDependency. # noqa: E501 + :type: str + """ + + self._href = href + + @property + def id(self): + """Gets the id of this ArtifactDependency. # noqa: E501 + + + :return: The id of this ArtifactDependency. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this ArtifactDependency. + + + :param id: The id of this ArtifactDependency. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def inherited(self): + """Gets the inherited of this ArtifactDependency. # noqa: E501 + + + :return: The inherited of this ArtifactDependency. # noqa: E501 + :rtype: bool + """ + return self._inherited + + @inherited.setter + def inherited(self, inherited): + """Sets the inherited of this ArtifactDependency. + + + :param inherited: The inherited of this ArtifactDependency. # noqa: E501 + :type: bool + """ + + self._inherited = inherited + + @property + def name(self): + """Gets the name of this ArtifactDependency. # noqa: E501 + + + :return: The name of this ArtifactDependency. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ArtifactDependency. + + + :param name: The name of this ArtifactDependency. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def properties(self): + """Gets the properties of this ArtifactDependency. # noqa: E501 + + + :return: The properties of this ArtifactDependency. # noqa: E501 + :rtype: Properties + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this ArtifactDependency. + + + :param properties: The properties of this ArtifactDependency. # noqa: E501 + :type: Properties + """ + + self._properties = properties + + @property + def source_build_type(self): + """Gets the source_build_type of this ArtifactDependency. # noqa: E501 + + + :return: The source_build_type of this ArtifactDependency. # noqa: E501 + :rtype: BuildType + """ + return self._source_build_type + + @source_build_type.setter + def source_build_type(self, source_build_type): + """Sets the source_build_type of this ArtifactDependency. + + + :param source_build_type: The source_build_type of this ArtifactDependency. # noqa: E501 + :type: BuildType + """ + + self._source_build_type = source_build_type + + @property + def type(self): + """Gets the type of this ArtifactDependency. # noqa: E501 + + + :return: The type of this ArtifactDependency. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this ArtifactDependency. + + + :param type: The type of this ArtifactDependency. # noqa: E501 + :type: str + """ + + self._type = type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ArtifactDependency, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ArtifactDependency): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/authorized_info.py b/swagger_client/models/authorized_info.py new file mode 100644 index 0000000..d1d03fe --- /dev/null +++ b/swagger_client/models/authorized_info.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.comment import Comment # noqa: F401,E501 + + +class AuthorizedInfo(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'comment': 'Comment', + 'status': 'bool' + } + + attribute_map = { + 'comment': 'comment', + 'status': 'status' + } + + def __init__(self, comment=None, status=False): # noqa: E501 + """AuthorizedInfo - a model defined in Swagger""" # noqa: E501 + + self._comment = None + self._status = None + self.discriminator = None + + if comment is not None: + self.comment = comment + if status is not None: + self.status = status + + @property + def comment(self): + """Gets the comment of this AuthorizedInfo. # noqa: E501 + + + :return: The comment of this AuthorizedInfo. # noqa: E501 + :rtype: Comment + """ + return self._comment + + @comment.setter + def comment(self, comment): + """Sets the comment of this AuthorizedInfo. + + + :param comment: The comment of this AuthorizedInfo. # noqa: E501 + :type: Comment + """ + + self._comment = comment + + @property + def status(self): + """Gets the status of this AuthorizedInfo. # noqa: E501 + + + :return: The status of this AuthorizedInfo. # noqa: E501 + :rtype: bool + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this AuthorizedInfo. + + + :param status: The status of this AuthorizedInfo. # noqa: E501 + :type: bool + """ + + self._status = status + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AuthorizedInfo, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AuthorizedInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/backup_process.py b/swagger_client/models/backup_process.py new file mode 100644 index 0000000..97fabf2 --- /dev/null +++ b/swagger_client/models/backup_process.py @@ -0,0 +1,287 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.backup_process_info import BackupProcessInfo # noqa: F401,E501 +from swagger_client.models.exception import Exception # noqa: F401,E501 +from swagger_client.models.progress_info import ProgressInfo # noqa: F401,E501 + + +class BackupProcess(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'brief_info': 'BackupProcessInfo', + 'exceptions': 'list[Exception]', + 'finished': 'bool', + 'process_id': 'int', + 'process_kind': 'str', + 'progress_info': 'ProgressInfo', + 'progress_status': 'str' + } + + attribute_map = { + 'brief_info': 'briefInfo', + 'exceptions': 'exceptions', + 'finished': 'finished', + 'process_id': 'processId', + 'process_kind': 'processKind', + 'progress_info': 'progressInfo', + 'progress_status': 'progressStatus' + } + + def __init__(self, brief_info=None, exceptions=None, finished=False, process_id=None, process_kind=None, progress_info=None, progress_status=None): # noqa: E501 + """BackupProcess - a model defined in Swagger""" # noqa: E501 + + self._brief_info = None + self._exceptions = None + self._finished = None + self._process_id = None + self._process_kind = None + self._progress_info = None + self._progress_status = None + self.discriminator = None + + if brief_info is not None: + self.brief_info = brief_info + if exceptions is not None: + self.exceptions = exceptions + if finished is not None: + self.finished = finished + if process_id is not None: + self.process_id = process_id + if process_kind is not None: + self.process_kind = process_kind + if progress_info is not None: + self.progress_info = progress_info + if progress_status is not None: + self.progress_status = progress_status + + @property + def brief_info(self): + """Gets the brief_info of this BackupProcess. # noqa: E501 + + + :return: The brief_info of this BackupProcess. # noqa: E501 + :rtype: BackupProcessInfo + """ + return self._brief_info + + @brief_info.setter + def brief_info(self, brief_info): + """Sets the brief_info of this BackupProcess. + + + :param brief_info: The brief_info of this BackupProcess. # noqa: E501 + :type: BackupProcessInfo + """ + + self._brief_info = brief_info + + @property + def exceptions(self): + """Gets the exceptions of this BackupProcess. # noqa: E501 + + + :return: The exceptions of this BackupProcess. # noqa: E501 + :rtype: list[Exception] + """ + return self._exceptions + + @exceptions.setter + def exceptions(self, exceptions): + """Sets the exceptions of this BackupProcess. + + + :param exceptions: The exceptions of this BackupProcess. # noqa: E501 + :type: list[Exception] + """ + + self._exceptions = exceptions + + @property + def finished(self): + """Gets the finished of this BackupProcess. # noqa: E501 + + + :return: The finished of this BackupProcess. # noqa: E501 + :rtype: bool + """ + return self._finished + + @finished.setter + def finished(self, finished): + """Sets the finished of this BackupProcess. + + + :param finished: The finished of this BackupProcess. # noqa: E501 + :type: bool + """ + + self._finished = finished + + @property + def process_id(self): + """Gets the process_id of this BackupProcess. # noqa: E501 + + + :return: The process_id of this BackupProcess. # noqa: E501 + :rtype: int + """ + return self._process_id + + @process_id.setter + def process_id(self, process_id): + """Sets the process_id of this BackupProcess. + + + :param process_id: The process_id of this BackupProcess. # noqa: E501 + :type: int + """ + + self._process_id = process_id + + @property + def process_kind(self): + """Gets the process_kind of this BackupProcess. # noqa: E501 + + + :return: The process_kind of this BackupProcess. # noqa: E501 + :rtype: str + """ + return self._process_kind + + @process_kind.setter + def process_kind(self, process_kind): + """Sets the process_kind of this BackupProcess. + + + :param process_kind: The process_kind of this BackupProcess. # noqa: E501 + :type: str + """ + allowed_values = ["Backup", "Restore", "Cleanup"] # noqa: E501 + if process_kind not in allowed_values: + raise ValueError( + "Invalid value for `process_kind` ({0}), must be one of {1}" # noqa: E501 + .format(process_kind, allowed_values) + ) + + self._process_kind = process_kind + + @property + def progress_info(self): + """Gets the progress_info of this BackupProcess. # noqa: E501 + + + :return: The progress_info of this BackupProcess. # noqa: E501 + :rtype: ProgressInfo + """ + return self._progress_info + + @progress_info.setter + def progress_info(self, progress_info): + """Sets the progress_info of this BackupProcess. + + + :param progress_info: The progress_info of this BackupProcess. # noqa: E501 + :type: ProgressInfo + """ + + self._progress_info = progress_info + + @property + def progress_status(self): + """Gets the progress_status of this BackupProcess. # noqa: E501 + + + :return: The progress_status of this BackupProcess. # noqa: E501 + :rtype: str + """ + return self._progress_status + + @progress_status.setter + def progress_status(self, progress_status): + """Sets the progress_status of this BackupProcess. + + + :param progress_status: The progress_status of this BackupProcess. # noqa: E501 + :type: str + """ + allowed_values = ["Running", "Cancelling", "Cancelled", "Finished", "Fault"] # noqa: E501 + if progress_status not in allowed_values: + raise ValueError( + "Invalid value for `progress_status` ({0}), must be one of {1}" # noqa: E501 + .format(progress_status, allowed_values) + ) + + self._progress_status = progress_status + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(BackupProcess, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BackupProcess): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/backup_process_info.py b/swagger_client/models/backup_process_info.py new file mode 100644 index 0000000..24301ab --- /dev/null +++ b/swagger_client/models/backup_process_info.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class BackupProcessInfo(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'file_name': 'str', + 'file_size': 'int', + 'finish_timestamp': 'datetime', + 'id': 'int', + 'start_timestamp': 'datetime', + 'status': 'str' + } + + attribute_map = { + 'file_name': 'fileName', + 'file_size': 'fileSize', + 'finish_timestamp': 'finishTimestamp', + 'id': 'id', + 'start_timestamp': 'startTimestamp', + 'status': 'status' + } + + def __init__(self, file_name=None, file_size=None, finish_timestamp=None, id=None, start_timestamp=None, status=None): # noqa: E501 + """BackupProcessInfo - a model defined in Swagger""" # noqa: E501 + + self._file_name = None + self._file_size = None + self._finish_timestamp = None + self._id = None + self._start_timestamp = None + self._status = None + self.discriminator = None + + if file_name is not None: + self.file_name = file_name + if file_size is not None: + self.file_size = file_size + if finish_timestamp is not None: + self.finish_timestamp = finish_timestamp + if id is not None: + self.id = id + if start_timestamp is not None: + self.start_timestamp = start_timestamp + if status is not None: + self.status = status + + @property + def file_name(self): + """Gets the file_name of this BackupProcessInfo. # noqa: E501 + + + :return: The file_name of this BackupProcessInfo. # noqa: E501 + :rtype: str + """ + return self._file_name + + @file_name.setter + def file_name(self, file_name): + """Sets the file_name of this BackupProcessInfo. + + + :param file_name: The file_name of this BackupProcessInfo. # noqa: E501 + :type: str + """ + + self._file_name = file_name + + @property + def file_size(self): + """Gets the file_size of this BackupProcessInfo. # noqa: E501 + + + :return: The file_size of this BackupProcessInfo. # noqa: E501 + :rtype: int + """ + return self._file_size + + @file_size.setter + def file_size(self, file_size): + """Sets the file_size of this BackupProcessInfo. + + + :param file_size: The file_size of this BackupProcessInfo. # noqa: E501 + :type: int + """ + + self._file_size = file_size + + @property + def finish_timestamp(self): + """Gets the finish_timestamp of this BackupProcessInfo. # noqa: E501 + + + :return: The finish_timestamp of this BackupProcessInfo. # noqa: E501 + :rtype: datetime + """ + return self._finish_timestamp + + @finish_timestamp.setter + def finish_timestamp(self, finish_timestamp): + """Sets the finish_timestamp of this BackupProcessInfo. + + + :param finish_timestamp: The finish_timestamp of this BackupProcessInfo. # noqa: E501 + :type: datetime + """ + + self._finish_timestamp = finish_timestamp + + @property + def id(self): + """Gets the id of this BackupProcessInfo. # noqa: E501 + + + :return: The id of this BackupProcessInfo. # noqa: E501 + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this BackupProcessInfo. + + + :param id: The id of this BackupProcessInfo. # noqa: E501 + :type: int + """ + + self._id = id + + @property + def start_timestamp(self): + """Gets the start_timestamp of this BackupProcessInfo. # noqa: E501 + + + :return: The start_timestamp of this BackupProcessInfo. # noqa: E501 + :rtype: datetime + """ + return self._start_timestamp + + @start_timestamp.setter + def start_timestamp(self, start_timestamp): + """Sets the start_timestamp of this BackupProcessInfo. + + + :param start_timestamp: The start_timestamp of this BackupProcessInfo. # noqa: E501 + :type: datetime + """ + + self._start_timestamp = start_timestamp + + @property + def status(self): + """Gets the status of this BackupProcessInfo. # noqa: E501 + + + :return: The status of this BackupProcessInfo. # noqa: E501 + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this BackupProcessInfo. + + + :param status: The status of this BackupProcessInfo. # noqa: E501 + :type: str + """ + allowed_values = ["Running", "Cancelling", "Cancelled", "Finished", "Fault"] # noqa: E501 + if status not in allowed_values: + raise ValueError( + "Invalid value for `status` ({0}), must be one of {1}" # noqa: E501 + .format(status, allowed_values) + ) + + self._status = status + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(BackupProcessInfo, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BackupProcessInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/backup_process_manager.py b/swagger_client/models/backup_process_manager.py new file mode 100644 index 0000000..6ab0de0 --- /dev/null +++ b/swagger_client/models/backup_process_manager.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.backup_process import BackupProcess # noqa: F401,E501 + + +class BackupProcessManager(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'current_backup_process': 'BackupProcess' + } + + attribute_map = { + 'current_backup_process': 'currentBackupProcess' + } + + def __init__(self, current_backup_process=None): # noqa: E501 + """BackupProcessManager - a model defined in Swagger""" # noqa: E501 + + self._current_backup_process = None + self.discriminator = None + + if current_backup_process is not None: + self.current_backup_process = current_backup_process + + @property + def current_backup_process(self): + """Gets the current_backup_process of this BackupProcessManager. # noqa: E501 + + + :return: The current_backup_process of this BackupProcessManager. # noqa: E501 + :rtype: BackupProcess + """ + return self._current_backup_process + + @current_backup_process.setter + def current_backup_process(self, current_backup_process): + """Sets the current_backup_process of this BackupProcessManager. + + + :param current_backup_process: The current_backup_process of this BackupProcessManager. # noqa: E501 + :type: BackupProcess + """ + + self._current_backup_process = current_backup_process + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(BackupProcessManager, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BackupProcessManager): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/branch.py b/swagger_client/models/branch.py new file mode 100644 index 0000000..952db46 --- /dev/null +++ b/swagger_client/models/branch.py @@ -0,0 +1,167 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class Branch(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'default': 'bool', + 'name': 'str', + 'unspecified': 'bool' + } + + attribute_map = { + 'default': 'default', + 'name': 'name', + 'unspecified': 'unspecified' + } + + def __init__(self, default=False, name=None, unspecified=False): # noqa: E501 + """Branch - a model defined in Swagger""" # noqa: E501 + + self._default = None + self._name = None + self._unspecified = None + self.discriminator = None + + if default is not None: + self.default = default + if name is not None: + self.name = name + if unspecified is not None: + self.unspecified = unspecified + + @property + def default(self): + """Gets the default of this Branch. # noqa: E501 + + + :return: The default of this Branch. # noqa: E501 + :rtype: bool + """ + return self._default + + @default.setter + def default(self, default): + """Sets the default of this Branch. + + + :param default: The default of this Branch. # noqa: E501 + :type: bool + """ + + self._default = default + + @property + def name(self): + """Gets the name of this Branch. # noqa: E501 + + + :return: The name of this Branch. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this Branch. + + + :param name: The name of this Branch. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def unspecified(self): + """Gets the unspecified of this Branch. # noqa: E501 + + + :return: The unspecified of this Branch. # noqa: E501 + :rtype: bool + """ + return self._unspecified + + @unspecified.setter + def unspecified(self, unspecified): + """Sets the unspecified of this Branch. + + + :param unspecified: The unspecified of this Branch. # noqa: E501 + :type: bool + """ + + self._unspecified = unspecified + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Branch, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Branch): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/branch_version.py b/swagger_client/models/branch_version.py new file mode 100644 index 0000000..a079fc9 --- /dev/null +++ b/swagger_client/models/branch_version.py @@ -0,0 +1,193 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class BranchVersion(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'default': 'bool', + 'name': 'str', + 'unspecified': 'bool', + 'version': 'str' + } + + attribute_map = { + 'default': 'default', + 'name': 'name', + 'unspecified': 'unspecified', + 'version': 'version' + } + + def __init__(self, default=False, name=None, unspecified=False, version=None): # noqa: E501 + """BranchVersion - a model defined in Swagger""" # noqa: E501 + + self._default = None + self._name = None + self._unspecified = None + self._version = None + self.discriminator = None + + if default is not None: + self.default = default + if name is not None: + self.name = name + if unspecified is not None: + self.unspecified = unspecified + if version is not None: + self.version = version + + @property + def default(self): + """Gets the default of this BranchVersion. # noqa: E501 + + + :return: The default of this BranchVersion. # noqa: E501 + :rtype: bool + """ + return self._default + + @default.setter + def default(self, default): + """Sets the default of this BranchVersion. + + + :param default: The default of this BranchVersion. # noqa: E501 + :type: bool + """ + + self._default = default + + @property + def name(self): + """Gets the name of this BranchVersion. # noqa: E501 + + + :return: The name of this BranchVersion. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this BranchVersion. + + + :param name: The name of this BranchVersion. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def unspecified(self): + """Gets the unspecified of this BranchVersion. # noqa: E501 + + + :return: The unspecified of this BranchVersion. # noqa: E501 + :rtype: bool + """ + return self._unspecified + + @unspecified.setter + def unspecified(self, unspecified): + """Sets the unspecified of this BranchVersion. + + + :param unspecified: The unspecified of this BranchVersion. # noqa: E501 + :type: bool + """ + + self._unspecified = unspecified + + @property + def version(self): + """Gets the version of this BranchVersion. # noqa: E501 + + + :return: The version of this BranchVersion. # noqa: E501 + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this BranchVersion. + + + :param version: The version of this BranchVersion. # noqa: E501 + :type: str + """ + + self._version = version + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(BranchVersion, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BranchVersion): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/branches.py b/swagger_client/models/branches.py new file mode 100644 index 0000000..abecc0f --- /dev/null +++ b/swagger_client/models/branches.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.branch import Branch # noqa: F401,E501 + + +class Branches(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'branch': 'list[Branch]', + 'count': 'int' + } + + attribute_map = { + 'branch': 'branch', + 'count': 'count' + } + + def __init__(self, branch=None, count=None): # noqa: E501 + """Branches - a model defined in Swagger""" # noqa: E501 + + self._branch = None + self._count = None + self.discriminator = None + + if branch is not None: + self.branch = branch + if count is not None: + self.count = count + + @property + def branch(self): + """Gets the branch of this Branches. # noqa: E501 + + + :return: The branch of this Branches. # noqa: E501 + :rtype: list[Branch] + """ + return self._branch + + @branch.setter + def branch(self, branch): + """Sets the branch of this Branches. + + + :param branch: The branch of this Branches. # noqa: E501 + :type: list[Branch] + """ + + self._branch = branch + + @property + def count(self): + """Gets the count of this Branches. # noqa: E501 + + + :return: The count of this Branches. # noqa: E501 + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this Branches. + + + :param count: The count of this Branches. # noqa: E501 + :type: int + """ + + self._count = count + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Branches, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Branches): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/build.py b/swagger_client/models/build.py new file mode 100644 index 0000000..0928f55 --- /dev/null +++ b/swagger_client/models/build.py @@ -0,0 +1,1594 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.agent import Agent # noqa: F401,E501 +from swagger_client.models.agents import Agents # noqa: F401,E501 +from swagger_client.models.artifact_dependencies import ArtifactDependencies # noqa: F401,E501 +from swagger_client.models.build_triggering_options import BuildTriggeringOptions # noqa: F401,E501 +from swagger_client.models.build_type import BuildType # noqa: F401,E501 +from swagger_client.models.builds import Builds # noqa: F401,E501 +from swagger_client.models.changes import Changes # noqa: F401,E501 +from swagger_client.models.comment import Comment # noqa: F401,E501 +from swagger_client.models.datas import Datas # noqa: F401,E501 +from swagger_client.models.entries import Entries # noqa: F401,E501 +from swagger_client.models.files import Files # noqa: F401,E501 +from swagger_client.models.issues_usages import IssuesUsages # noqa: F401,E501 +from swagger_client.models.items import Items # noqa: F401,E501 +from swagger_client.models.problem_occurrences import ProblemOccurrences # noqa: F401,E501 +from swagger_client.models.progress_info import ProgressInfo # noqa: F401,E501 +from swagger_client.models.properties import Properties # noqa: F401,E501 +from swagger_client.models.revision import Revision # noqa: F401,E501 +from swagger_client.models.revisions import Revisions # noqa: F401,E501 +from swagger_client.models.tags import Tags # noqa: F401,E501 +from swagger_client.models.test_occurrences import TestOccurrences # noqa: F401,E501 +from swagger_client.models.triggered_by import TriggeredBy # noqa: F401,E501 +from swagger_client.models.user import User # noqa: F401,E501 + + +class Build(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'agent': 'Agent', + 'artifact_dependencies': 'Builds', + 'artifacts': 'Files', + 'attributes': 'Entries', + 'branch_name': 'str', + 'build_type': 'BuildType', + 'build_type_id': 'str', + 'build_type_internal_id': 'str', + 'canceled_info': 'Comment', + 'chain_modification_id': 'str', + 'changes': 'Changes', + 'comment': 'Comment', + 'compatible_agents': 'Agents', + 'current_settings_hash': 'str', + 'custom_artifact_dependencies': 'ArtifactDependencies', + 'default_branch': 'bool', + 'failed_to_start': 'bool', + 'finish_date': 'str', + 'history': 'bool', + 'href': 'str', + 'id': 'int', + 'last_changes': 'Changes', + 'locator': 'str', + 'metadata': 'Datas', + 'modification_id': 'str', + 'number': 'str', + 'percentage_complete': 'int', + 'personal': 'bool', + 'pin_info': 'Comment', + 'pinned': 'bool', + 'problem_occurrences': 'ProblemOccurrences', + 'properties': 'Properties', + 'queued_date': 'str', + 'related_issues': 'IssuesUsages', + 'replacement_ids': 'Items', + 'resulting_properties': 'Properties', + 'revisions': 'Revisions', + 'running': 'bool', + 'running_info': 'ProgressInfo', + 'settings_hash': 'str', + 'snapshot_dependencies': 'Builds', + 'start_date': 'str', + 'start_estimate': 'str', + 'state': 'str', + 'statistics': 'Properties', + 'status': 'str', + 'status_text': 'str', + 'tags': 'Tags', + 'task_id': 'int', + 'test_occurrences': 'TestOccurrences', + 'triggered': 'TriggeredBy', + 'triggering_options': 'BuildTriggeringOptions', + 'unspecified_branch': 'bool', + 'user': 'User', + 'versioned_settings_revision': 'Revision', + 'wait_reason': 'str', + 'web_url': 'str' + } + + attribute_map = { + 'agent': 'agent', + 'artifact_dependencies': 'artifact-dependencies', + 'artifacts': 'artifacts', + 'attributes': 'attributes', + 'branch_name': 'branchName', + 'build_type': 'buildType', + 'build_type_id': 'buildTypeId', + 'build_type_internal_id': 'buildTypeInternalId', + 'canceled_info': 'canceledInfo', + 'chain_modification_id': 'chainModificationId', + 'changes': 'changes', + 'comment': 'comment', + 'compatible_agents': 'compatibleAgents', + 'current_settings_hash': 'currentSettingsHash', + 'custom_artifact_dependencies': 'custom-artifact-dependencies', + 'default_branch': 'defaultBranch', + 'failed_to_start': 'failedToStart', + 'finish_date': 'finishDate', + 'history': 'history', + 'href': 'href', + 'id': 'id', + 'last_changes': 'lastChanges', + 'locator': 'locator', + 'metadata': 'metadata', + 'modification_id': 'modificationId', + 'number': 'number', + 'percentage_complete': 'percentageComplete', + 'personal': 'personal', + 'pin_info': 'pinInfo', + 'pinned': 'pinned', + 'problem_occurrences': 'problemOccurrences', + 'properties': 'properties', + 'queued_date': 'queuedDate', + 'related_issues': 'relatedIssues', + 'replacement_ids': 'replacementIds', + 'resulting_properties': 'resultingProperties', + 'revisions': 'revisions', + 'running': 'running', + 'running_info': 'running-info', + 'settings_hash': 'settingsHash', + 'snapshot_dependencies': 'snapshot-dependencies', + 'start_date': 'startDate', + 'start_estimate': 'startEstimate', + 'state': 'state', + 'statistics': 'statistics', + 'status': 'status', + 'status_text': 'statusText', + 'tags': 'tags', + 'task_id': 'taskId', + 'test_occurrences': 'testOccurrences', + 'triggered': 'triggered', + 'triggering_options': 'triggeringOptions', + 'unspecified_branch': 'unspecifiedBranch', + 'user': 'user', + 'versioned_settings_revision': 'versionedSettingsRevision', + 'wait_reason': 'waitReason', + 'web_url': 'webUrl' + } + + def __init__(self, agent=None, artifact_dependencies=None, artifacts=None, attributes=None, branch_name=None, build_type=None, build_type_id=None, build_type_internal_id=None, canceled_info=None, chain_modification_id=None, changes=None, comment=None, compatible_agents=None, current_settings_hash=None, custom_artifact_dependencies=None, default_branch=False, failed_to_start=False, finish_date=None, history=False, href=None, id=None, last_changes=None, locator=None, metadata=None, modification_id=None, number=None, percentage_complete=None, personal=False, pin_info=None, pinned=False, problem_occurrences=None, properties=None, queued_date=None, related_issues=None, replacement_ids=None, resulting_properties=None, revisions=None, running=False, running_info=None, settings_hash=None, snapshot_dependencies=None, start_date=None, start_estimate=None, state=None, statistics=None, status=None, status_text=None, tags=None, task_id=None, test_occurrences=None, triggered=None, triggering_options=None, unspecified_branch=False, user=None, versioned_settings_revision=None, wait_reason=None, web_url=None): # noqa: E501 + """Build - a model defined in Swagger""" # noqa: E501 + + self._agent = None + self._artifact_dependencies = None + self._artifacts = None + self._attributes = None + self._branch_name = None + self._build_type = None + self._build_type_id = None + self._build_type_internal_id = None + self._canceled_info = None + self._chain_modification_id = None + self._changes = None + self._comment = None + self._compatible_agents = None + self._current_settings_hash = None + self._custom_artifact_dependencies = None + self._default_branch = None + self._failed_to_start = None + self._finish_date = None + self._history = None + self._href = None + self._id = None + self._last_changes = None + self._locator = None + self._metadata = None + self._modification_id = None + self._number = None + self._percentage_complete = None + self._personal = None + self._pin_info = None + self._pinned = None + self._problem_occurrences = None + self._properties = None + self._queued_date = None + self._related_issues = None + self._replacement_ids = None + self._resulting_properties = None + self._revisions = None + self._running = None + self._running_info = None + self._settings_hash = None + self._snapshot_dependencies = None + self._start_date = None + self._start_estimate = None + self._state = None + self._statistics = None + self._status = None + self._status_text = None + self._tags = None + self._task_id = None + self._test_occurrences = None + self._triggered = None + self._triggering_options = None + self._unspecified_branch = None + self._user = None + self._versioned_settings_revision = None + self._wait_reason = None + self._web_url = None + self.discriminator = None + + if agent is not None: + self.agent = agent + if artifact_dependencies is not None: + self.artifact_dependencies = artifact_dependencies + if artifacts is not None: + self.artifacts = artifacts + if attributes is not None: + self.attributes = attributes + if branch_name is not None: + self.branch_name = branch_name + if build_type is not None: + self.build_type = build_type + if build_type_id is not None: + self.build_type_id = build_type_id + if build_type_internal_id is not None: + self.build_type_internal_id = build_type_internal_id + if canceled_info is not None: + self.canceled_info = canceled_info + if chain_modification_id is not None: + self.chain_modification_id = chain_modification_id + if changes is not None: + self.changes = changes + if comment is not None: + self.comment = comment + if compatible_agents is not None: + self.compatible_agents = compatible_agents + if current_settings_hash is not None: + self.current_settings_hash = current_settings_hash + if custom_artifact_dependencies is not None: + self.custom_artifact_dependencies = custom_artifact_dependencies + if default_branch is not None: + self.default_branch = default_branch + if failed_to_start is not None: + self.failed_to_start = failed_to_start + if finish_date is not None: + self.finish_date = finish_date + if history is not None: + self.history = history + if href is not None: + self.href = href + if id is not None: + self.id = id + if last_changes is not None: + self.last_changes = last_changes + if locator is not None: + self.locator = locator + if metadata is not None: + self.metadata = metadata + if modification_id is not None: + self.modification_id = modification_id + if number is not None: + self.number = number + if percentage_complete is not None: + self.percentage_complete = percentage_complete + if personal is not None: + self.personal = personal + if pin_info is not None: + self.pin_info = pin_info + if pinned is not None: + self.pinned = pinned + if problem_occurrences is not None: + self.problem_occurrences = problem_occurrences + if properties is not None: + self.properties = properties + if queued_date is not None: + self.queued_date = queued_date + if related_issues is not None: + self.related_issues = related_issues + if replacement_ids is not None: + self.replacement_ids = replacement_ids + if resulting_properties is not None: + self.resulting_properties = resulting_properties + if revisions is not None: + self.revisions = revisions + if running is not None: + self.running = running + if running_info is not None: + self.running_info = running_info + if settings_hash is not None: + self.settings_hash = settings_hash + if snapshot_dependencies is not None: + self.snapshot_dependencies = snapshot_dependencies + if start_date is not None: + self.start_date = start_date + if start_estimate is not None: + self.start_estimate = start_estimate + if state is not None: + self.state = state + if statistics is not None: + self.statistics = statistics + if status is not None: + self.status = status + if status_text is not None: + self.status_text = status_text + if tags is not None: + self.tags = tags + if task_id is not None: + self.task_id = task_id + if test_occurrences is not None: + self.test_occurrences = test_occurrences + if triggered is not None: + self.triggered = triggered + if triggering_options is not None: + self.triggering_options = triggering_options + if unspecified_branch is not None: + self.unspecified_branch = unspecified_branch + if user is not None: + self.user = user + if versioned_settings_revision is not None: + self.versioned_settings_revision = versioned_settings_revision + if wait_reason is not None: + self.wait_reason = wait_reason + if web_url is not None: + self.web_url = web_url + + @property + def agent(self): + """Gets the agent of this Build. # noqa: E501 + + + :return: The agent of this Build. # noqa: E501 + :rtype: Agent + """ + return self._agent + + @agent.setter + def agent(self, agent): + """Sets the agent of this Build. + + + :param agent: The agent of this Build. # noqa: E501 + :type: Agent + """ + + self._agent = agent + + @property + def artifact_dependencies(self): + """Gets the artifact_dependencies of this Build. # noqa: E501 + + + :return: The artifact_dependencies of this Build. # noqa: E501 + :rtype: Builds + """ + return self._artifact_dependencies + + @artifact_dependencies.setter + def artifact_dependencies(self, artifact_dependencies): + """Sets the artifact_dependencies of this Build. + + + :param artifact_dependencies: The artifact_dependencies of this Build. # noqa: E501 + :type: Builds + """ + + self._artifact_dependencies = artifact_dependencies + + @property + def artifacts(self): + """Gets the artifacts of this Build. # noqa: E501 + + + :return: The artifacts of this Build. # noqa: E501 + :rtype: Files + """ + return self._artifacts + + @artifacts.setter + def artifacts(self, artifacts): + """Sets the artifacts of this Build. + + + :param artifacts: The artifacts of this Build. # noqa: E501 + :type: Files + """ + + self._artifacts = artifacts + + @property + def attributes(self): + """Gets the attributes of this Build. # noqa: E501 + + + :return: The attributes of this Build. # noqa: E501 + :rtype: Entries + """ + return self._attributes + + @attributes.setter + def attributes(self, attributes): + """Sets the attributes of this Build. + + + :param attributes: The attributes of this Build. # noqa: E501 + :type: Entries + """ + + self._attributes = attributes + + @property + def branch_name(self): + """Gets the branch_name of this Build. # noqa: E501 + + + :return: The branch_name of this Build. # noqa: E501 + :rtype: str + """ + return self._branch_name + + @branch_name.setter + def branch_name(self, branch_name): + """Sets the branch_name of this Build. + + + :param branch_name: The branch_name of this Build. # noqa: E501 + :type: str + """ + + self._branch_name = branch_name + + @property + def build_type(self): + """Gets the build_type of this Build. # noqa: E501 + + + :return: The build_type of this Build. # noqa: E501 + :rtype: BuildType + """ + return self._build_type + + @build_type.setter + def build_type(self, build_type): + """Sets the build_type of this Build. + + + :param build_type: The build_type of this Build. # noqa: E501 + :type: BuildType + """ + + self._build_type = build_type + + @property + def build_type_id(self): + """Gets the build_type_id of this Build. # noqa: E501 + + + :return: The build_type_id of this Build. # noqa: E501 + :rtype: str + """ + return self._build_type_id + + @build_type_id.setter + def build_type_id(self, build_type_id): + """Sets the build_type_id of this Build. + + + :param build_type_id: The build_type_id of this Build. # noqa: E501 + :type: str + """ + + self._build_type_id = build_type_id + + @property + def build_type_internal_id(self): + """Gets the build_type_internal_id of this Build. # noqa: E501 + + + :return: The build_type_internal_id of this Build. # noqa: E501 + :rtype: str + """ + return self._build_type_internal_id + + @build_type_internal_id.setter + def build_type_internal_id(self, build_type_internal_id): + """Sets the build_type_internal_id of this Build. + + + :param build_type_internal_id: The build_type_internal_id of this Build. # noqa: E501 + :type: str + """ + + self._build_type_internal_id = build_type_internal_id + + @property + def canceled_info(self): + """Gets the canceled_info of this Build. # noqa: E501 + + + :return: The canceled_info of this Build. # noqa: E501 + :rtype: Comment + """ + return self._canceled_info + + @canceled_info.setter + def canceled_info(self, canceled_info): + """Sets the canceled_info of this Build. + + + :param canceled_info: The canceled_info of this Build. # noqa: E501 + :type: Comment + """ + + self._canceled_info = canceled_info + + @property + def chain_modification_id(self): + """Gets the chain_modification_id of this Build. # noqa: E501 + + + :return: The chain_modification_id of this Build. # noqa: E501 + :rtype: str + """ + return self._chain_modification_id + + @chain_modification_id.setter + def chain_modification_id(self, chain_modification_id): + """Sets the chain_modification_id of this Build. + + + :param chain_modification_id: The chain_modification_id of this Build. # noqa: E501 + :type: str + """ + + self._chain_modification_id = chain_modification_id + + @property + def changes(self): + """Gets the changes of this Build. # noqa: E501 + + + :return: The changes of this Build. # noqa: E501 + :rtype: Changes + """ + return self._changes + + @changes.setter + def changes(self, changes): + """Sets the changes of this Build. + + + :param changes: The changes of this Build. # noqa: E501 + :type: Changes + """ + + self._changes = changes + + @property + def comment(self): + """Gets the comment of this Build. # noqa: E501 + + + :return: The comment of this Build. # noqa: E501 + :rtype: Comment + """ + return self._comment + + @comment.setter + def comment(self, comment): + """Sets the comment of this Build. + + + :param comment: The comment of this Build. # noqa: E501 + :type: Comment + """ + + self._comment = comment + + @property + def compatible_agents(self): + """Gets the compatible_agents of this Build. # noqa: E501 + + + :return: The compatible_agents of this Build. # noqa: E501 + :rtype: Agents + """ + return self._compatible_agents + + @compatible_agents.setter + def compatible_agents(self, compatible_agents): + """Sets the compatible_agents of this Build. + + + :param compatible_agents: The compatible_agents of this Build. # noqa: E501 + :type: Agents + """ + + self._compatible_agents = compatible_agents + + @property + def current_settings_hash(self): + """Gets the current_settings_hash of this Build. # noqa: E501 + + + :return: The current_settings_hash of this Build. # noqa: E501 + :rtype: str + """ + return self._current_settings_hash + + @current_settings_hash.setter + def current_settings_hash(self, current_settings_hash): + """Sets the current_settings_hash of this Build. + + + :param current_settings_hash: The current_settings_hash of this Build. # noqa: E501 + :type: str + """ + + self._current_settings_hash = current_settings_hash + + @property + def custom_artifact_dependencies(self): + """Gets the custom_artifact_dependencies of this Build. # noqa: E501 + + + :return: The custom_artifact_dependencies of this Build. # noqa: E501 + :rtype: ArtifactDependencies + """ + return self._custom_artifact_dependencies + + @custom_artifact_dependencies.setter + def custom_artifact_dependencies(self, custom_artifact_dependencies): + """Sets the custom_artifact_dependencies of this Build. + + + :param custom_artifact_dependencies: The custom_artifact_dependencies of this Build. # noqa: E501 + :type: ArtifactDependencies + """ + + self._custom_artifact_dependencies = custom_artifact_dependencies + + @property + def default_branch(self): + """Gets the default_branch of this Build. # noqa: E501 + + + :return: The default_branch of this Build. # noqa: E501 + :rtype: bool + """ + return self._default_branch + + @default_branch.setter + def default_branch(self, default_branch): + """Sets the default_branch of this Build. + + + :param default_branch: The default_branch of this Build. # noqa: E501 + :type: bool + """ + + self._default_branch = default_branch + + @property + def failed_to_start(self): + """Gets the failed_to_start of this Build. # noqa: E501 + + + :return: The failed_to_start of this Build. # noqa: E501 + :rtype: bool + """ + return self._failed_to_start + + @failed_to_start.setter + def failed_to_start(self, failed_to_start): + """Sets the failed_to_start of this Build. + + + :param failed_to_start: The failed_to_start of this Build. # noqa: E501 + :type: bool + """ + + self._failed_to_start = failed_to_start + + @property + def finish_date(self): + """Gets the finish_date of this Build. # noqa: E501 + + + :return: The finish_date of this Build. # noqa: E501 + :rtype: str + """ + return self._finish_date + + @finish_date.setter + def finish_date(self, finish_date): + """Sets the finish_date of this Build. + + + :param finish_date: The finish_date of this Build. # noqa: E501 + :type: str + """ + + self._finish_date = finish_date + + @property + def history(self): + """Gets the history of this Build. # noqa: E501 + + + :return: The history of this Build. # noqa: E501 + :rtype: bool + """ + return self._history + + @history.setter + def history(self, history): + """Sets the history of this Build. + + + :param history: The history of this Build. # noqa: E501 + :type: bool + """ + + self._history = history + + @property + def href(self): + """Gets the href of this Build. # noqa: E501 + + + :return: The href of this Build. # noqa: E501 + :rtype: str + """ + return self._href + + @href.setter + def href(self, href): + """Sets the href of this Build. + + + :param href: The href of this Build. # noqa: E501 + :type: str + """ + + self._href = href + + @property + def id(self): + """Gets the id of this Build. # noqa: E501 + + + :return: The id of this Build. # noqa: E501 + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this Build. + + + :param id: The id of this Build. # noqa: E501 + :type: int + """ + + self._id = id + + @property + def last_changes(self): + """Gets the last_changes of this Build. # noqa: E501 + + + :return: The last_changes of this Build. # noqa: E501 + :rtype: Changes + """ + return self._last_changes + + @last_changes.setter + def last_changes(self, last_changes): + """Sets the last_changes of this Build. + + + :param last_changes: The last_changes of this Build. # noqa: E501 + :type: Changes + """ + + self._last_changes = last_changes + + @property + def locator(self): + """Gets the locator of this Build. # noqa: E501 + + + :return: The locator of this Build. # noqa: E501 + :rtype: str + """ + return self._locator + + @locator.setter + def locator(self, locator): + """Sets the locator of this Build. + + + :param locator: The locator of this Build. # noqa: E501 + :type: str + """ + + self._locator = locator + + @property + def metadata(self): + """Gets the metadata of this Build. # noqa: E501 + + + :return: The metadata of this Build. # noqa: E501 + :rtype: Datas + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this Build. + + + :param metadata: The metadata of this Build. # noqa: E501 + :type: Datas + """ + + self._metadata = metadata + + @property + def modification_id(self): + """Gets the modification_id of this Build. # noqa: E501 + + + :return: The modification_id of this Build. # noqa: E501 + :rtype: str + """ + return self._modification_id + + @modification_id.setter + def modification_id(self, modification_id): + """Sets the modification_id of this Build. + + + :param modification_id: The modification_id of this Build. # noqa: E501 + :type: str + """ + + self._modification_id = modification_id + + @property + def number(self): + """Gets the number of this Build. # noqa: E501 + + + :return: The number of this Build. # noqa: E501 + :rtype: str + """ + return self._number + + @number.setter + def number(self, number): + """Sets the number of this Build. + + + :param number: The number of this Build. # noqa: E501 + :type: str + """ + + self._number = number + + @property + def percentage_complete(self): + """Gets the percentage_complete of this Build. # noqa: E501 + + + :return: The percentage_complete of this Build. # noqa: E501 + :rtype: int + """ + return self._percentage_complete + + @percentage_complete.setter + def percentage_complete(self, percentage_complete): + """Sets the percentage_complete of this Build. + + + :param percentage_complete: The percentage_complete of this Build. # noqa: E501 + :type: int + """ + + self._percentage_complete = percentage_complete + + @property + def personal(self): + """Gets the personal of this Build. # noqa: E501 + + + :return: The personal of this Build. # noqa: E501 + :rtype: bool + """ + return self._personal + + @personal.setter + def personal(self, personal): + """Sets the personal of this Build. + + + :param personal: The personal of this Build. # noqa: E501 + :type: bool + """ + + self._personal = personal + + @property + def pin_info(self): + """Gets the pin_info of this Build. # noqa: E501 + + + :return: The pin_info of this Build. # noqa: E501 + :rtype: Comment + """ + return self._pin_info + + @pin_info.setter + def pin_info(self, pin_info): + """Sets the pin_info of this Build. + + + :param pin_info: The pin_info of this Build. # noqa: E501 + :type: Comment + """ + + self._pin_info = pin_info + + @property + def pinned(self): + """Gets the pinned of this Build. # noqa: E501 + + + :return: The pinned of this Build. # noqa: E501 + :rtype: bool + """ + return self._pinned + + @pinned.setter + def pinned(self, pinned): + """Sets the pinned of this Build. + + + :param pinned: The pinned of this Build. # noqa: E501 + :type: bool + """ + + self._pinned = pinned + + @property + def problem_occurrences(self): + """Gets the problem_occurrences of this Build. # noqa: E501 + + + :return: The problem_occurrences of this Build. # noqa: E501 + :rtype: ProblemOccurrences + """ + return self._problem_occurrences + + @problem_occurrences.setter + def problem_occurrences(self, problem_occurrences): + """Sets the problem_occurrences of this Build. + + + :param problem_occurrences: The problem_occurrences of this Build. # noqa: E501 + :type: ProblemOccurrences + """ + + self._problem_occurrences = problem_occurrences + + @property + def properties(self): + """Gets the properties of this Build. # noqa: E501 + + + :return: The properties of this Build. # noqa: E501 + :rtype: Properties + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this Build. + + + :param properties: The properties of this Build. # noqa: E501 + :type: Properties + """ + + self._properties = properties + + @property + def queued_date(self): + """Gets the queued_date of this Build. # noqa: E501 + + + :return: The queued_date of this Build. # noqa: E501 + :rtype: str + """ + return self._queued_date + + @queued_date.setter + def queued_date(self, queued_date): + """Sets the queued_date of this Build. + + + :param queued_date: The queued_date of this Build. # noqa: E501 + :type: str + """ + + self._queued_date = queued_date + + @property + def related_issues(self): + """Gets the related_issues of this Build. # noqa: E501 + + + :return: The related_issues of this Build. # noqa: E501 + :rtype: IssuesUsages + """ + return self._related_issues + + @related_issues.setter + def related_issues(self, related_issues): + """Sets the related_issues of this Build. + + + :param related_issues: The related_issues of this Build. # noqa: E501 + :type: IssuesUsages + """ + + self._related_issues = related_issues + + @property + def replacement_ids(self): + """Gets the replacement_ids of this Build. # noqa: E501 + + + :return: The replacement_ids of this Build. # noqa: E501 + :rtype: Items + """ + return self._replacement_ids + + @replacement_ids.setter + def replacement_ids(self, replacement_ids): + """Sets the replacement_ids of this Build. + + + :param replacement_ids: The replacement_ids of this Build. # noqa: E501 + :type: Items + """ + + self._replacement_ids = replacement_ids + + @property + def resulting_properties(self): + """Gets the resulting_properties of this Build. # noqa: E501 + + + :return: The resulting_properties of this Build. # noqa: E501 + :rtype: Properties + """ + return self._resulting_properties + + @resulting_properties.setter + def resulting_properties(self, resulting_properties): + """Sets the resulting_properties of this Build. + + + :param resulting_properties: The resulting_properties of this Build. # noqa: E501 + :type: Properties + """ + + self._resulting_properties = resulting_properties + + @property + def revisions(self): + """Gets the revisions of this Build. # noqa: E501 + + + :return: The revisions of this Build. # noqa: E501 + :rtype: Revisions + """ + return self._revisions + + @revisions.setter + def revisions(self, revisions): + """Sets the revisions of this Build. + + + :param revisions: The revisions of this Build. # noqa: E501 + :type: Revisions + """ + + self._revisions = revisions + + @property + def running(self): + """Gets the running of this Build. # noqa: E501 + + + :return: The running of this Build. # noqa: E501 + :rtype: bool + """ + return self._running + + @running.setter + def running(self, running): + """Sets the running of this Build. + + + :param running: The running of this Build. # noqa: E501 + :type: bool + """ + + self._running = running + + @property + def running_info(self): + """Gets the running_info of this Build. # noqa: E501 + + + :return: The running_info of this Build. # noqa: E501 + :rtype: ProgressInfo + """ + return self._running_info + + @running_info.setter + def running_info(self, running_info): + """Sets the running_info of this Build. + + + :param running_info: The running_info of this Build. # noqa: E501 + :type: ProgressInfo + """ + + self._running_info = running_info + + @property + def settings_hash(self): + """Gets the settings_hash of this Build. # noqa: E501 + + + :return: The settings_hash of this Build. # noqa: E501 + :rtype: str + """ + return self._settings_hash + + @settings_hash.setter + def settings_hash(self, settings_hash): + """Sets the settings_hash of this Build. + + + :param settings_hash: The settings_hash of this Build. # noqa: E501 + :type: str + """ + + self._settings_hash = settings_hash + + @property + def snapshot_dependencies(self): + """Gets the snapshot_dependencies of this Build. # noqa: E501 + + + :return: The snapshot_dependencies of this Build. # noqa: E501 + :rtype: Builds + """ + return self._snapshot_dependencies + + @snapshot_dependencies.setter + def snapshot_dependencies(self, snapshot_dependencies): + """Sets the snapshot_dependencies of this Build. + + + :param snapshot_dependencies: The snapshot_dependencies of this Build. # noqa: E501 + :type: Builds + """ + + self._snapshot_dependencies = snapshot_dependencies + + @property + def start_date(self): + """Gets the start_date of this Build. # noqa: E501 + + + :return: The start_date of this Build. # noqa: E501 + :rtype: str + """ + return self._start_date + + @start_date.setter + def start_date(self, start_date): + """Sets the start_date of this Build. + + + :param start_date: The start_date of this Build. # noqa: E501 + :type: str + """ + + self._start_date = start_date + + @property + def start_estimate(self): + """Gets the start_estimate of this Build. # noqa: E501 + + + :return: The start_estimate of this Build. # noqa: E501 + :rtype: str + """ + return self._start_estimate + + @start_estimate.setter + def start_estimate(self, start_estimate): + """Sets the start_estimate of this Build. + + + :param start_estimate: The start_estimate of this Build. # noqa: E501 + :type: str + """ + + self._start_estimate = start_estimate + + @property + def state(self): + """Gets the state of this Build. # noqa: E501 + + + :return: The state of this Build. # noqa: E501 + :rtype: str + """ + return self._state + + @state.setter + def state(self, state): + """Sets the state of this Build. + + + :param state: The state of this Build. # noqa: E501 + :type: str + """ + + self._state = state + + @property + def statistics(self): + """Gets the statistics of this Build. # noqa: E501 + + + :return: The statistics of this Build. # noqa: E501 + :rtype: Properties + """ + return self._statistics + + @statistics.setter + def statistics(self, statistics): + """Sets the statistics of this Build. + + + :param statistics: The statistics of this Build. # noqa: E501 + :type: Properties + """ + + self._statistics = statistics + + @property + def status(self): + """Gets the status of this Build. # noqa: E501 + + + :return: The status of this Build. # noqa: E501 + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this Build. + + + :param status: The status of this Build. # noqa: E501 + :type: str + """ + + self._status = status + + @property + def status_text(self): + """Gets the status_text of this Build. # noqa: E501 + + + :return: The status_text of this Build. # noqa: E501 + :rtype: str + """ + return self._status_text + + @status_text.setter + def status_text(self, status_text): + """Sets the status_text of this Build. + + + :param status_text: The status_text of this Build. # noqa: E501 + :type: str + """ + + self._status_text = status_text + + @property + def tags(self): + """Gets the tags of this Build. # noqa: E501 + + + :return: The tags of this Build. # noqa: E501 + :rtype: Tags + """ + return self._tags + + @tags.setter + def tags(self, tags): + """Sets the tags of this Build. + + + :param tags: The tags of this Build. # noqa: E501 + :type: Tags + """ + + self._tags = tags + + @property + def task_id(self): + """Gets the task_id of this Build. # noqa: E501 + + + :return: The task_id of this Build. # noqa: E501 + :rtype: int + """ + return self._task_id + + @task_id.setter + def task_id(self, task_id): + """Sets the task_id of this Build. + + + :param task_id: The task_id of this Build. # noqa: E501 + :type: int + """ + + self._task_id = task_id + + @property + def test_occurrences(self): + """Gets the test_occurrences of this Build. # noqa: E501 + + + :return: The test_occurrences of this Build. # noqa: E501 + :rtype: TestOccurrences + """ + return self._test_occurrences + + @test_occurrences.setter + def test_occurrences(self, test_occurrences): + """Sets the test_occurrences of this Build. + + + :param test_occurrences: The test_occurrences of this Build. # noqa: E501 + :type: TestOccurrences + """ + + self._test_occurrences = test_occurrences + + @property + def triggered(self): + """Gets the triggered of this Build. # noqa: E501 + + + :return: The triggered of this Build. # noqa: E501 + :rtype: TriggeredBy + """ + return self._triggered + + @triggered.setter + def triggered(self, triggered): + """Sets the triggered of this Build. + + + :param triggered: The triggered of this Build. # noqa: E501 + :type: TriggeredBy + """ + + self._triggered = triggered + + @property + def triggering_options(self): + """Gets the triggering_options of this Build. # noqa: E501 + + + :return: The triggering_options of this Build. # noqa: E501 + :rtype: BuildTriggeringOptions + """ + return self._triggering_options + + @triggering_options.setter + def triggering_options(self, triggering_options): + """Sets the triggering_options of this Build. + + + :param triggering_options: The triggering_options of this Build. # noqa: E501 + :type: BuildTriggeringOptions + """ + + self._triggering_options = triggering_options + + @property + def unspecified_branch(self): + """Gets the unspecified_branch of this Build. # noqa: E501 + + + :return: The unspecified_branch of this Build. # noqa: E501 + :rtype: bool + """ + return self._unspecified_branch + + @unspecified_branch.setter + def unspecified_branch(self, unspecified_branch): + """Sets the unspecified_branch of this Build. + + + :param unspecified_branch: The unspecified_branch of this Build. # noqa: E501 + :type: bool + """ + + self._unspecified_branch = unspecified_branch + + @property + def user(self): + """Gets the user of this Build. # noqa: E501 + + + :return: The user of this Build. # noqa: E501 + :rtype: User + """ + return self._user + + @user.setter + def user(self, user): + """Sets the user of this Build. + + + :param user: The user of this Build. # noqa: E501 + :type: User + """ + + self._user = user + + @property + def versioned_settings_revision(self): + """Gets the versioned_settings_revision of this Build. # noqa: E501 + + + :return: The versioned_settings_revision of this Build. # noqa: E501 + :rtype: Revision + """ + return self._versioned_settings_revision + + @versioned_settings_revision.setter + def versioned_settings_revision(self, versioned_settings_revision): + """Sets the versioned_settings_revision of this Build. + + + :param versioned_settings_revision: The versioned_settings_revision of this Build. # noqa: E501 + :type: Revision + """ + + self._versioned_settings_revision = versioned_settings_revision + + @property + def wait_reason(self): + """Gets the wait_reason of this Build. # noqa: E501 + + + :return: The wait_reason of this Build. # noqa: E501 + :rtype: str + """ + return self._wait_reason + + @wait_reason.setter + def wait_reason(self, wait_reason): + """Sets the wait_reason of this Build. + + + :param wait_reason: The wait_reason of this Build. # noqa: E501 + :type: str + """ + + self._wait_reason = wait_reason + + @property + def web_url(self): + """Gets the web_url of this Build. # noqa: E501 + + + :return: The web_url of this Build. # noqa: E501 + :rtype: str + """ + return self._web_url + + @web_url.setter + def web_url(self, web_url): + """Sets the web_url of this Build. + + + :param web_url: The web_url of this Build. # noqa: E501 + :type: str + """ + + self._web_url = web_url + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Build, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Build): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/build_cancel_request.py b/swagger_client/models/build_cancel_request.py new file mode 100644 index 0000000..1d9f559 --- /dev/null +++ b/swagger_client/models/build_cancel_request.py @@ -0,0 +1,141 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class BuildCancelRequest(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'comment': 'str', + 'readd_into_queue': 'bool' + } + + attribute_map = { + 'comment': 'comment', + 'readd_into_queue': 'readdIntoQueue' + } + + def __init__(self, comment=None, readd_into_queue=False): # noqa: E501 + """BuildCancelRequest - a model defined in Swagger""" # noqa: E501 + + self._comment = None + self._readd_into_queue = None + self.discriminator = None + + if comment is not None: + self.comment = comment + if readd_into_queue is not None: + self.readd_into_queue = readd_into_queue + + @property + def comment(self): + """Gets the comment of this BuildCancelRequest. # noqa: E501 + + + :return: The comment of this BuildCancelRequest. # noqa: E501 + :rtype: str + """ + return self._comment + + @comment.setter + def comment(self, comment): + """Sets the comment of this BuildCancelRequest. + + + :param comment: The comment of this BuildCancelRequest. # noqa: E501 + :type: str + """ + + self._comment = comment + + @property + def readd_into_queue(self): + """Gets the readd_into_queue of this BuildCancelRequest. # noqa: E501 + + + :return: The readd_into_queue of this BuildCancelRequest. # noqa: E501 + :rtype: bool + """ + return self._readd_into_queue + + @readd_into_queue.setter + def readd_into_queue(self, readd_into_queue): + """Sets the readd_into_queue of this BuildCancelRequest. + + + :param readd_into_queue: The readd_into_queue of this BuildCancelRequest. # noqa: E501 + :type: bool + """ + + self._readd_into_queue = readd_into_queue + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(BuildCancelRequest, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BuildCancelRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/build_triggering_options.py b/swagger_client/models/build_triggering_options.py new file mode 100644 index 0000000..3222719 --- /dev/null +++ b/swagger_client/models/build_triggering_options.py @@ -0,0 +1,195 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.build_types import BuildTypes # noqa: F401,E501 + + +class BuildTriggeringOptions(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'clean_sources': 'bool', + 'queue_at_top': 'bool', + 'rebuild_all_dependencies': 'bool', + 'rebuild_dependencies': 'BuildTypes' + } + + attribute_map = { + 'clean_sources': 'cleanSources', + 'queue_at_top': 'queueAtTop', + 'rebuild_all_dependencies': 'rebuildAllDependencies', + 'rebuild_dependencies': 'rebuildDependencies' + } + + def __init__(self, clean_sources=False, queue_at_top=False, rebuild_all_dependencies=False, rebuild_dependencies=None): # noqa: E501 + """BuildTriggeringOptions - a model defined in Swagger""" # noqa: E501 + + self._clean_sources = None + self._queue_at_top = None + self._rebuild_all_dependencies = None + self._rebuild_dependencies = None + self.discriminator = None + + if clean_sources is not None: + self.clean_sources = clean_sources + if queue_at_top is not None: + self.queue_at_top = queue_at_top + if rebuild_all_dependencies is not None: + self.rebuild_all_dependencies = rebuild_all_dependencies + if rebuild_dependencies is not None: + self.rebuild_dependencies = rebuild_dependencies + + @property + def clean_sources(self): + """Gets the clean_sources of this BuildTriggeringOptions. # noqa: E501 + + + :return: The clean_sources of this BuildTriggeringOptions. # noqa: E501 + :rtype: bool + """ + return self._clean_sources + + @clean_sources.setter + def clean_sources(self, clean_sources): + """Sets the clean_sources of this BuildTriggeringOptions. + + + :param clean_sources: The clean_sources of this BuildTriggeringOptions. # noqa: E501 + :type: bool + """ + + self._clean_sources = clean_sources + + @property + def queue_at_top(self): + """Gets the queue_at_top of this BuildTriggeringOptions. # noqa: E501 + + + :return: The queue_at_top of this BuildTriggeringOptions. # noqa: E501 + :rtype: bool + """ + return self._queue_at_top + + @queue_at_top.setter + def queue_at_top(self, queue_at_top): + """Sets the queue_at_top of this BuildTriggeringOptions. + + + :param queue_at_top: The queue_at_top of this BuildTriggeringOptions. # noqa: E501 + :type: bool + """ + + self._queue_at_top = queue_at_top + + @property + def rebuild_all_dependencies(self): + """Gets the rebuild_all_dependencies of this BuildTriggeringOptions. # noqa: E501 + + + :return: The rebuild_all_dependencies of this BuildTriggeringOptions. # noqa: E501 + :rtype: bool + """ + return self._rebuild_all_dependencies + + @rebuild_all_dependencies.setter + def rebuild_all_dependencies(self, rebuild_all_dependencies): + """Sets the rebuild_all_dependencies of this BuildTriggeringOptions. + + + :param rebuild_all_dependencies: The rebuild_all_dependencies of this BuildTriggeringOptions. # noqa: E501 + :type: bool + """ + + self._rebuild_all_dependencies = rebuild_all_dependencies + + @property + def rebuild_dependencies(self): + """Gets the rebuild_dependencies of this BuildTriggeringOptions. # noqa: E501 + + + :return: The rebuild_dependencies of this BuildTriggeringOptions. # noqa: E501 + :rtype: BuildTypes + """ + return self._rebuild_dependencies + + @rebuild_dependencies.setter + def rebuild_dependencies(self, rebuild_dependencies): + """Sets the rebuild_dependencies of this BuildTriggeringOptions. + + + :param rebuild_dependencies: The rebuild_dependencies of this BuildTriggeringOptions. # noqa: E501 + :type: BuildTypes + """ + + self._rebuild_dependencies = rebuild_dependencies + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(BuildTriggeringOptions, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BuildTriggeringOptions): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/build_type.py b/swagger_client/models/build_type.py new file mode 100644 index 0000000..4a95bc5 --- /dev/null +++ b/swagger_client/models/build_type.py @@ -0,0 +1,832 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.agent_requirements import AgentRequirements # noqa: F401,E501 +from swagger_client.models.agents import Agents # noqa: F401,E501 +from swagger_client.models.artifact_dependencies import ArtifactDependencies # noqa: F401,E501 +from swagger_client.models.build_type import BuildType # noqa: F401,E501 +from swagger_client.models.builds import Builds # noqa: F401,E501 +from swagger_client.models.features import Features # noqa: F401,E501 +from swagger_client.models.investigations import Investigations # noqa: F401,E501 +from swagger_client.models.links import Links # noqa: F401,E501 +from swagger_client.models.project import Project # noqa: F401,E501 +from swagger_client.models.properties import Properties # noqa: F401,E501 +from swagger_client.models.snapshot_dependencies import SnapshotDependencies # noqa: F401,E501 +from swagger_client.models.steps import Steps # noqa: F401,E501 +from swagger_client.models.triggers import Triggers # noqa: F401,E501 +from swagger_client.models.vcs_root_entries import VcsRootEntries # noqa: F401,E501 + + +class BuildType(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'agent_requirements': 'AgentRequirements', + 'artifact_dependencies': 'ArtifactDependencies', + 'builds': 'Builds', + 'compatible_agents': 'Agents', + 'description': 'str', + 'features': 'Features', + 'href': 'str', + 'id': 'str', + 'internal_id': 'str', + 'investigations': 'Investigations', + 'links': 'Links', + 'locator': 'str', + 'name': 'str', + 'parameters': 'Properties', + 'paused': 'bool', + 'project': 'Project', + 'project_id': 'str', + 'project_internal_id': 'str', + 'project_name': 'str', + 'settings': 'Properties', + 'snapshot_dependencies': 'SnapshotDependencies', + 'steps': 'Steps', + 'template': 'BuildType', + 'template_flag': 'bool', + 'triggers': 'Triggers', + 'uuid': 'str', + 'vcs_root_entries': 'VcsRootEntries', + 'web_url': 'str' + } + + attribute_map = { + 'agent_requirements': 'agent-requirements', + 'artifact_dependencies': 'artifact-dependencies', + 'builds': 'builds', + 'compatible_agents': 'compatibleAgents', + 'description': 'description', + 'features': 'features', + 'href': 'href', + 'id': 'id', + 'internal_id': 'internalId', + 'investigations': 'investigations', + 'links': 'links', + 'locator': 'locator', + 'name': 'name', + 'parameters': 'parameters', + 'paused': 'paused', + 'project': 'project', + 'project_id': 'projectId', + 'project_internal_id': 'projectInternalId', + 'project_name': 'projectName', + 'settings': 'settings', + 'snapshot_dependencies': 'snapshot-dependencies', + 'steps': 'steps', + 'template': 'template', + 'template_flag': 'templateFlag', + 'triggers': 'triggers', + 'uuid': 'uuid', + 'vcs_root_entries': 'vcs-root-entries', + 'web_url': 'webUrl' + } + + def __init__(self, agent_requirements=None, artifact_dependencies=None, builds=None, compatible_agents=None, description=None, features=None, href=None, id=None, internal_id=None, investigations=None, links=None, locator=None, name=None, parameters=None, paused=False, project=None, project_id=None, project_internal_id=None, project_name=None, settings=None, snapshot_dependencies=None, steps=None, template=None, template_flag=False, triggers=None, uuid=None, vcs_root_entries=None, web_url=None): # noqa: E501 + """BuildType - a model defined in Swagger""" # noqa: E501 + + self._agent_requirements = None + self._artifact_dependencies = None + self._builds = None + self._compatible_agents = None + self._description = None + self._features = None + self._href = None + self._id = None + self._internal_id = None + self._investigations = None + self._links = None + self._locator = None + self._name = None + self._parameters = None + self._paused = None + self._project = None + self._project_id = None + self._project_internal_id = None + self._project_name = None + self._settings = None + self._snapshot_dependencies = None + self._steps = None + self._template = None + self._template_flag = None + self._triggers = None + self._uuid = None + self._vcs_root_entries = None + self._web_url = None + self.discriminator = None + + if agent_requirements is not None: + self.agent_requirements = agent_requirements + if artifact_dependencies is not None: + self.artifact_dependencies = artifact_dependencies + if builds is not None: + self.builds = builds + if compatible_agents is not None: + self.compatible_agents = compatible_agents + if description is not None: + self.description = description + if features is not None: + self.features = features + if href is not None: + self.href = href + if id is not None: + self.id = id + if internal_id is not None: + self.internal_id = internal_id + if investigations is not None: + self.investigations = investigations + if links is not None: + self.links = links + if locator is not None: + self.locator = locator + if name is not None: + self.name = name + if parameters is not None: + self.parameters = parameters + if paused is not None: + self.paused = paused + if project is not None: + self.project = project + if project_id is not None: + self.project_id = project_id + if project_internal_id is not None: + self.project_internal_id = project_internal_id + if project_name is not None: + self.project_name = project_name + if settings is not None: + self.settings = settings + if snapshot_dependencies is not None: + self.snapshot_dependencies = snapshot_dependencies + if steps is not None: + self.steps = steps + if template is not None: + self.template = template + if template_flag is not None: + self.template_flag = template_flag + if triggers is not None: + self.triggers = triggers + if uuid is not None: + self.uuid = uuid + if vcs_root_entries is not None: + self.vcs_root_entries = vcs_root_entries + if web_url is not None: + self.web_url = web_url + + @property + def agent_requirements(self): + """Gets the agent_requirements of this BuildType. # noqa: E501 + + + :return: The agent_requirements of this BuildType. # noqa: E501 + :rtype: AgentRequirements + """ + return self._agent_requirements + + @agent_requirements.setter + def agent_requirements(self, agent_requirements): + """Sets the agent_requirements of this BuildType. + + + :param agent_requirements: The agent_requirements of this BuildType. # noqa: E501 + :type: AgentRequirements + """ + + self._agent_requirements = agent_requirements + + @property + def artifact_dependencies(self): + """Gets the artifact_dependencies of this BuildType. # noqa: E501 + + + :return: The artifact_dependencies of this BuildType. # noqa: E501 + :rtype: ArtifactDependencies + """ + return self._artifact_dependencies + + @artifact_dependencies.setter + def artifact_dependencies(self, artifact_dependencies): + """Sets the artifact_dependencies of this BuildType. + + + :param artifact_dependencies: The artifact_dependencies of this BuildType. # noqa: E501 + :type: ArtifactDependencies + """ + + self._artifact_dependencies = artifact_dependencies + + @property + def builds(self): + """Gets the builds of this BuildType. # noqa: E501 + + + :return: The builds of this BuildType. # noqa: E501 + :rtype: Builds + """ + return self._builds + + @builds.setter + def builds(self, builds): + """Sets the builds of this BuildType. + + + :param builds: The builds of this BuildType. # noqa: E501 + :type: Builds + """ + + self._builds = builds + + @property + def compatible_agents(self): + """Gets the compatible_agents of this BuildType. # noqa: E501 + + + :return: The compatible_agents of this BuildType. # noqa: E501 + :rtype: Agents + """ + return self._compatible_agents + + @compatible_agents.setter + def compatible_agents(self, compatible_agents): + """Sets the compatible_agents of this BuildType. + + + :param compatible_agents: The compatible_agents of this BuildType. # noqa: E501 + :type: Agents + """ + + self._compatible_agents = compatible_agents + + @property + def description(self): + """Gets the description of this BuildType. # noqa: E501 + + + :return: The description of this BuildType. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this BuildType. + + + :param description: The description of this BuildType. # noqa: E501 + :type: str + """ + + self._description = description + + @property + def features(self): + """Gets the features of this BuildType. # noqa: E501 + + + :return: The features of this BuildType. # noqa: E501 + :rtype: Features + """ + return self._features + + @features.setter + def features(self, features): + """Sets the features of this BuildType. + + + :param features: The features of this BuildType. # noqa: E501 + :type: Features + """ + + self._features = features + + @property + def href(self): + """Gets the href of this BuildType. # noqa: E501 + + + :return: The href of this BuildType. # noqa: E501 + :rtype: str + """ + return self._href + + @href.setter + def href(self, href): + """Sets the href of this BuildType. + + + :param href: The href of this BuildType. # noqa: E501 + :type: str + """ + + self._href = href + + @property + def id(self): + """Gets the id of this BuildType. # noqa: E501 + + + :return: The id of this BuildType. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this BuildType. + + + :param id: The id of this BuildType. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def internal_id(self): + """Gets the internal_id of this BuildType. # noqa: E501 + + + :return: The internal_id of this BuildType. # noqa: E501 + :rtype: str + """ + return self._internal_id + + @internal_id.setter + def internal_id(self, internal_id): + """Sets the internal_id of this BuildType. + + + :param internal_id: The internal_id of this BuildType. # noqa: E501 + :type: str + """ + + self._internal_id = internal_id + + @property + def investigations(self): + """Gets the investigations of this BuildType. # noqa: E501 + + + :return: The investigations of this BuildType. # noqa: E501 + :rtype: Investigations + """ + return self._investigations + + @investigations.setter + def investigations(self, investigations): + """Sets the investigations of this BuildType. + + + :param investigations: The investigations of this BuildType. # noqa: E501 + :type: Investigations + """ + + self._investigations = investigations + + @property + def links(self): + """Gets the links of this BuildType. # noqa: E501 + + + :return: The links of this BuildType. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this BuildType. + + + :param links: The links of this BuildType. # noqa: E501 + :type: Links + """ + + self._links = links + + @property + def locator(self): + """Gets the locator of this BuildType. # noqa: E501 + + + :return: The locator of this BuildType. # noqa: E501 + :rtype: str + """ + return self._locator + + @locator.setter + def locator(self, locator): + """Sets the locator of this BuildType. + + + :param locator: The locator of this BuildType. # noqa: E501 + :type: str + """ + + self._locator = locator + + @property + def name(self): + """Gets the name of this BuildType. # noqa: E501 + + + :return: The name of this BuildType. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this BuildType. + + + :param name: The name of this BuildType. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def parameters(self): + """Gets the parameters of this BuildType. # noqa: E501 + + + :return: The parameters of this BuildType. # noqa: E501 + :rtype: Properties + """ + return self._parameters + + @parameters.setter + def parameters(self, parameters): + """Sets the parameters of this BuildType. + + + :param parameters: The parameters of this BuildType. # noqa: E501 + :type: Properties + """ + + self._parameters = parameters + + @property + def paused(self): + """Gets the paused of this BuildType. # noqa: E501 + + + :return: The paused of this BuildType. # noqa: E501 + :rtype: bool + """ + return self._paused + + @paused.setter + def paused(self, paused): + """Sets the paused of this BuildType. + + + :param paused: The paused of this BuildType. # noqa: E501 + :type: bool + """ + + self._paused = paused + + @property + def project(self): + """Gets the project of this BuildType. # noqa: E501 + + + :return: The project of this BuildType. # noqa: E501 + :rtype: Project + """ + return self._project + + @project.setter + def project(self, project): + """Sets the project of this BuildType. + + + :param project: The project of this BuildType. # noqa: E501 + :type: Project + """ + + self._project = project + + @property + def project_id(self): + """Gets the project_id of this BuildType. # noqa: E501 + + + :return: The project_id of this BuildType. # noqa: E501 + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this BuildType. + + + :param project_id: The project_id of this BuildType. # noqa: E501 + :type: str + """ + + self._project_id = project_id + + @property + def project_internal_id(self): + """Gets the project_internal_id of this BuildType. # noqa: E501 + + + :return: The project_internal_id of this BuildType. # noqa: E501 + :rtype: str + """ + return self._project_internal_id + + @project_internal_id.setter + def project_internal_id(self, project_internal_id): + """Sets the project_internal_id of this BuildType. + + + :param project_internal_id: The project_internal_id of this BuildType. # noqa: E501 + :type: str + """ + + self._project_internal_id = project_internal_id + + @property + def project_name(self): + """Gets the project_name of this BuildType. # noqa: E501 + + + :return: The project_name of this BuildType. # noqa: E501 + :rtype: str + """ + return self._project_name + + @project_name.setter + def project_name(self, project_name): + """Sets the project_name of this BuildType. + + + :param project_name: The project_name of this BuildType. # noqa: E501 + :type: str + """ + + self._project_name = project_name + + @property + def settings(self): + """Gets the settings of this BuildType. # noqa: E501 + + + :return: The settings of this BuildType. # noqa: E501 + :rtype: Properties + """ + return self._settings + + @settings.setter + def settings(self, settings): + """Sets the settings of this BuildType. + + + :param settings: The settings of this BuildType. # noqa: E501 + :type: Properties + """ + + self._settings = settings + + @property + def snapshot_dependencies(self): + """Gets the snapshot_dependencies of this BuildType. # noqa: E501 + + + :return: The snapshot_dependencies of this BuildType. # noqa: E501 + :rtype: SnapshotDependencies + """ + return self._snapshot_dependencies + + @snapshot_dependencies.setter + def snapshot_dependencies(self, snapshot_dependencies): + """Sets the snapshot_dependencies of this BuildType. + + + :param snapshot_dependencies: The snapshot_dependencies of this BuildType. # noqa: E501 + :type: SnapshotDependencies + """ + + self._snapshot_dependencies = snapshot_dependencies + + @property + def steps(self): + """Gets the steps of this BuildType. # noqa: E501 + + + :return: The steps of this BuildType. # noqa: E501 + :rtype: Steps + """ + return self._steps + + @steps.setter + def steps(self, steps): + """Sets the steps of this BuildType. + + + :param steps: The steps of this BuildType. # noqa: E501 + :type: Steps + """ + + self._steps = steps + + @property + def template(self): + """Gets the template of this BuildType. # noqa: E501 + + + :return: The template of this BuildType. # noqa: E501 + :rtype: BuildType + """ + return self._template + + @template.setter + def template(self, template): + """Sets the template of this BuildType. + + + :param template: The template of this BuildType. # noqa: E501 + :type: BuildType + """ + + self._template = template + + @property + def template_flag(self): + """Gets the template_flag of this BuildType. # noqa: E501 + + + :return: The template_flag of this BuildType. # noqa: E501 + :rtype: bool + """ + return self._template_flag + + @template_flag.setter + def template_flag(self, template_flag): + """Sets the template_flag of this BuildType. + + + :param template_flag: The template_flag of this BuildType. # noqa: E501 + :type: bool + """ + + self._template_flag = template_flag + + @property + def triggers(self): + """Gets the triggers of this BuildType. # noqa: E501 + + + :return: The triggers of this BuildType. # noqa: E501 + :rtype: Triggers + """ + return self._triggers + + @triggers.setter + def triggers(self, triggers): + """Sets the triggers of this BuildType. + + + :param triggers: The triggers of this BuildType. # noqa: E501 + :type: Triggers + """ + + self._triggers = triggers + + @property + def uuid(self): + """Gets the uuid of this BuildType. # noqa: E501 + + + :return: The uuid of this BuildType. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this BuildType. + + + :param uuid: The uuid of this BuildType. # noqa: E501 + :type: str + """ + + self._uuid = uuid + + @property + def vcs_root_entries(self): + """Gets the vcs_root_entries of this BuildType. # noqa: E501 + + + :return: The vcs_root_entries of this BuildType. # noqa: E501 + :rtype: VcsRootEntries + """ + return self._vcs_root_entries + + @vcs_root_entries.setter + def vcs_root_entries(self, vcs_root_entries): + """Sets the vcs_root_entries of this BuildType. + + + :param vcs_root_entries: The vcs_root_entries of this BuildType. # noqa: E501 + :type: VcsRootEntries + """ + + self._vcs_root_entries = vcs_root_entries + + @property + def web_url(self): + """Gets the web_url of this BuildType. # noqa: E501 + + + :return: The web_url of this BuildType. # noqa: E501 + :rtype: str + """ + return self._web_url + + @web_url.setter + def web_url(self, web_url): + """Sets the web_url of this BuildType. + + + :param web_url: The web_url of this BuildType. # noqa: E501 + :type: str + """ + + self._web_url = web_url + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(BuildType, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BuildType): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/build_types.py b/swagger_client/models/build_types.py new file mode 100644 index 0000000..e0a052f --- /dev/null +++ b/swagger_client/models/build_types.py @@ -0,0 +1,221 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.build_type import BuildType # noqa: F401,E501 + + +class BuildTypes(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'build_type': 'list[BuildType]', + 'count': 'int', + 'href': 'str', + 'next_href': 'str', + 'prev_href': 'str' + } + + attribute_map = { + 'build_type': 'buildType', + 'count': 'count', + 'href': 'href', + 'next_href': 'nextHref', + 'prev_href': 'prevHref' + } + + def __init__(self, build_type=None, count=None, href=None, next_href=None, prev_href=None): # noqa: E501 + """BuildTypes - a model defined in Swagger""" # noqa: E501 + + self._build_type = None + self._count = None + self._href = None + self._next_href = None + self._prev_href = None + self.discriminator = None + + if build_type is not None: + self.build_type = build_type + if count is not None: + self.count = count + if href is not None: + self.href = href + if next_href is not None: + self.next_href = next_href + if prev_href is not None: + self.prev_href = prev_href + + @property + def build_type(self): + """Gets the build_type of this BuildTypes. # noqa: E501 + + + :return: The build_type of this BuildTypes. # noqa: E501 + :rtype: list[BuildType] + """ + return self._build_type + + @build_type.setter + def build_type(self, build_type): + """Sets the build_type of this BuildTypes. + + + :param build_type: The build_type of this BuildTypes. # noqa: E501 + :type: list[BuildType] + """ + + self._build_type = build_type + + @property + def count(self): + """Gets the count of this BuildTypes. # noqa: E501 + + + :return: The count of this BuildTypes. # noqa: E501 + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this BuildTypes. + + + :param count: The count of this BuildTypes. # noqa: E501 + :type: int + """ + + self._count = count + + @property + def href(self): + """Gets the href of this BuildTypes. # noqa: E501 + + + :return: The href of this BuildTypes. # noqa: E501 + :rtype: str + """ + return self._href + + @href.setter + def href(self, href): + """Sets the href of this BuildTypes. + + + :param href: The href of this BuildTypes. # noqa: E501 + :type: str + """ + + self._href = href + + @property + def next_href(self): + """Gets the next_href of this BuildTypes. # noqa: E501 + + + :return: The next_href of this BuildTypes. # noqa: E501 + :rtype: str + """ + return self._next_href + + @next_href.setter + def next_href(self, next_href): + """Sets the next_href of this BuildTypes. + + + :param next_href: The next_href of this BuildTypes. # noqa: E501 + :type: str + """ + + self._next_href = next_href + + @property + def prev_href(self): + """Gets the prev_href of this BuildTypes. # noqa: E501 + + + :return: The prev_href of this BuildTypes. # noqa: E501 + :rtype: str + """ + return self._prev_href + + @prev_href.setter + def prev_href(self, prev_href): + """Sets the prev_href of this BuildTypes. + + + :param prev_href: The prev_href of this BuildTypes. # noqa: E501 + :type: str + """ + + self._prev_href = prev_href + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(BuildTypes, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BuildTypes): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/builds.py b/swagger_client/models/builds.py new file mode 100644 index 0000000..699c9ee --- /dev/null +++ b/swagger_client/models/builds.py @@ -0,0 +1,221 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.build import Build # noqa: F401,E501 + + +class Builds(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'build': 'list[Build]', + 'count': 'int', + 'href': 'str', + 'next_href': 'str', + 'prev_href': 'str' + } + + attribute_map = { + 'build': 'build', + 'count': 'count', + 'href': 'href', + 'next_href': 'nextHref', + 'prev_href': 'prevHref' + } + + def __init__(self, build=None, count=None, href=None, next_href=None, prev_href=None): # noqa: E501 + """Builds - a model defined in Swagger""" # noqa: E501 + + self._build = None + self._count = None + self._href = None + self._next_href = None + self._prev_href = None + self.discriminator = None + + if build is not None: + self.build = build + if count is not None: + self.count = count + if href is not None: + self.href = href + if next_href is not None: + self.next_href = next_href + if prev_href is not None: + self.prev_href = prev_href + + @property + def build(self): + """Gets the build of this Builds. # noqa: E501 + + + :return: The build of this Builds. # noqa: E501 + :rtype: list[Build] + """ + return self._build + + @build.setter + def build(self, build): + """Sets the build of this Builds. + + + :param build: The build of this Builds. # noqa: E501 + :type: list[Build] + """ + + self._build = build + + @property + def count(self): + """Gets the count of this Builds. # noqa: E501 + + + :return: The count of this Builds. # noqa: E501 + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this Builds. + + + :param count: The count of this Builds. # noqa: E501 + :type: int + """ + + self._count = count + + @property + def href(self): + """Gets the href of this Builds. # noqa: E501 + + + :return: The href of this Builds. # noqa: E501 + :rtype: str + """ + return self._href + + @href.setter + def href(self, href): + """Sets the href of this Builds. + + + :param href: The href of this Builds. # noqa: E501 + :type: str + """ + + self._href = href + + @property + def next_href(self): + """Gets the next_href of this Builds. # noqa: E501 + + + :return: The next_href of this Builds. # noqa: E501 + :rtype: str + """ + return self._next_href + + @next_href.setter + def next_href(self, next_href): + """Sets the next_href of this Builds. + + + :param next_href: The next_href of this Builds. # noqa: E501 + :type: str + """ + + self._next_href = next_href + + @property + def prev_href(self): + """Gets the prev_href of this Builds. # noqa: E501 + + + :return: The prev_href of this Builds. # noqa: E501 + :rtype: str + """ + return self._prev_href + + @prev_href.setter + def prev_href(self, prev_href): + """Sets the prev_href of this Builds. + + + :param prev_href: The prev_href of this Builds. # noqa: E501 + :type: str + """ + + self._prev_href = prev_href + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Builds, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Builds): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/change.py b/swagger_client/models/change.py new file mode 100644 index 0000000..7eebeb6 --- /dev/null +++ b/swagger_client/models/change.py @@ -0,0 +1,511 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.changes import Changes # noqa: F401,E501 +from swagger_client.models.file_changes import FileChanges # noqa: F401,E501 +from swagger_client.models.items import Items # noqa: F401,E501 +from swagger_client.models.user import User # noqa: F401,E501 +from swagger_client.models.vcs_root_instance import VcsRootInstance # noqa: F401,E501 + + +class Change(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'comment': 'str', + '_date': 'str', + 'files': 'FileChanges', + 'href': 'str', + 'id': 'int', + 'internal_version': 'str', + 'locator': 'str', + 'parent_changes': 'Changes', + 'parent_revisions': 'Items', + 'personal': 'bool', + 'registration_date': 'str', + 'user': 'User', + 'username': 'str', + 'vcs_root_instance': 'VcsRootInstance', + 'version': 'str', + 'web_url': 'str' + } + + attribute_map = { + 'comment': 'comment', + '_date': 'date', + 'files': 'files', + 'href': 'href', + 'id': 'id', + 'internal_version': 'internalVersion', + 'locator': 'locator', + 'parent_changes': 'parentChanges', + 'parent_revisions': 'parentRevisions', + 'personal': 'personal', + 'registration_date': 'registrationDate', + 'user': 'user', + 'username': 'username', + 'vcs_root_instance': 'vcsRootInstance', + 'version': 'version', + 'web_url': 'webUrl' + } + + def __init__(self, comment=None, _date=None, files=None, href=None, id=None, internal_version=None, locator=None, parent_changes=None, parent_revisions=None, personal=False, registration_date=None, user=None, username=None, vcs_root_instance=None, version=None, web_url=None): # noqa: E501 + """Change - a model defined in Swagger""" # noqa: E501 + + self._comment = None + self.__date = None + self._files = None + self._href = None + self._id = None + self._internal_version = None + self._locator = None + self._parent_changes = None + self._parent_revisions = None + self._personal = None + self._registration_date = None + self._user = None + self._username = None + self._vcs_root_instance = None + self._version = None + self._web_url = None + self.discriminator = None + + if comment is not None: + self.comment = comment + if _date is not None: + self._date = _date + if files is not None: + self.files = files + if href is not None: + self.href = href + if id is not None: + self.id = id + if internal_version is not None: + self.internal_version = internal_version + if locator is not None: + self.locator = locator + if parent_changes is not None: + self.parent_changes = parent_changes + if parent_revisions is not None: + self.parent_revisions = parent_revisions + if personal is not None: + self.personal = personal + if registration_date is not None: + self.registration_date = registration_date + if user is not None: + self.user = user + if username is not None: + self.username = username + if vcs_root_instance is not None: + self.vcs_root_instance = vcs_root_instance + if version is not None: + self.version = version + if web_url is not None: + self.web_url = web_url + + @property + def comment(self): + """Gets the comment of this Change. # noqa: E501 + + + :return: The comment of this Change. # noqa: E501 + :rtype: str + """ + return self._comment + + @comment.setter + def comment(self, comment): + """Sets the comment of this Change. + + + :param comment: The comment of this Change. # noqa: E501 + :type: str + """ + + self._comment = comment + + @property + def _date(self): + """Gets the _date of this Change. # noqa: E501 + + + :return: The _date of this Change. # noqa: E501 + :rtype: str + """ + return self.__date + + @_date.setter + def _date(self, _date): + """Sets the _date of this Change. + + + :param _date: The _date of this Change. # noqa: E501 + :type: str + """ + + self.__date = _date + + @property + def files(self): + """Gets the files of this Change. # noqa: E501 + + + :return: The files of this Change. # noqa: E501 + :rtype: FileChanges + """ + return self._files + + @files.setter + def files(self, files): + """Sets the files of this Change. + + + :param files: The files of this Change. # noqa: E501 + :type: FileChanges + """ + + self._files = files + + @property + def href(self): + """Gets the href of this Change. # noqa: E501 + + + :return: The href of this Change. # noqa: E501 + :rtype: str + """ + return self._href + + @href.setter + def href(self, href): + """Sets the href of this Change. + + + :param href: The href of this Change. # noqa: E501 + :type: str + """ + + self._href = href + + @property + def id(self): + """Gets the id of this Change. # noqa: E501 + + + :return: The id of this Change. # noqa: E501 + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this Change. + + + :param id: The id of this Change. # noqa: E501 + :type: int + """ + + self._id = id + + @property + def internal_version(self): + """Gets the internal_version of this Change. # noqa: E501 + + + :return: The internal_version of this Change. # noqa: E501 + :rtype: str + """ + return self._internal_version + + @internal_version.setter + def internal_version(self, internal_version): + """Sets the internal_version of this Change. + + + :param internal_version: The internal_version of this Change. # noqa: E501 + :type: str + """ + + self._internal_version = internal_version + + @property + def locator(self): + """Gets the locator of this Change. # noqa: E501 + + + :return: The locator of this Change. # noqa: E501 + :rtype: str + """ + return self._locator + + @locator.setter + def locator(self, locator): + """Sets the locator of this Change. + + + :param locator: The locator of this Change. # noqa: E501 + :type: str + """ + + self._locator = locator + + @property + def parent_changes(self): + """Gets the parent_changes of this Change. # noqa: E501 + + + :return: The parent_changes of this Change. # noqa: E501 + :rtype: Changes + """ + return self._parent_changes + + @parent_changes.setter + def parent_changes(self, parent_changes): + """Sets the parent_changes of this Change. + + + :param parent_changes: The parent_changes of this Change. # noqa: E501 + :type: Changes + """ + + self._parent_changes = parent_changes + + @property + def parent_revisions(self): + """Gets the parent_revisions of this Change. # noqa: E501 + + + :return: The parent_revisions of this Change. # noqa: E501 + :rtype: Items + """ + return self._parent_revisions + + @parent_revisions.setter + def parent_revisions(self, parent_revisions): + """Sets the parent_revisions of this Change. + + + :param parent_revisions: The parent_revisions of this Change. # noqa: E501 + :type: Items + """ + + self._parent_revisions = parent_revisions + + @property + def personal(self): + """Gets the personal of this Change. # noqa: E501 + + + :return: The personal of this Change. # noqa: E501 + :rtype: bool + """ + return self._personal + + @personal.setter + def personal(self, personal): + """Sets the personal of this Change. + + + :param personal: The personal of this Change. # noqa: E501 + :type: bool + """ + + self._personal = personal + + @property + def registration_date(self): + """Gets the registration_date of this Change. # noqa: E501 + + + :return: The registration_date of this Change. # noqa: E501 + :rtype: str + """ + return self._registration_date + + @registration_date.setter + def registration_date(self, registration_date): + """Sets the registration_date of this Change. + + + :param registration_date: The registration_date of this Change. # noqa: E501 + :type: str + """ + + self._registration_date = registration_date + + @property + def user(self): + """Gets the user of this Change. # noqa: E501 + + + :return: The user of this Change. # noqa: E501 + :rtype: User + """ + return self._user + + @user.setter + def user(self, user): + """Sets the user of this Change. + + + :param user: The user of this Change. # noqa: E501 + :type: User + """ + + self._user = user + + @property + def username(self): + """Gets the username of this Change. # noqa: E501 + + + :return: The username of this Change. # noqa: E501 + :rtype: str + """ + return self._username + + @username.setter + def username(self, username): + """Sets the username of this Change. + + + :param username: The username of this Change. # noqa: E501 + :type: str + """ + + self._username = username + + @property + def vcs_root_instance(self): + """Gets the vcs_root_instance of this Change. # noqa: E501 + + + :return: The vcs_root_instance of this Change. # noqa: E501 + :rtype: VcsRootInstance + """ + return self._vcs_root_instance + + @vcs_root_instance.setter + def vcs_root_instance(self, vcs_root_instance): + """Sets the vcs_root_instance of this Change. + + + :param vcs_root_instance: The vcs_root_instance of this Change. # noqa: E501 + :type: VcsRootInstance + """ + + self._vcs_root_instance = vcs_root_instance + + @property + def version(self): + """Gets the version of this Change. # noqa: E501 + + + :return: The version of this Change. # noqa: E501 + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this Change. + + + :param version: The version of this Change. # noqa: E501 + :type: str + """ + + self._version = version + + @property + def web_url(self): + """Gets the web_url of this Change. # noqa: E501 + + + :return: The web_url of this Change. # noqa: E501 + :rtype: str + """ + return self._web_url + + @web_url.setter + def web_url(self, web_url): + """Sets the web_url of this Change. + + + :param web_url: The web_url of this Change. # noqa: E501 + :type: str + """ + + self._web_url = web_url + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Change, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Change): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/changes.py b/swagger_client/models/changes.py new file mode 100644 index 0000000..b5f3d2b --- /dev/null +++ b/swagger_client/models/changes.py @@ -0,0 +1,221 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.change import Change # noqa: F401,E501 + + +class Changes(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'change': 'list[Change]', + 'count': 'int', + 'href': 'str', + 'next_href': 'str', + 'prev_href': 'str' + } + + attribute_map = { + 'change': 'change', + 'count': 'count', + 'href': 'href', + 'next_href': 'nextHref', + 'prev_href': 'prevHref' + } + + def __init__(self, change=None, count=None, href=None, next_href=None, prev_href=None): # noqa: E501 + """Changes - a model defined in Swagger""" # noqa: E501 + + self._change = None + self._count = None + self._href = None + self._next_href = None + self._prev_href = None + self.discriminator = None + + if change is not None: + self.change = change + if count is not None: + self.count = count + if href is not None: + self.href = href + if next_href is not None: + self.next_href = next_href + if prev_href is not None: + self.prev_href = prev_href + + @property + def change(self): + """Gets the change of this Changes. # noqa: E501 + + + :return: The change of this Changes. # noqa: E501 + :rtype: list[Change] + """ + return self._change + + @change.setter + def change(self, change): + """Sets the change of this Changes. + + + :param change: The change of this Changes. # noqa: E501 + :type: list[Change] + """ + + self._change = change + + @property + def count(self): + """Gets the count of this Changes. # noqa: E501 + + + :return: The count of this Changes. # noqa: E501 + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this Changes. + + + :param count: The count of this Changes. # noqa: E501 + :type: int + """ + + self._count = count + + @property + def href(self): + """Gets the href of this Changes. # noqa: E501 + + + :return: The href of this Changes. # noqa: E501 + :rtype: str + """ + return self._href + + @href.setter + def href(self, href): + """Sets the href of this Changes. + + + :param href: The href of this Changes. # noqa: E501 + :type: str + """ + + self._href = href + + @property + def next_href(self): + """Gets the next_href of this Changes. # noqa: E501 + + + :return: The next_href of this Changes. # noqa: E501 + :rtype: str + """ + return self._next_href + + @next_href.setter + def next_href(self, next_href): + """Sets the next_href of this Changes. + + + :param next_href: The next_href of this Changes. # noqa: E501 + :type: str + """ + + self._next_href = next_href + + @property + def prev_href(self): + """Gets the prev_href of this Changes. # noqa: E501 + + + :return: The prev_href of this Changes. # noqa: E501 + :rtype: str + """ + return self._prev_href + + @prev_href.setter + def prev_href(self, prev_href): + """Sets the prev_href of this Changes. + + + :param prev_href: The prev_href of this Changes. # noqa: E501 + :type: str + """ + + self._prev_href = prev_href + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Changes, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Changes): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/comment.py b/swagger_client/models/comment.py new file mode 100644 index 0000000..ad1da57 --- /dev/null +++ b/swagger_client/models/comment.py @@ -0,0 +1,169 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.user import User # noqa: F401,E501 + + +class Comment(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'text': 'str', + 'timestamp': 'str', + 'user': 'User' + } + + attribute_map = { + 'text': 'text', + 'timestamp': 'timestamp', + 'user': 'user' + } + + def __init__(self, text=None, timestamp=None, user=None): # noqa: E501 + """Comment - a model defined in Swagger""" # noqa: E501 + + self._text = None + self._timestamp = None + self._user = None + self.discriminator = None + + if text is not None: + self.text = text + if timestamp is not None: + self.timestamp = timestamp + if user is not None: + self.user = user + + @property + def text(self): + """Gets the text of this Comment. # noqa: E501 + + + :return: The text of this Comment. # noqa: E501 + :rtype: str + """ + return self._text + + @text.setter + def text(self, text): + """Sets the text of this Comment. + + + :param text: The text of this Comment. # noqa: E501 + :type: str + """ + + self._text = text + + @property + def timestamp(self): + """Gets the timestamp of this Comment. # noqa: E501 + + + :return: The timestamp of this Comment. # noqa: E501 + :rtype: str + """ + return self._timestamp + + @timestamp.setter + def timestamp(self, timestamp): + """Sets the timestamp of this Comment. + + + :param timestamp: The timestamp of this Comment. # noqa: E501 + :type: str + """ + + self._timestamp = timestamp + + @property + def user(self): + """Gets the user of this Comment. # noqa: E501 + + + :return: The user of this Comment. # noqa: E501 + :rtype: User + """ + return self._user + + @user.setter + def user(self, user): + """Sets the user of this Comment. + + + :param user: The user of this Comment. # noqa: E501 + :type: User + """ + + self._user = user + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Comment, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Comment): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/compatibilities.py b/swagger_client/models/compatibilities.py new file mode 100644 index 0000000..1555d7e --- /dev/null +++ b/swagger_client/models/compatibilities.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.compatibility import Compatibility # noqa: F401,E501 + + +class Compatibilities(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'compatibility': 'list[Compatibility]', + 'count': 'int' + } + + attribute_map = { + 'compatibility': 'compatibility', + 'count': 'count' + } + + def __init__(self, compatibility=None, count=None): # noqa: E501 + """Compatibilities - a model defined in Swagger""" # noqa: E501 + + self._compatibility = None + self._count = None + self.discriminator = None + + if compatibility is not None: + self.compatibility = compatibility + if count is not None: + self.count = count + + @property + def compatibility(self): + """Gets the compatibility of this Compatibilities. # noqa: E501 + + + :return: The compatibility of this Compatibilities. # noqa: E501 + :rtype: list[Compatibility] + """ + return self._compatibility + + @compatibility.setter + def compatibility(self, compatibility): + """Sets the compatibility of this Compatibilities. + + + :param compatibility: The compatibility of this Compatibilities. # noqa: E501 + :type: list[Compatibility] + """ + + self._compatibility = compatibility + + @property + def count(self): + """Gets the count of this Compatibilities. # noqa: E501 + + + :return: The count of this Compatibilities. # noqa: E501 + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this Compatibilities. + + + :param count: The count of this Compatibilities. # noqa: E501 + :type: int + """ + + self._count = count + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Compatibilities, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Compatibilities): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/compatibility.py b/swagger_client/models/compatibility.py new file mode 100644 index 0000000..700c6df --- /dev/null +++ b/swagger_client/models/compatibility.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.agent import Agent # noqa: F401,E501 +from swagger_client.models.build_type import BuildType # noqa: F401,E501 +from swagger_client.models.requirements import Requirements # noqa: F401,E501 + + +class Compatibility(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'agent': 'Agent', + 'build_type': 'BuildType', + 'compatible': 'bool', + 'unmet_requirements': 'Requirements' + } + + attribute_map = { + 'agent': 'agent', + 'build_type': 'buildType', + 'compatible': 'compatible', + 'unmet_requirements': 'unmetRequirements' + } + + def __init__(self, agent=None, build_type=None, compatible=False, unmet_requirements=None): # noqa: E501 + """Compatibility - a model defined in Swagger""" # noqa: E501 + + self._agent = None + self._build_type = None + self._compatible = None + self._unmet_requirements = None + self.discriminator = None + + if agent is not None: + self.agent = agent + if build_type is not None: + self.build_type = build_type + if compatible is not None: + self.compatible = compatible + if unmet_requirements is not None: + self.unmet_requirements = unmet_requirements + + @property + def agent(self): + """Gets the agent of this Compatibility. # noqa: E501 + + + :return: The agent of this Compatibility. # noqa: E501 + :rtype: Agent + """ + return self._agent + + @agent.setter + def agent(self, agent): + """Sets the agent of this Compatibility. + + + :param agent: The agent of this Compatibility. # noqa: E501 + :type: Agent + """ + + self._agent = agent + + @property + def build_type(self): + """Gets the build_type of this Compatibility. # noqa: E501 + + + :return: The build_type of this Compatibility. # noqa: E501 + :rtype: BuildType + """ + return self._build_type + + @build_type.setter + def build_type(self, build_type): + """Sets the build_type of this Compatibility. + + + :param build_type: The build_type of this Compatibility. # noqa: E501 + :type: BuildType + """ + + self._build_type = build_type + + @property + def compatible(self): + """Gets the compatible of this Compatibility. # noqa: E501 + + + :return: The compatible of this Compatibility. # noqa: E501 + :rtype: bool + """ + return self._compatible + + @compatible.setter + def compatible(self, compatible): + """Sets the compatible of this Compatibility. + + + :param compatible: The compatible of this Compatibility. # noqa: E501 + :type: bool + """ + + self._compatible = compatible + + @property + def unmet_requirements(self): + """Gets the unmet_requirements of this Compatibility. # noqa: E501 + + + :return: The unmet_requirements of this Compatibility. # noqa: E501 + :rtype: Requirements + """ + return self._unmet_requirements + + @unmet_requirements.setter + def unmet_requirements(self, unmet_requirements): + """Sets the unmet_requirements of this Compatibility. + + + :param unmet_requirements: The unmet_requirements of this Compatibility. # noqa: E501 + :type: Requirements + """ + + self._unmet_requirements = unmet_requirements + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Compatibility, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Compatibility): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/datas.py b/swagger_client/models/datas.py new file mode 100644 index 0000000..c34aa14 --- /dev/null +++ b/swagger_client/models/datas.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.meta_data import MetaData # noqa: F401,E501 + + +class Datas(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'data': 'list[MetaData]' + } + + attribute_map = { + 'count': 'count', + 'data': 'data' + } + + def __init__(self, count=None, data=None): # noqa: E501 + """Datas - a model defined in Swagger""" # noqa: E501 + + self._count = None + self._data = None + self.discriminator = None + + if count is not None: + self.count = count + if data is not None: + self.data = data + + @property + def count(self): + """Gets the count of this Datas. # noqa: E501 + + + :return: The count of this Datas. # noqa: E501 + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this Datas. + + + :param count: The count of this Datas. # noqa: E501 + :type: int + """ + + self._count = count + + @property + def data(self): + """Gets the data of this Datas. # noqa: E501 + + + :return: The data of this Datas. # noqa: E501 + :rtype: list[MetaData] + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this Datas. + + + :param data: The data of this Datas. # noqa: E501 + :type: list[MetaData] + """ + + self._data = data + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Datas, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Datas): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/enabled_info.py b/swagger_client/models/enabled_info.py new file mode 100644 index 0000000..85f8f30 --- /dev/null +++ b/swagger_client/models/enabled_info.py @@ -0,0 +1,169 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.comment import Comment # noqa: F401,E501 + + +class EnabledInfo(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'comment': 'Comment', + 'status': 'bool', + 'status_switch_time': 'str' + } + + attribute_map = { + 'comment': 'comment', + 'status': 'status', + 'status_switch_time': 'statusSwitchTime' + } + + def __init__(self, comment=None, status=False, status_switch_time=None): # noqa: E501 + """EnabledInfo - a model defined in Swagger""" # noqa: E501 + + self._comment = None + self._status = None + self._status_switch_time = None + self.discriminator = None + + if comment is not None: + self.comment = comment + if status is not None: + self.status = status + if status_switch_time is not None: + self.status_switch_time = status_switch_time + + @property + def comment(self): + """Gets the comment of this EnabledInfo. # noqa: E501 + + + :return: The comment of this EnabledInfo. # noqa: E501 + :rtype: Comment + """ + return self._comment + + @comment.setter + def comment(self, comment): + """Sets the comment of this EnabledInfo. + + + :param comment: The comment of this EnabledInfo. # noqa: E501 + :type: Comment + """ + + self._comment = comment + + @property + def status(self): + """Gets the status of this EnabledInfo. # noqa: E501 + + + :return: The status of this EnabledInfo. # noqa: E501 + :rtype: bool + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this EnabledInfo. + + + :param status: The status of this EnabledInfo. # noqa: E501 + :type: bool + """ + + self._status = status + + @property + def status_switch_time(self): + """Gets the status_switch_time of this EnabledInfo. # noqa: E501 + + + :return: The status_switch_time of this EnabledInfo. # noqa: E501 + :rtype: str + """ + return self._status_switch_time + + @status_switch_time.setter + def status_switch_time(self, status_switch_time): + """Sets the status_switch_time of this EnabledInfo. + + + :param status_switch_time: The status_switch_time of this EnabledInfo. # noqa: E501 + :type: str + """ + + self._status_switch_time = status_switch_time + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(EnabledInfo, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, EnabledInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/entries.py b/swagger_client/models/entries.py new file mode 100644 index 0000000..86e28f3 --- /dev/null +++ b/swagger_client/models/entries.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.entry import Entry # noqa: F401,E501 + + +class Entries(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'entry': 'list[Entry]' + } + + attribute_map = { + 'count': 'count', + 'entry': 'entry' + } + + def __init__(self, count=None, entry=None): # noqa: E501 + """Entries - a model defined in Swagger""" # noqa: E501 + + self._count = None + self._entry = None + self.discriminator = None + + if count is not None: + self.count = count + if entry is not None: + self.entry = entry + + @property + def count(self): + """Gets the count of this Entries. # noqa: E501 + + + :return: The count of this Entries. # noqa: E501 + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this Entries. + + + :param count: The count of this Entries. # noqa: E501 + :type: int + """ + + self._count = count + + @property + def entry(self): + """Gets the entry of this Entries. # noqa: E501 + + + :return: The entry of this Entries. # noqa: E501 + :rtype: list[Entry] + """ + return self._entry + + @entry.setter + def entry(self, entry): + """Sets the entry of this Entries. + + + :param entry: The entry of this Entries. # noqa: E501 + :type: list[Entry] + """ + + self._entry = entry + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Entries, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Entries): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/entry.py b/swagger_client/models/entry.py new file mode 100644 index 0000000..883e3f6 --- /dev/null +++ b/swagger_client/models/entry.py @@ -0,0 +1,141 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class Entry(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'name': 'str', + 'value': 'str' + } + + attribute_map = { + 'name': 'name', + 'value': 'value' + } + + def __init__(self, name=None, value=None): # noqa: E501 + """Entry - a model defined in Swagger""" # noqa: E501 + + self._name = None + self._value = None + self.discriminator = None + + if name is not None: + self.name = name + if value is not None: + self.value = value + + @property + def name(self): + """Gets the name of this Entry. # noqa: E501 + + + :return: The name of this Entry. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this Entry. + + + :param name: The name of this Entry. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def value(self): + """Gets the value of this Entry. # noqa: E501 + + + :return: The value of this Entry. # noqa: E501 + :rtype: str + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this Entry. + + + :param value: The value of this Entry. # noqa: E501 + :type: str + """ + + self._value = value + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Entry, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Entry): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/exception.py b/swagger_client/models/exception.py new file mode 100644 index 0000000..17419f1 --- /dev/null +++ b/swagger_client/models/exception.py @@ -0,0 +1,222 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.stack_trace_element import StackTraceElement # noqa: F401,E501 +from swagger_client.models.throwable import Throwable # noqa: F401,E501 + + +class Exception(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'cause': 'Throwable', + 'localized_message': 'str', + 'message': 'str', + 'stack_trace': 'list[StackTraceElement]', + 'suppressed': 'list[Throwable]' + } + + attribute_map = { + 'cause': 'cause', + 'localized_message': 'localizedMessage', + 'message': 'message', + 'stack_trace': 'stackTrace', + 'suppressed': 'suppressed' + } + + def __init__(self, cause=None, localized_message=None, message=None, stack_trace=None, suppressed=None): # noqa: E501 + """Exception - a model defined in Swagger""" # noqa: E501 + + self._cause = None + self._localized_message = None + self._message = None + self._stack_trace = None + self._suppressed = None + self.discriminator = None + + if cause is not None: + self.cause = cause + if localized_message is not None: + self.localized_message = localized_message + if message is not None: + self.message = message + if stack_trace is not None: + self.stack_trace = stack_trace + if suppressed is not None: + self.suppressed = suppressed + + @property + def cause(self): + """Gets the cause of this Exception. # noqa: E501 + + + :return: The cause of this Exception. # noqa: E501 + :rtype: Throwable + """ + return self._cause + + @cause.setter + def cause(self, cause): + """Sets the cause of this Exception. + + + :param cause: The cause of this Exception. # noqa: E501 + :type: Throwable + """ + + self._cause = cause + + @property + def localized_message(self): + """Gets the localized_message of this Exception. # noqa: E501 + + + :return: The localized_message of this Exception. # noqa: E501 + :rtype: str + """ + return self._localized_message + + @localized_message.setter + def localized_message(self, localized_message): + """Sets the localized_message of this Exception. + + + :param localized_message: The localized_message of this Exception. # noqa: E501 + :type: str + """ + + self._localized_message = localized_message + + @property + def message(self): + """Gets the message of this Exception. # noqa: E501 + + + :return: The message of this Exception. # noqa: E501 + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this Exception. + + + :param message: The message of this Exception. # noqa: E501 + :type: str + """ + + self._message = message + + @property + def stack_trace(self): + """Gets the stack_trace of this Exception. # noqa: E501 + + + :return: The stack_trace of this Exception. # noqa: E501 + :rtype: list[StackTraceElement] + """ + return self._stack_trace + + @stack_trace.setter + def stack_trace(self, stack_trace): + """Sets the stack_trace of this Exception. + + + :param stack_trace: The stack_trace of this Exception. # noqa: E501 + :type: list[StackTraceElement] + """ + + self._stack_trace = stack_trace + + @property + def suppressed(self): + """Gets the suppressed of this Exception. # noqa: E501 + + + :return: The suppressed of this Exception. # noqa: E501 + :rtype: list[Throwable] + """ + return self._suppressed + + @suppressed.setter + def suppressed(self, suppressed): + """Sets the suppressed of this Exception. + + + :param suppressed: The suppressed of this Exception. # noqa: E501 + :type: list[Throwable] + """ + + self._suppressed = suppressed + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Exception, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Exception): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/feature.py b/swagger_client/models/feature.py new file mode 100644 index 0000000..54d88a5 --- /dev/null +++ b/swagger_client/models/feature.py @@ -0,0 +1,273 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.properties import Properties # noqa: F401,E501 + + +class Feature(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'disabled': 'bool', + 'href': 'str', + 'id': 'str', + 'inherited': 'bool', + 'name': 'str', + 'properties': 'Properties', + 'type': 'str' + } + + attribute_map = { + 'disabled': 'disabled', + 'href': 'href', + 'id': 'id', + 'inherited': 'inherited', + 'name': 'name', + 'properties': 'properties', + 'type': 'type' + } + + def __init__(self, disabled=False, href=None, id=None, inherited=False, name=None, properties=None, type=None): # noqa: E501 + """Feature - a model defined in Swagger""" # noqa: E501 + + self._disabled = None + self._href = None + self._id = None + self._inherited = None + self._name = None + self._properties = None + self._type = None + self.discriminator = None + + if disabled is not None: + self.disabled = disabled + if href is not None: + self.href = href + if id is not None: + self.id = id + if inherited is not None: + self.inherited = inherited + if name is not None: + self.name = name + if properties is not None: + self.properties = properties + if type is not None: + self.type = type + + @property + def disabled(self): + """Gets the disabled of this Feature. # noqa: E501 + + + :return: The disabled of this Feature. # noqa: E501 + :rtype: bool + """ + return self._disabled + + @disabled.setter + def disabled(self, disabled): + """Sets the disabled of this Feature. + + + :param disabled: The disabled of this Feature. # noqa: E501 + :type: bool + """ + + self._disabled = disabled + + @property + def href(self): + """Gets the href of this Feature. # noqa: E501 + + + :return: The href of this Feature. # noqa: E501 + :rtype: str + """ + return self._href + + @href.setter + def href(self, href): + """Sets the href of this Feature. + + + :param href: The href of this Feature. # noqa: E501 + :type: str + """ + + self._href = href + + @property + def id(self): + """Gets the id of this Feature. # noqa: E501 + + + :return: The id of this Feature. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this Feature. + + + :param id: The id of this Feature. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def inherited(self): + """Gets the inherited of this Feature. # noqa: E501 + + + :return: The inherited of this Feature. # noqa: E501 + :rtype: bool + """ + return self._inherited + + @inherited.setter + def inherited(self, inherited): + """Sets the inherited of this Feature. + + + :param inherited: The inherited of this Feature. # noqa: E501 + :type: bool + """ + + self._inherited = inherited + + @property + def name(self): + """Gets the name of this Feature. # noqa: E501 + + + :return: The name of this Feature. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this Feature. + + + :param name: The name of this Feature. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def properties(self): + """Gets the properties of this Feature. # noqa: E501 + + + :return: The properties of this Feature. # noqa: E501 + :rtype: Properties + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this Feature. + + + :param properties: The properties of this Feature. # noqa: E501 + :type: Properties + """ + + self._properties = properties + + @property + def type(self): + """Gets the type of this Feature. # noqa: E501 + + + :return: The type of this Feature. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this Feature. + + + :param type: The type of this Feature. # noqa: E501 + :type: str + """ + + self._type = type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Feature, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Feature): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/features.py b/swagger_client/models/features.py new file mode 100644 index 0000000..8eb5f19 --- /dev/null +++ b/swagger_client/models/features.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.feature import Feature # noqa: F401,E501 + + +class Features(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'feature': 'list[Feature]' + } + + attribute_map = { + 'count': 'count', + 'feature': 'feature' + } + + def __init__(self, count=None, feature=None): # noqa: E501 + """Features - a model defined in Swagger""" # noqa: E501 + + self._count = None + self._feature = None + self.discriminator = None + + if count is not None: + self.count = count + if feature is not None: + self.feature = feature + + @property + def count(self): + """Gets the count of this Features. # noqa: E501 + + + :return: The count of this Features. # noqa: E501 + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this Features. + + + :param count: The count of this Features. # noqa: E501 + :type: int + """ + + self._count = count + + @property + def feature(self): + """Gets the feature of this Features. # noqa: E501 + + + :return: The feature of this Features. # noqa: E501 + :rtype: list[Feature] + """ + return self._feature + + @feature.setter + def feature(self, feature): + """Sets the feature of this Features. + + + :param feature: The feature of this Features. # noqa: E501 + :type: list[Feature] + """ + + self._feature = feature + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Features, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Features): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/federation_server.py b/swagger_client/models/federation_server.py new file mode 100644 index 0000000..5026c55 --- /dev/null +++ b/swagger_client/models/federation_server.py @@ -0,0 +1,141 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class FederationServer(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'name': 'str', + 'url': 'str' + } + + attribute_map = { + 'name': 'name', + 'url': 'url' + } + + def __init__(self, name=None, url=None): # noqa: E501 + """FederationServer - a model defined in Swagger""" # noqa: E501 + + self._name = None + self._url = None + self.discriminator = None + + if name is not None: + self.name = name + if url is not None: + self.url = url + + @property + def name(self): + """Gets the name of this FederationServer. # noqa: E501 + + + :return: The name of this FederationServer. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this FederationServer. + + + :param name: The name of this FederationServer. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def url(self): + """Gets the url of this FederationServer. # noqa: E501 + + + :return: The url of this FederationServer. # noqa: E501 + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """Sets the url of this FederationServer. + + + :param url: The url of this FederationServer. # noqa: E501 + :type: str + """ + + self._url = url + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(FederationServer, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, FederationServer): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/file.py b/swagger_client/models/file.py new file mode 100644 index 0000000..2f03762 --- /dev/null +++ b/swagger_client/models/file.py @@ -0,0 +1,301 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.file import file # noqa: F401,E501 +from swagger_client.models.files import Files # noqa: F401,E501 +from swagger_client.models.href import Href # noqa: F401,E501 + + +class File(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'children': 'Files', + 'content': 'Href', + 'full_name': 'str', + 'href': 'str', + 'modification_time': 'str', + 'name': 'str', + 'parent': 'file', + 'size': 'int' + } + + attribute_map = { + 'children': 'children', + 'content': 'content', + 'full_name': 'fullName', + 'href': 'href', + 'modification_time': 'modificationTime', + 'name': 'name', + 'parent': 'parent', + 'size': 'size' + } + + def __init__(self, children=None, content=None, full_name=None, href=None, modification_time=None, name=None, parent=None, size=None): # noqa: E501 + """File - a model defined in Swagger""" # noqa: E501 + + self._children = None + self._content = None + self._full_name = None + self._href = None + self._modification_time = None + self._name = None + self._parent = None + self._size = None + self.discriminator = None + + if children is not None: + self.children = children + if content is not None: + self.content = content + if full_name is not None: + self.full_name = full_name + if href is not None: + self.href = href + if modification_time is not None: + self.modification_time = modification_time + if name is not None: + self.name = name + if parent is not None: + self.parent = parent + if size is not None: + self.size = size + + @property + def children(self): + """Gets the children of this File. # noqa: E501 + + + :return: The children of this File. # noqa: E501 + :rtype: Files + """ + return self._children + + @children.setter + def children(self, children): + """Sets the children of this File. + + + :param children: The children of this File. # noqa: E501 + :type: Files + """ + + self._children = children + + @property + def content(self): + """Gets the content of this File. # noqa: E501 + + + :return: The content of this File. # noqa: E501 + :rtype: Href + """ + return self._content + + @content.setter + def content(self, content): + """Sets the content of this File. + + + :param content: The content of this File. # noqa: E501 + :type: Href + """ + + self._content = content + + @property + def full_name(self): + """Gets the full_name of this File. # noqa: E501 + + + :return: The full_name of this File. # noqa: E501 + :rtype: str + """ + return self._full_name + + @full_name.setter + def full_name(self, full_name): + """Sets the full_name of this File. + + + :param full_name: The full_name of this File. # noqa: E501 + :type: str + """ + + self._full_name = full_name + + @property + def href(self): + """Gets the href of this File. # noqa: E501 + + + :return: The href of this File. # noqa: E501 + :rtype: str + """ + return self._href + + @href.setter + def href(self, href): + """Sets the href of this File. + + + :param href: The href of this File. # noqa: E501 + :type: str + """ + + self._href = href + + @property + def modification_time(self): + """Gets the modification_time of this File. # noqa: E501 + + + :return: The modification_time of this File. # noqa: E501 + :rtype: str + """ + return self._modification_time + + @modification_time.setter + def modification_time(self, modification_time): + """Sets the modification_time of this File. + + + :param modification_time: The modification_time of this File. # noqa: E501 + :type: str + """ + + self._modification_time = modification_time + + @property + def name(self): + """Gets the name of this File. # noqa: E501 + + + :return: The name of this File. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this File. + + + :param name: The name of this File. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def parent(self): + """Gets the parent of this File. # noqa: E501 + + + :return: The parent of this File. # noqa: E501 + :rtype: file + """ + return self._parent + + @parent.setter + def parent(self, parent): + """Sets the parent of this File. + + + :param parent: The parent of this File. # noqa: E501 + :type: file + """ + + self._parent = parent + + @property + def size(self): + """Gets the size of this File. # noqa: E501 + + + :return: The size of this File. # noqa: E501 + :rtype: int + """ + return self._size + + @size.setter + def size(self, size): + """Sets the size of this File. + + + :param size: The size of this File. # noqa: E501 + :type: int + """ + + self._size = size + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(File, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, File): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/file_change.py b/swagger_client/models/file_change.py new file mode 100644 index 0000000..e2b4f85 --- /dev/null +++ b/swagger_client/models/file_change.py @@ -0,0 +1,271 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class FileChange(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'after_revision': 'str', + 'before_revision': 'str', + 'change_type': 'str', + 'change_type_comment': 'str', + 'directory': 'bool', + 'file': 'str', + 'relative_file': 'str' + } + + attribute_map = { + 'after_revision': 'after-revision', + 'before_revision': 'before-revision', + 'change_type': 'changeType', + 'change_type_comment': 'changeTypeComment', + 'directory': 'directory', + 'file': 'file', + 'relative_file': 'relative-file' + } + + def __init__(self, after_revision=None, before_revision=None, change_type=None, change_type_comment=None, directory=False, file=None, relative_file=None): # noqa: E501 + """FileChange - a model defined in Swagger""" # noqa: E501 + + self._after_revision = None + self._before_revision = None + self._change_type = None + self._change_type_comment = None + self._directory = None + self._file = None + self._relative_file = None + self.discriminator = None + + if after_revision is not None: + self.after_revision = after_revision + if before_revision is not None: + self.before_revision = before_revision + if change_type is not None: + self.change_type = change_type + if change_type_comment is not None: + self.change_type_comment = change_type_comment + if directory is not None: + self.directory = directory + if file is not None: + self.file = file + if relative_file is not None: + self.relative_file = relative_file + + @property + def after_revision(self): + """Gets the after_revision of this FileChange. # noqa: E501 + + + :return: The after_revision of this FileChange. # noqa: E501 + :rtype: str + """ + return self._after_revision + + @after_revision.setter + def after_revision(self, after_revision): + """Sets the after_revision of this FileChange. + + + :param after_revision: The after_revision of this FileChange. # noqa: E501 + :type: str + """ + + self._after_revision = after_revision + + @property + def before_revision(self): + """Gets the before_revision of this FileChange. # noqa: E501 + + + :return: The before_revision of this FileChange. # noqa: E501 + :rtype: str + """ + return self._before_revision + + @before_revision.setter + def before_revision(self, before_revision): + """Sets the before_revision of this FileChange. + + + :param before_revision: The before_revision of this FileChange. # noqa: E501 + :type: str + """ + + self._before_revision = before_revision + + @property + def change_type(self): + """Gets the change_type of this FileChange. # noqa: E501 + + + :return: The change_type of this FileChange. # noqa: E501 + :rtype: str + """ + return self._change_type + + @change_type.setter + def change_type(self, change_type): + """Sets the change_type of this FileChange. + + + :param change_type: The change_type of this FileChange. # noqa: E501 + :type: str + """ + + self._change_type = change_type + + @property + def change_type_comment(self): + """Gets the change_type_comment of this FileChange. # noqa: E501 + + + :return: The change_type_comment of this FileChange. # noqa: E501 + :rtype: str + """ + return self._change_type_comment + + @change_type_comment.setter + def change_type_comment(self, change_type_comment): + """Sets the change_type_comment of this FileChange. + + + :param change_type_comment: The change_type_comment of this FileChange. # noqa: E501 + :type: str + """ + + self._change_type_comment = change_type_comment + + @property + def directory(self): + """Gets the directory of this FileChange. # noqa: E501 + + + :return: The directory of this FileChange. # noqa: E501 + :rtype: bool + """ + return self._directory + + @directory.setter + def directory(self, directory): + """Sets the directory of this FileChange. + + + :param directory: The directory of this FileChange. # noqa: E501 + :type: bool + """ + + self._directory = directory + + @property + def file(self): + """Gets the file of this FileChange. # noqa: E501 + + + :return: The file of this FileChange. # noqa: E501 + :rtype: str + """ + return self._file + + @file.setter + def file(self, file): + """Sets the file of this FileChange. + + + :param file: The file of this FileChange. # noqa: E501 + :type: str + """ + + self._file = file + + @property + def relative_file(self): + """Gets the relative_file of this FileChange. # noqa: E501 + + + :return: The relative_file of this FileChange. # noqa: E501 + :rtype: str + """ + return self._relative_file + + @relative_file.setter + def relative_file(self, relative_file): + """Sets the relative_file of this FileChange. + + + :param relative_file: The relative_file of this FileChange. # noqa: E501 + :type: str + """ + + self._relative_file = relative_file + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(FileChange, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, FileChange): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/file_changes.py b/swagger_client/models/file_changes.py new file mode 100644 index 0000000..7145b32 --- /dev/null +++ b/swagger_client/models/file_changes.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.file_change import FileChange # noqa: F401,E501 + + +class FileChanges(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'file': 'list[FileChange]' + } + + attribute_map = { + 'count': 'count', + 'file': 'file' + } + + def __init__(self, count=None, file=None): # noqa: E501 + """FileChanges - a model defined in Swagger""" # noqa: E501 + + self._count = None + self._file = None + self.discriminator = None + + if count is not None: + self.count = count + if file is not None: + self.file = file + + @property + def count(self): + """Gets the count of this FileChanges. # noqa: E501 + + + :return: The count of this FileChanges. # noqa: E501 + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this FileChanges. + + + :param count: The count of this FileChanges. # noqa: E501 + :type: int + """ + + self._count = count + + @property + def file(self): + """Gets the file of this FileChanges. # noqa: E501 + + + :return: The file of this FileChanges. # noqa: E501 + :rtype: list[FileChange] + """ + return self._file + + @file.setter + def file(self, file): + """Sets the file of this FileChanges. + + + :param file: The file of this FileChanges. # noqa: E501 + :type: list[FileChange] + """ + + self._file = file + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(FileChanges, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, FileChanges): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/files.py b/swagger_client/models/files.py new file mode 100644 index 0000000..c689cc2 --- /dev/null +++ b/swagger_client/models/files.py @@ -0,0 +1,169 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.file import file # noqa: F401,E501 + + +class Files(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'file': 'list[file]', + 'href': 'str' + } + + attribute_map = { + 'count': 'count', + 'file': 'file', + 'href': 'href' + } + + def __init__(self, count=None, file=None, href=None): # noqa: E501 + """Files - a model defined in Swagger""" # noqa: E501 + + self._count = None + self._file = None + self._href = None + self.discriminator = None + + if count is not None: + self.count = count + if file is not None: + self.file = file + if href is not None: + self.href = href + + @property + def count(self): + """Gets the count of this Files. # noqa: E501 + + + :return: The count of this Files. # noqa: E501 + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this Files. + + + :param count: The count of this Files. # noqa: E501 + :type: int + """ + + self._count = count + + @property + def file(self): + """Gets the file of this Files. # noqa: E501 + + + :return: The file of this Files. # noqa: E501 + :rtype: list[file] + """ + return self._file + + @file.setter + def file(self, file): + """Sets the file of this Files. + + + :param file: The file of this Files. # noqa: E501 + :type: list[file] + """ + + self._file = file + + @property + def href(self): + """Gets the href of this Files. # noqa: E501 + + + :return: The href of this Files. # noqa: E501 + :rtype: str + """ + return self._href + + @href.setter + def href(self, href): + """Sets the href of this Files. + + + :param href: The href of this Files. # noqa: E501 + :type: str + """ + + self._href = href + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Files, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Files): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/group.py b/swagger_client/models/group.py new file mode 100644 index 0000000..0cc2fe7 --- /dev/null +++ b/swagger_client/models/group.py @@ -0,0 +1,328 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.groups import Groups # noqa: F401,E501 +from swagger_client.models.properties import Properties # noqa: F401,E501 +from swagger_client.models.roles import Roles # noqa: F401,E501 +from swagger_client.models.users import Users # noqa: F401,E501 + + +class Group(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'child_groups': 'Groups', + 'description': 'str', + 'href': 'str', + 'key': 'str', + 'name': 'str', + 'parent_groups': 'Groups', + 'properties': 'Properties', + 'roles': 'Roles', + 'users': 'Users' + } + + attribute_map = { + 'child_groups': 'child-groups', + 'description': 'description', + 'href': 'href', + 'key': 'key', + 'name': 'name', + 'parent_groups': 'parent-groups', + 'properties': 'properties', + 'roles': 'roles', + 'users': 'users' + } + + def __init__(self, child_groups=None, description=None, href=None, key=None, name=None, parent_groups=None, properties=None, roles=None, users=None): # noqa: E501 + """Group - a model defined in Swagger""" # noqa: E501 + + self._child_groups = None + self._description = None + self._href = None + self._key = None + self._name = None + self._parent_groups = None + self._properties = None + self._roles = None + self._users = None + self.discriminator = None + + if child_groups is not None: + self.child_groups = child_groups + if description is not None: + self.description = description + if href is not None: + self.href = href + if key is not None: + self.key = key + if name is not None: + self.name = name + if parent_groups is not None: + self.parent_groups = parent_groups + if properties is not None: + self.properties = properties + if roles is not None: + self.roles = roles + if users is not None: + self.users = users + + @property + def child_groups(self): + """Gets the child_groups of this Group. # noqa: E501 + + + :return: The child_groups of this Group. # noqa: E501 + :rtype: Groups + """ + return self._child_groups + + @child_groups.setter + def child_groups(self, child_groups): + """Sets the child_groups of this Group. + + + :param child_groups: The child_groups of this Group. # noqa: E501 + :type: Groups + """ + + self._child_groups = child_groups + + @property + def description(self): + """Gets the description of this Group. # noqa: E501 + + + :return: The description of this Group. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this Group. + + + :param description: The description of this Group. # noqa: E501 + :type: str + """ + + self._description = description + + @property + def href(self): + """Gets the href of this Group. # noqa: E501 + + + :return: The href of this Group. # noqa: E501 + :rtype: str + """ + return self._href + + @href.setter + def href(self, href): + """Sets the href of this Group. + + + :param href: The href of this Group. # noqa: E501 + :type: str + """ + + self._href = href + + @property + def key(self): + """Gets the key of this Group. # noqa: E501 + + + :return: The key of this Group. # noqa: E501 + :rtype: str + """ + return self._key + + @key.setter + def key(self, key): + """Sets the key of this Group. + + + :param key: The key of this Group. # noqa: E501 + :type: str + """ + + self._key = key + + @property + def name(self): + """Gets the name of this Group. # noqa: E501 + + + :return: The name of this Group. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this Group. + + + :param name: The name of this Group. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def parent_groups(self): + """Gets the parent_groups of this Group. # noqa: E501 + + + :return: The parent_groups of this Group. # noqa: E501 + :rtype: Groups + """ + return self._parent_groups + + @parent_groups.setter + def parent_groups(self, parent_groups): + """Sets the parent_groups of this Group. + + + :param parent_groups: The parent_groups of this Group. # noqa: E501 + :type: Groups + """ + + self._parent_groups = parent_groups + + @property + def properties(self): + """Gets the properties of this Group. # noqa: E501 + + + :return: The properties of this Group. # noqa: E501 + :rtype: Properties + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this Group. + + + :param properties: The properties of this Group. # noqa: E501 + :type: Properties + """ + + self._properties = properties + + @property + def roles(self): + """Gets the roles of this Group. # noqa: E501 + + + :return: The roles of this Group. # noqa: E501 + :rtype: Roles + """ + return self._roles + + @roles.setter + def roles(self, roles): + """Sets the roles of this Group. + + + :param roles: The roles of this Group. # noqa: E501 + :type: Roles + """ + + self._roles = roles + + @property + def users(self): + """Gets the users of this Group. # noqa: E501 + + + :return: The users of this Group. # noqa: E501 + :rtype: Users + """ + return self._users + + @users.setter + def users(self, users): + """Sets the users of this Group. + + + :param users: The users of this Group. # noqa: E501 + :type: Users + """ + + self._users = users + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Group, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Group): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/groups.py b/swagger_client/models/groups.py new file mode 100644 index 0000000..6031d0f --- /dev/null +++ b/swagger_client/models/groups.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.group import Group # noqa: F401,E501 + + +class Groups(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'group': 'list[Group]' + } + + attribute_map = { + 'count': 'count', + 'group': 'group' + } + + def __init__(self, count=None, group=None): # noqa: E501 + """Groups - a model defined in Swagger""" # noqa: E501 + + self._count = None + self._group = None + self.discriminator = None + + if count is not None: + self.count = count + if group is not None: + self.group = group + + @property + def count(self): + """Gets the count of this Groups. # noqa: E501 + + + :return: The count of this Groups. # noqa: E501 + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this Groups. + + + :param count: The count of this Groups. # noqa: E501 + :type: int + """ + + self._count = count + + @property + def group(self): + """Gets the group of this Groups. # noqa: E501 + + + :return: The group of this Groups. # noqa: E501 + :rtype: list[Group] + """ + return self._group + + @group.setter + def group(self, group): + """Sets the group of this Groups. + + + :param group: The group of this Groups. # noqa: E501 + :type: list[Group] + """ + + self._group = group + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Groups, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Groups): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/href.py b/swagger_client/models/href.py new file mode 100644 index 0000000..0050fdf --- /dev/null +++ b/swagger_client/models/href.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class Href(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'href': 'str' + } + + attribute_map = { + 'href': 'href' + } + + def __init__(self, href=None): # noqa: E501 + """Href - a model defined in Swagger""" # noqa: E501 + + self._href = None + self.discriminator = None + + if href is not None: + self.href = href + + @property + def href(self): + """Gets the href of this Href. # noqa: E501 + + + :return: The href of this Href. # noqa: E501 + :rtype: str + """ + return self._href + + @href.setter + def href(self, href): + """Sets the href of this Href. + + + :param href: The href of this Href. # noqa: E501 + :type: str + """ + + self._href = href + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Href, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Href): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/investigation.py b/swagger_client/models/investigation.py new file mode 100644 index 0000000..15cb5d2 --- /dev/null +++ b/swagger_client/models/investigation.py @@ -0,0 +1,329 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.comment import Comment # noqa: F401,E501 +from swagger_client.models.problem_scope import ProblemScope # noqa: F401,E501 +from swagger_client.models.problem_target import ProblemTarget # noqa: F401,E501 +from swagger_client.models.resolution import Resolution # noqa: F401,E501 +from swagger_client.models.user import User # noqa: F401,E501 + + +class Investigation(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'assignee': 'User', + 'assignment': 'Comment', + 'href': 'str', + 'id': 'str', + 'resolution': 'Resolution', + 'responsible': 'User', + 'scope': 'ProblemScope', + 'state': 'str', + 'target': 'ProblemTarget' + } + + attribute_map = { + 'assignee': 'assignee', + 'assignment': 'assignment', + 'href': 'href', + 'id': 'id', + 'resolution': 'resolution', + 'responsible': 'responsible', + 'scope': 'scope', + 'state': 'state', + 'target': 'target' + } + + def __init__(self, assignee=None, assignment=None, href=None, id=None, resolution=None, responsible=None, scope=None, state=None, target=None): # noqa: E501 + """Investigation - a model defined in Swagger""" # noqa: E501 + + self._assignee = None + self._assignment = None + self._href = None + self._id = None + self._resolution = None + self._responsible = None + self._scope = None + self._state = None + self._target = None + self.discriminator = None + + if assignee is not None: + self.assignee = assignee + if assignment is not None: + self.assignment = assignment + if href is not None: + self.href = href + if id is not None: + self.id = id + if resolution is not None: + self.resolution = resolution + if responsible is not None: + self.responsible = responsible + if scope is not None: + self.scope = scope + if state is not None: + self.state = state + if target is not None: + self.target = target + + @property + def assignee(self): + """Gets the assignee of this Investigation. # noqa: E501 + + + :return: The assignee of this Investigation. # noqa: E501 + :rtype: User + """ + return self._assignee + + @assignee.setter + def assignee(self, assignee): + """Sets the assignee of this Investigation. + + + :param assignee: The assignee of this Investigation. # noqa: E501 + :type: User + """ + + self._assignee = assignee + + @property + def assignment(self): + """Gets the assignment of this Investigation. # noqa: E501 + + + :return: The assignment of this Investigation. # noqa: E501 + :rtype: Comment + """ + return self._assignment + + @assignment.setter + def assignment(self, assignment): + """Sets the assignment of this Investigation. + + + :param assignment: The assignment of this Investigation. # noqa: E501 + :type: Comment + """ + + self._assignment = assignment + + @property + def href(self): + """Gets the href of this Investigation. # noqa: E501 + + + :return: The href of this Investigation. # noqa: E501 + :rtype: str + """ + return self._href + + @href.setter + def href(self, href): + """Sets the href of this Investigation. + + + :param href: The href of this Investigation. # noqa: E501 + :type: str + """ + + self._href = href + + @property + def id(self): + """Gets the id of this Investigation. # noqa: E501 + + + :return: The id of this Investigation. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this Investigation. + + + :param id: The id of this Investigation. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def resolution(self): + """Gets the resolution of this Investigation. # noqa: E501 + + + :return: The resolution of this Investigation. # noqa: E501 + :rtype: Resolution + """ + return self._resolution + + @resolution.setter + def resolution(self, resolution): + """Sets the resolution of this Investigation. + + + :param resolution: The resolution of this Investigation. # noqa: E501 + :type: Resolution + """ + + self._resolution = resolution + + @property + def responsible(self): + """Gets the responsible of this Investigation. # noqa: E501 + + + :return: The responsible of this Investigation. # noqa: E501 + :rtype: User + """ + return self._responsible + + @responsible.setter + def responsible(self, responsible): + """Sets the responsible of this Investigation. + + + :param responsible: The responsible of this Investigation. # noqa: E501 + :type: User + """ + + self._responsible = responsible + + @property + def scope(self): + """Gets the scope of this Investigation. # noqa: E501 + + + :return: The scope of this Investigation. # noqa: E501 + :rtype: ProblemScope + """ + return self._scope + + @scope.setter + def scope(self, scope): + """Sets the scope of this Investigation. + + + :param scope: The scope of this Investigation. # noqa: E501 + :type: ProblemScope + """ + + self._scope = scope + + @property + def state(self): + """Gets the state of this Investigation. # noqa: E501 + + + :return: The state of this Investigation. # noqa: E501 + :rtype: str + """ + return self._state + + @state.setter + def state(self, state): + """Sets the state of this Investigation. + + + :param state: The state of this Investigation. # noqa: E501 + :type: str + """ + + self._state = state + + @property + def target(self): + """Gets the target of this Investigation. # noqa: E501 + + + :return: The target of this Investigation. # noqa: E501 + :rtype: ProblemTarget + """ + return self._target + + @target.setter + def target(self, target): + """Sets the target of this Investigation. + + + :param target: The target of this Investigation. # noqa: E501 + :type: ProblemTarget + """ + + self._target = target + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Investigation, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Investigation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/investigations.py b/swagger_client/models/investigations.py new file mode 100644 index 0000000..fc0119d --- /dev/null +++ b/swagger_client/models/investigations.py @@ -0,0 +1,221 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.investigation import Investigation # noqa: F401,E501 + + +class Investigations(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'href': 'str', + 'investigation': 'list[Investigation]', + 'next_href': 'str', + 'prev_href': 'str' + } + + attribute_map = { + 'count': 'count', + 'href': 'href', + 'investigation': 'investigation', + 'next_href': 'nextHref', + 'prev_href': 'prevHref' + } + + def __init__(self, count=None, href=None, investigation=None, next_href=None, prev_href=None): # noqa: E501 + """Investigations - a model defined in Swagger""" # noqa: E501 + + self._count = None + self._href = None + self._investigation = None + self._next_href = None + self._prev_href = None + self.discriminator = None + + if count is not None: + self.count = count + if href is not None: + self.href = href + if investigation is not None: + self.investigation = investigation + if next_href is not None: + self.next_href = next_href + if prev_href is not None: + self.prev_href = prev_href + + @property + def count(self): + """Gets the count of this Investigations. # noqa: E501 + + + :return: The count of this Investigations. # noqa: E501 + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this Investigations. + + + :param count: The count of this Investigations. # noqa: E501 + :type: int + """ + + self._count = count + + @property + def href(self): + """Gets the href of this Investigations. # noqa: E501 + + + :return: The href of this Investigations. # noqa: E501 + :rtype: str + """ + return self._href + + @href.setter + def href(self, href): + """Sets the href of this Investigations. + + + :param href: The href of this Investigations. # noqa: E501 + :type: str + """ + + self._href = href + + @property + def investigation(self): + """Gets the investigation of this Investigations. # noqa: E501 + + + :return: The investigation of this Investigations. # noqa: E501 + :rtype: list[Investigation] + """ + return self._investigation + + @investigation.setter + def investigation(self, investigation): + """Sets the investigation of this Investigations. + + + :param investigation: The investigation of this Investigations. # noqa: E501 + :type: list[Investigation] + """ + + self._investigation = investigation + + @property + def next_href(self): + """Gets the next_href of this Investigations. # noqa: E501 + + + :return: The next_href of this Investigations. # noqa: E501 + :rtype: str + """ + return self._next_href + + @next_href.setter + def next_href(self, next_href): + """Sets the next_href of this Investigations. + + + :param next_href: The next_href of this Investigations. # noqa: E501 + :type: str + """ + + self._next_href = next_href + + @property + def prev_href(self): + """Gets the prev_href of this Investigations. # noqa: E501 + + + :return: The prev_href of this Investigations. # noqa: E501 + :rtype: str + """ + return self._prev_href + + @prev_href.setter + def prev_href(self, prev_href): + """Sets the prev_href of this Investigations. + + + :param prev_href: The prev_href of this Investigations. # noqa: E501 + :type: str + """ + + self._prev_href = prev_href + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Investigations, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Investigations): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/issue.py b/swagger_client/models/issue.py new file mode 100644 index 0000000..a2d892e --- /dev/null +++ b/swagger_client/models/issue.py @@ -0,0 +1,141 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class Issue(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'str', + 'url': 'str' + } + + attribute_map = { + 'id': 'id', + 'url': 'url' + } + + def __init__(self, id=None, url=None): # noqa: E501 + """Issue - a model defined in Swagger""" # noqa: E501 + + self._id = None + self._url = None + self.discriminator = None + + if id is not None: + self.id = id + if url is not None: + self.url = url + + @property + def id(self): + """Gets the id of this Issue. # noqa: E501 + + + :return: The id of this Issue. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this Issue. + + + :param id: The id of this Issue. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def url(self): + """Gets the url of this Issue. # noqa: E501 + + + :return: The url of this Issue. # noqa: E501 + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """Sets the url of this Issue. + + + :param url: The url of this Issue. # noqa: E501 + :type: str + """ + + self._url = url + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Issue, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Issue): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/issue_usage.py b/swagger_client/models/issue_usage.py new file mode 100644 index 0000000..ce132ed --- /dev/null +++ b/swagger_client/models/issue_usage.py @@ -0,0 +1,144 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.changes import Changes # noqa: F401,E501 +from swagger_client.models.issue import Issue # noqa: F401,E501 + + +class IssueUsage(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'changes': 'Changes', + 'issue': 'Issue' + } + + attribute_map = { + 'changes': 'changes', + 'issue': 'issue' + } + + def __init__(self, changes=None, issue=None): # noqa: E501 + """IssueUsage - a model defined in Swagger""" # noqa: E501 + + self._changes = None + self._issue = None + self.discriminator = None + + if changes is not None: + self.changes = changes + if issue is not None: + self.issue = issue + + @property + def changes(self): + """Gets the changes of this IssueUsage. # noqa: E501 + + + :return: The changes of this IssueUsage. # noqa: E501 + :rtype: Changes + """ + return self._changes + + @changes.setter + def changes(self, changes): + """Sets the changes of this IssueUsage. + + + :param changes: The changes of this IssueUsage. # noqa: E501 + :type: Changes + """ + + self._changes = changes + + @property + def issue(self): + """Gets the issue of this IssueUsage. # noqa: E501 + + + :return: The issue of this IssueUsage. # noqa: E501 + :rtype: Issue + """ + return self._issue + + @issue.setter + def issue(self, issue): + """Sets the issue of this IssueUsage. + + + :param issue: The issue of this IssueUsage. # noqa: E501 + :type: Issue + """ + + self._issue = issue + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(IssueUsage, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, IssueUsage): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/issues.py b/swagger_client/models/issues.py new file mode 100644 index 0000000..7386d12 --- /dev/null +++ b/swagger_client/models/issues.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.issue import Issue # noqa: F401,E501 + + +class Issues(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'issues': 'list[Issue]' + } + + attribute_map = { + 'issues': 'issues' + } + + def __init__(self, issues=None): # noqa: E501 + """Issues - a model defined in Swagger""" # noqa: E501 + + self._issues = None + self.discriminator = None + + if issues is not None: + self.issues = issues + + @property + def issues(self): + """Gets the issues of this Issues. # noqa: E501 + + + :return: The issues of this Issues. # noqa: E501 + :rtype: list[Issue] + """ + return self._issues + + @issues.setter + def issues(self, issues): + """Sets the issues of this Issues. + + + :param issues: The issues of this Issues. # noqa: E501 + :type: list[Issue] + """ + + self._issues = issues + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Issues, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Issues): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/issues_usages.py b/swagger_client/models/issues_usages.py new file mode 100644 index 0000000..ebad25c --- /dev/null +++ b/swagger_client/models/issues_usages.py @@ -0,0 +1,169 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.issue_usage import IssueUsage # noqa: F401,E501 + + +class IssuesUsages(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'href': 'str', + 'issue_usage': 'list[IssueUsage]' + } + + attribute_map = { + 'count': 'count', + 'href': 'href', + 'issue_usage': 'issueUsage' + } + + def __init__(self, count=None, href=None, issue_usage=None): # noqa: E501 + """IssuesUsages - a model defined in Swagger""" # noqa: E501 + + self._count = None + self._href = None + self._issue_usage = None + self.discriminator = None + + if count is not None: + self.count = count + if href is not None: + self.href = href + if issue_usage is not None: + self.issue_usage = issue_usage + + @property + def count(self): + """Gets the count of this IssuesUsages. # noqa: E501 + + + :return: The count of this IssuesUsages. # noqa: E501 + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this IssuesUsages. + + + :param count: The count of this IssuesUsages. # noqa: E501 + :type: int + """ + + self._count = count + + @property + def href(self): + """Gets the href of this IssuesUsages. # noqa: E501 + + + :return: The href of this IssuesUsages. # noqa: E501 + :rtype: str + """ + return self._href + + @href.setter + def href(self, href): + """Sets the href of this IssuesUsages. + + + :param href: The href of this IssuesUsages. # noqa: E501 + :type: str + """ + + self._href = href + + @property + def issue_usage(self): + """Gets the issue_usage of this IssuesUsages. # noqa: E501 + + + :return: The issue_usage of this IssuesUsages. # noqa: E501 + :rtype: list[IssueUsage] + """ + return self._issue_usage + + @issue_usage.setter + def issue_usage(self, issue_usage): + """Sets the issue_usage of this IssuesUsages. + + + :param issue_usage: The issue_usage of this IssuesUsages. # noqa: E501 + :type: list[IssueUsage] + """ + + self._issue_usage = issue_usage + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(IssuesUsages, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, IssuesUsages): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/items.py b/swagger_client/models/items.py new file mode 100644 index 0000000..e7c16ba --- /dev/null +++ b/swagger_client/models/items.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class Items(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'item': 'list[str]' + } + + attribute_map = { + 'item': 'item' + } + + def __init__(self, item=None): # noqa: E501 + """Items - a model defined in Swagger""" # noqa: E501 + + self._item = None + self.discriminator = None + + if item is not None: + self.item = item + + @property + def item(self): + """Gets the item of this Items. # noqa: E501 + + + :return: The item of this Items. # noqa: E501 + :rtype: list[str] + """ + return self._item + + @item.setter + def item(self, item): + """Sets the item of this Items. + + + :param item: The item of this Items. # noqa: E501 + :type: list[str] + """ + + self._item = item + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Items, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Items): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/license_key.py b/swagger_client/models/license_key.py new file mode 100644 index 0000000..5e8e3c3 --- /dev/null +++ b/swagger_client/models/license_key.py @@ -0,0 +1,479 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class LicenseKey(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'active': 'bool', + 'agents': 'int', + 'build_types': 'int', + 'error_details': 'str', + 'expiration_date': 'str', + 'expired': 'bool', + 'key': 'str', + 'maintenance_end_date': 'str', + 'obsolete': 'bool', + 'raw_type': 'str', + 'servers': 'int', + 'type': 'str', + 'unlimited_agents': 'bool', + 'unlimited_build_types': 'bool', + 'valid': 'bool' + } + + attribute_map = { + 'active': 'active', + 'agents': 'agents', + 'build_types': 'buildTypes', + 'error_details': 'errorDetails', + 'expiration_date': 'expirationDate', + 'expired': 'expired', + 'key': 'key', + 'maintenance_end_date': 'maintenanceEndDate', + 'obsolete': 'obsolete', + 'raw_type': 'rawType', + 'servers': 'servers', + 'type': 'type', + 'unlimited_agents': 'unlimitedAgents', + 'unlimited_build_types': 'unlimitedBuildTypes', + 'valid': 'valid' + } + + def __init__(self, active=False, agents=None, build_types=None, error_details=None, expiration_date=None, expired=False, key=None, maintenance_end_date=None, obsolete=False, raw_type=None, servers=None, type=None, unlimited_agents=False, unlimited_build_types=False, valid=False): # noqa: E501 + """LicenseKey - a model defined in Swagger""" # noqa: E501 + + self._active = None + self._agents = None + self._build_types = None + self._error_details = None + self._expiration_date = None + self._expired = None + self._key = None + self._maintenance_end_date = None + self._obsolete = None + self._raw_type = None + self._servers = None + self._type = None + self._unlimited_agents = None + self._unlimited_build_types = None + self._valid = None + self.discriminator = None + + if active is not None: + self.active = active + if agents is not None: + self.agents = agents + if build_types is not None: + self.build_types = build_types + if error_details is not None: + self.error_details = error_details + if expiration_date is not None: + self.expiration_date = expiration_date + if expired is not None: + self.expired = expired + if key is not None: + self.key = key + if maintenance_end_date is not None: + self.maintenance_end_date = maintenance_end_date + if obsolete is not None: + self.obsolete = obsolete + if raw_type is not None: + self.raw_type = raw_type + if servers is not None: + self.servers = servers + if type is not None: + self.type = type + if unlimited_agents is not None: + self.unlimited_agents = unlimited_agents + if unlimited_build_types is not None: + self.unlimited_build_types = unlimited_build_types + if valid is not None: + self.valid = valid + + @property + def active(self): + """Gets the active of this LicenseKey. # noqa: E501 + + + :return: The active of this LicenseKey. # noqa: E501 + :rtype: bool + """ + return self._active + + @active.setter + def active(self, active): + """Sets the active of this LicenseKey. + + + :param active: The active of this LicenseKey. # noqa: E501 + :type: bool + """ + + self._active = active + + @property + def agents(self): + """Gets the agents of this LicenseKey. # noqa: E501 + + + :return: The agents of this LicenseKey. # noqa: E501 + :rtype: int + """ + return self._agents + + @agents.setter + def agents(self, agents): + """Sets the agents of this LicenseKey. + + + :param agents: The agents of this LicenseKey. # noqa: E501 + :type: int + """ + + self._agents = agents + + @property + def build_types(self): + """Gets the build_types of this LicenseKey. # noqa: E501 + + + :return: The build_types of this LicenseKey. # noqa: E501 + :rtype: int + """ + return self._build_types + + @build_types.setter + def build_types(self, build_types): + """Sets the build_types of this LicenseKey. + + + :param build_types: The build_types of this LicenseKey. # noqa: E501 + :type: int + """ + + self._build_types = build_types + + @property + def error_details(self): + """Gets the error_details of this LicenseKey. # noqa: E501 + + + :return: The error_details of this LicenseKey. # noqa: E501 + :rtype: str + """ + return self._error_details + + @error_details.setter + def error_details(self, error_details): + """Sets the error_details of this LicenseKey. + + + :param error_details: The error_details of this LicenseKey. # noqa: E501 + :type: str + """ + + self._error_details = error_details + + @property + def expiration_date(self): + """Gets the expiration_date of this LicenseKey. # noqa: E501 + + + :return: The expiration_date of this LicenseKey. # noqa: E501 + :rtype: str + """ + return self._expiration_date + + @expiration_date.setter + def expiration_date(self, expiration_date): + """Sets the expiration_date of this LicenseKey. + + + :param expiration_date: The expiration_date of this LicenseKey. # noqa: E501 + :type: str + """ + + self._expiration_date = expiration_date + + @property + def expired(self): + """Gets the expired of this LicenseKey. # noqa: E501 + + + :return: The expired of this LicenseKey. # noqa: E501 + :rtype: bool + """ + return self._expired + + @expired.setter + def expired(self, expired): + """Sets the expired of this LicenseKey. + + + :param expired: The expired of this LicenseKey. # noqa: E501 + :type: bool + """ + + self._expired = expired + + @property + def key(self): + """Gets the key of this LicenseKey. # noqa: E501 + + + :return: The key of this LicenseKey. # noqa: E501 + :rtype: str + """ + return self._key + + @key.setter + def key(self, key): + """Sets the key of this LicenseKey. + + + :param key: The key of this LicenseKey. # noqa: E501 + :type: str + """ + + self._key = key + + @property + def maintenance_end_date(self): + """Gets the maintenance_end_date of this LicenseKey. # noqa: E501 + + + :return: The maintenance_end_date of this LicenseKey. # noqa: E501 + :rtype: str + """ + return self._maintenance_end_date + + @maintenance_end_date.setter + def maintenance_end_date(self, maintenance_end_date): + """Sets the maintenance_end_date of this LicenseKey. + + + :param maintenance_end_date: The maintenance_end_date of this LicenseKey. # noqa: E501 + :type: str + """ + + self._maintenance_end_date = maintenance_end_date + + @property + def obsolete(self): + """Gets the obsolete of this LicenseKey. # noqa: E501 + + + :return: The obsolete of this LicenseKey. # noqa: E501 + :rtype: bool + """ + return self._obsolete + + @obsolete.setter + def obsolete(self, obsolete): + """Sets the obsolete of this LicenseKey. + + + :param obsolete: The obsolete of this LicenseKey. # noqa: E501 + :type: bool + """ + + self._obsolete = obsolete + + @property + def raw_type(self): + """Gets the raw_type of this LicenseKey. # noqa: E501 + + + :return: The raw_type of this LicenseKey. # noqa: E501 + :rtype: str + """ + return self._raw_type + + @raw_type.setter + def raw_type(self, raw_type): + """Sets the raw_type of this LicenseKey. + + + :param raw_type: The raw_type of this LicenseKey. # noqa: E501 + :type: str + """ + + self._raw_type = raw_type + + @property + def servers(self): + """Gets the servers of this LicenseKey. # noqa: E501 + + + :return: The servers of this LicenseKey. # noqa: E501 + :rtype: int + """ + return self._servers + + @servers.setter + def servers(self, servers): + """Sets the servers of this LicenseKey. + + + :param servers: The servers of this LicenseKey. # noqa: E501 + :type: int + """ + + self._servers = servers + + @property + def type(self): + """Gets the type of this LicenseKey. # noqa: E501 + + + :return: The type of this LicenseKey. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this LicenseKey. + + + :param type: The type of this LicenseKey. # noqa: E501 + :type: str + """ + + self._type = type + + @property + def unlimited_agents(self): + """Gets the unlimited_agents of this LicenseKey. # noqa: E501 + + + :return: The unlimited_agents of this LicenseKey. # noqa: E501 + :rtype: bool + """ + return self._unlimited_agents + + @unlimited_agents.setter + def unlimited_agents(self, unlimited_agents): + """Sets the unlimited_agents of this LicenseKey. + + + :param unlimited_agents: The unlimited_agents of this LicenseKey. # noqa: E501 + :type: bool + """ + + self._unlimited_agents = unlimited_agents + + @property + def unlimited_build_types(self): + """Gets the unlimited_build_types of this LicenseKey. # noqa: E501 + + + :return: The unlimited_build_types of this LicenseKey. # noqa: E501 + :rtype: bool + """ + return self._unlimited_build_types + + @unlimited_build_types.setter + def unlimited_build_types(self, unlimited_build_types): + """Sets the unlimited_build_types of this LicenseKey. + + + :param unlimited_build_types: The unlimited_build_types of this LicenseKey. # noqa: E501 + :type: bool + """ + + self._unlimited_build_types = unlimited_build_types + + @property + def valid(self): + """Gets the valid of this LicenseKey. # noqa: E501 + + + :return: The valid of this LicenseKey. # noqa: E501 + :rtype: bool + """ + return self._valid + + @valid.setter + def valid(self, valid): + """Sets the valid of this LicenseKey. + + + :param valid: The valid of this LicenseKey. # noqa: E501 + :type: bool + """ + + self._valid = valid + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(LicenseKey, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, LicenseKey): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/license_keys.py b/swagger_client/models/license_keys.py new file mode 100644 index 0000000..d8ea05e --- /dev/null +++ b/swagger_client/models/license_keys.py @@ -0,0 +1,169 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.license_key import LicenseKey # noqa: F401,E501 + + +class LicenseKeys(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'href': 'str', + 'license_key': 'list[LicenseKey]' + } + + attribute_map = { + 'count': 'count', + 'href': 'href', + 'license_key': 'licenseKey' + } + + def __init__(self, count=None, href=None, license_key=None): # noqa: E501 + """LicenseKeys - a model defined in Swagger""" # noqa: E501 + + self._count = None + self._href = None + self._license_key = None + self.discriminator = None + + if count is not None: + self.count = count + if href is not None: + self.href = href + if license_key is not None: + self.license_key = license_key + + @property + def count(self): + """Gets the count of this LicenseKeys. # noqa: E501 + + + :return: The count of this LicenseKeys. # noqa: E501 + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this LicenseKeys. + + + :param count: The count of this LicenseKeys. # noqa: E501 + :type: int + """ + + self._count = count + + @property + def href(self): + """Gets the href of this LicenseKeys. # noqa: E501 + + + :return: The href of this LicenseKeys. # noqa: E501 + :rtype: str + """ + return self._href + + @href.setter + def href(self, href): + """Sets the href of this LicenseKeys. + + + :param href: The href of this LicenseKeys. # noqa: E501 + :type: str + """ + + self._href = href + + @property + def license_key(self): + """Gets the license_key of this LicenseKeys. # noqa: E501 + + + :return: The license_key of this LicenseKeys. # noqa: E501 + :rtype: list[LicenseKey] + """ + return self._license_key + + @license_key.setter + def license_key(self, license_key): + """Sets the license_key of this LicenseKeys. + + + :param license_key: The license_key of this LicenseKeys. # noqa: E501 + :type: list[LicenseKey] + """ + + self._license_key = license_key + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(LicenseKeys, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, LicenseKeys): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/licensing_data.py b/swagger_client/models/licensing_data.py new file mode 100644 index 0000000..ebc9314 --- /dev/null +++ b/swagger_client/models/licensing_data.py @@ -0,0 +1,351 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.license_keys import LicenseKeys # noqa: F401,E501 + + +class LicensingData(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'agents_left': 'int', + 'build_types_left': 'int', + 'license_keys': 'LicenseKeys', + 'license_use_exceeded': 'bool', + 'max_agents': 'int', + 'max_build_types': 'int', + 'server_effective_release_date': 'str', + 'server_license_type': 'str', + 'unlimited_agents': 'bool', + 'unlimited_build_types': 'bool' + } + + attribute_map = { + 'agents_left': 'agentsLeft', + 'build_types_left': 'buildTypesLeft', + 'license_keys': 'licenseKeys', + 'license_use_exceeded': 'licenseUseExceeded', + 'max_agents': 'maxAgents', + 'max_build_types': 'maxBuildTypes', + 'server_effective_release_date': 'serverEffectiveReleaseDate', + 'server_license_type': 'serverLicenseType', + 'unlimited_agents': 'unlimitedAgents', + 'unlimited_build_types': 'unlimitedBuildTypes' + } + + def __init__(self, agents_left=None, build_types_left=None, license_keys=None, license_use_exceeded=False, max_agents=None, max_build_types=None, server_effective_release_date=None, server_license_type=None, unlimited_agents=False, unlimited_build_types=False): # noqa: E501 + """LicensingData - a model defined in Swagger""" # noqa: E501 + + self._agents_left = None + self._build_types_left = None + self._license_keys = None + self._license_use_exceeded = None + self._max_agents = None + self._max_build_types = None + self._server_effective_release_date = None + self._server_license_type = None + self._unlimited_agents = None + self._unlimited_build_types = None + self.discriminator = None + + if agents_left is not None: + self.agents_left = agents_left + if build_types_left is not None: + self.build_types_left = build_types_left + if license_keys is not None: + self.license_keys = license_keys + if license_use_exceeded is not None: + self.license_use_exceeded = license_use_exceeded + if max_agents is not None: + self.max_agents = max_agents + if max_build_types is not None: + self.max_build_types = max_build_types + if server_effective_release_date is not None: + self.server_effective_release_date = server_effective_release_date + if server_license_type is not None: + self.server_license_type = server_license_type + if unlimited_agents is not None: + self.unlimited_agents = unlimited_agents + if unlimited_build_types is not None: + self.unlimited_build_types = unlimited_build_types + + @property + def agents_left(self): + """Gets the agents_left of this LicensingData. # noqa: E501 + + + :return: The agents_left of this LicensingData. # noqa: E501 + :rtype: int + """ + return self._agents_left + + @agents_left.setter + def agents_left(self, agents_left): + """Sets the agents_left of this LicensingData. + + + :param agents_left: The agents_left of this LicensingData. # noqa: E501 + :type: int + """ + + self._agents_left = agents_left + + @property + def build_types_left(self): + """Gets the build_types_left of this LicensingData. # noqa: E501 + + + :return: The build_types_left of this LicensingData. # noqa: E501 + :rtype: int + """ + return self._build_types_left + + @build_types_left.setter + def build_types_left(self, build_types_left): + """Sets the build_types_left of this LicensingData. + + + :param build_types_left: The build_types_left of this LicensingData. # noqa: E501 + :type: int + """ + + self._build_types_left = build_types_left + + @property + def license_keys(self): + """Gets the license_keys of this LicensingData. # noqa: E501 + + + :return: The license_keys of this LicensingData. # noqa: E501 + :rtype: LicenseKeys + """ + return self._license_keys + + @license_keys.setter + def license_keys(self, license_keys): + """Sets the license_keys of this LicensingData. + + + :param license_keys: The license_keys of this LicensingData. # noqa: E501 + :type: LicenseKeys + """ + + self._license_keys = license_keys + + @property + def license_use_exceeded(self): + """Gets the license_use_exceeded of this LicensingData. # noqa: E501 + + + :return: The license_use_exceeded of this LicensingData. # noqa: E501 + :rtype: bool + """ + return self._license_use_exceeded + + @license_use_exceeded.setter + def license_use_exceeded(self, license_use_exceeded): + """Sets the license_use_exceeded of this LicensingData. + + + :param license_use_exceeded: The license_use_exceeded of this LicensingData. # noqa: E501 + :type: bool + """ + + self._license_use_exceeded = license_use_exceeded + + @property + def max_agents(self): + """Gets the max_agents of this LicensingData. # noqa: E501 + + + :return: The max_agents of this LicensingData. # noqa: E501 + :rtype: int + """ + return self._max_agents + + @max_agents.setter + def max_agents(self, max_agents): + """Sets the max_agents of this LicensingData. + + + :param max_agents: The max_agents of this LicensingData. # noqa: E501 + :type: int + """ + + self._max_agents = max_agents + + @property + def max_build_types(self): + """Gets the max_build_types of this LicensingData. # noqa: E501 + + + :return: The max_build_types of this LicensingData. # noqa: E501 + :rtype: int + """ + return self._max_build_types + + @max_build_types.setter + def max_build_types(self, max_build_types): + """Sets the max_build_types of this LicensingData. + + + :param max_build_types: The max_build_types of this LicensingData. # noqa: E501 + :type: int + """ + + self._max_build_types = max_build_types + + @property + def server_effective_release_date(self): + """Gets the server_effective_release_date of this LicensingData. # noqa: E501 + + + :return: The server_effective_release_date of this LicensingData. # noqa: E501 + :rtype: str + """ + return self._server_effective_release_date + + @server_effective_release_date.setter + def server_effective_release_date(self, server_effective_release_date): + """Sets the server_effective_release_date of this LicensingData. + + + :param server_effective_release_date: The server_effective_release_date of this LicensingData. # noqa: E501 + :type: str + """ + + self._server_effective_release_date = server_effective_release_date + + @property + def server_license_type(self): + """Gets the server_license_type of this LicensingData. # noqa: E501 + + + :return: The server_license_type of this LicensingData. # noqa: E501 + :rtype: str + """ + return self._server_license_type + + @server_license_type.setter + def server_license_type(self, server_license_type): + """Sets the server_license_type of this LicensingData. + + + :param server_license_type: The server_license_type of this LicensingData. # noqa: E501 + :type: str + """ + + self._server_license_type = server_license_type + + @property + def unlimited_agents(self): + """Gets the unlimited_agents of this LicensingData. # noqa: E501 + + + :return: The unlimited_agents of this LicensingData. # noqa: E501 + :rtype: bool + """ + return self._unlimited_agents + + @unlimited_agents.setter + def unlimited_agents(self, unlimited_agents): + """Sets the unlimited_agents of this LicensingData. + + + :param unlimited_agents: The unlimited_agents of this LicensingData. # noqa: E501 + :type: bool + """ + + self._unlimited_agents = unlimited_agents + + @property + def unlimited_build_types(self): + """Gets the unlimited_build_types of this LicensingData. # noqa: E501 + + + :return: The unlimited_build_types of this LicensingData. # noqa: E501 + :rtype: bool + """ + return self._unlimited_build_types + + @unlimited_build_types.setter + def unlimited_build_types(self, unlimited_build_types): + """Sets the unlimited_build_types of this LicensingData. + + + :param unlimited_build_types: The unlimited_build_types of this LicensingData. # noqa: E501 + :type: bool + """ + + self._unlimited_build_types = unlimited_build_types + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(LicensingData, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, LicensingData): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/link.py b/swagger_client/models/link.py new file mode 100644 index 0000000..7322a36 --- /dev/null +++ b/swagger_client/models/link.py @@ -0,0 +1,167 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class Link(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'relative_url': 'str', + 'type': 'str', + 'url': 'str' + } + + attribute_map = { + 'relative_url': 'relativeUrl', + 'type': 'type', + 'url': 'url' + } + + def __init__(self, relative_url=None, type=None, url=None): # noqa: E501 + """Link - a model defined in Swagger""" # noqa: E501 + + self._relative_url = None + self._type = None + self._url = None + self.discriminator = None + + if relative_url is not None: + self.relative_url = relative_url + if type is not None: + self.type = type + if url is not None: + self.url = url + + @property + def relative_url(self): + """Gets the relative_url of this Link. # noqa: E501 + + + :return: The relative_url of this Link. # noqa: E501 + :rtype: str + """ + return self._relative_url + + @relative_url.setter + def relative_url(self, relative_url): + """Sets the relative_url of this Link. + + + :param relative_url: The relative_url of this Link. # noqa: E501 + :type: str + """ + + self._relative_url = relative_url + + @property + def type(self): + """Gets the type of this Link. # noqa: E501 + + + :return: The type of this Link. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this Link. + + + :param type: The type of this Link. # noqa: E501 + :type: str + """ + + self._type = type + + @property + def url(self): + """Gets the url of this Link. # noqa: E501 + + + :return: The url of this Link. # noqa: E501 + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """Sets the url of this Link. + + + :param url: The url of this Link. # noqa: E501 + :type: str + """ + + self._url = url + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Link, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Link): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/links.py b/swagger_client/models/links.py new file mode 100644 index 0000000..a04ead5 --- /dev/null +++ b/swagger_client/models/links.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.link import Link # noqa: F401,E501 + + +class Links(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'link': 'list[Link]' + } + + attribute_map = { + 'count': 'count', + 'link': 'link' + } + + def __init__(self, count=None, link=None): # noqa: E501 + """Links - a model defined in Swagger""" # noqa: E501 + + self._count = None + self._link = None + self.discriminator = None + + if count is not None: + self.count = count + if link is not None: + self.link = link + + @property + def count(self): + """Gets the count of this Links. # noqa: E501 + + + :return: The count of this Links. # noqa: E501 + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this Links. + + + :param count: The count of this Links. # noqa: E501 + :type: int + """ + + self._count = count + + @property + def link(self): + """Gets the link of this Links. # noqa: E501 + + + :return: The link of this Links. # noqa: E501 + :rtype: list[Link] + """ + return self._link + + @link.setter + def link(self, link): + """Sets the link of this Links. + + + :param link: The link of this Links. # noqa: E501 + :type: list[Link] + """ + + self._link = link + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Links, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Links): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/meta_data.py b/swagger_client/models/meta_data.py new file mode 100644 index 0000000..64a7dfa --- /dev/null +++ b/swagger_client/models/meta_data.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.entries import Entries # noqa: F401,E501 + + +class MetaData(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'entries': 'Entries', + 'id': 'str' + } + + attribute_map = { + 'entries': 'entries', + 'id': 'id' + } + + def __init__(self, entries=None, id=None): # noqa: E501 + """MetaData - a model defined in Swagger""" # noqa: E501 + + self._entries = None + self._id = None + self.discriminator = None + + if entries is not None: + self.entries = entries + if id is not None: + self.id = id + + @property + def entries(self): + """Gets the entries of this MetaData. # noqa: E501 + + + :return: The entries of this MetaData. # noqa: E501 + :rtype: Entries + """ + return self._entries + + @entries.setter + def entries(self, entries): + """Sets the entries of this MetaData. + + + :param entries: The entries of this MetaData. # noqa: E501 + :type: Entries + """ + + self._entries = entries + + @property + def id(self): + """Gets the id of this MetaData. # noqa: E501 + + + :return: The id of this MetaData. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this MetaData. + + + :param id: The id of this MetaData. # noqa: E501 + :type: str + """ + + self._id = id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(MetaData, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MetaData): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/model_property.py b/swagger_client/models/model_property.py new file mode 100644 index 0000000..3a9752c --- /dev/null +++ b/swagger_client/models/model_property.py @@ -0,0 +1,195 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.type import Type # noqa: F401,E501 + + +class ModelProperty(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'inherited': 'bool', + 'name': 'str', + 'type': 'Type', + 'value': 'str' + } + + attribute_map = { + 'inherited': 'inherited', + 'name': 'name', + 'type': 'type', + 'value': 'value' + } + + def __init__(self, inherited=False, name=None, type=None, value=None): # noqa: E501 + """ModelProperty - a model defined in Swagger""" # noqa: E501 + + self._inherited = None + self._name = None + self._type = None + self._value = None + self.discriminator = None + + if inherited is not None: + self.inherited = inherited + if name is not None: + self.name = name + if type is not None: + self.type = type + if value is not None: + self.value = value + + @property + def inherited(self): + """Gets the inherited of this ModelProperty. # noqa: E501 + + + :return: The inherited of this ModelProperty. # noqa: E501 + :rtype: bool + """ + return self._inherited + + @inherited.setter + def inherited(self, inherited): + """Sets the inherited of this ModelProperty. + + + :param inherited: The inherited of this ModelProperty. # noqa: E501 + :type: bool + """ + + self._inherited = inherited + + @property + def name(self): + """Gets the name of this ModelProperty. # noqa: E501 + + + :return: The name of this ModelProperty. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ModelProperty. + + + :param name: The name of this ModelProperty. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def type(self): + """Gets the type of this ModelProperty. # noqa: E501 + + + :return: The type of this ModelProperty. # noqa: E501 + :rtype: Type + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this ModelProperty. + + + :param type: The type of this ModelProperty. # noqa: E501 + :type: Type + """ + + self._type = type + + @property + def value(self): + """Gets the value of this ModelProperty. # noqa: E501 + + + :return: The value of this ModelProperty. # noqa: E501 + :rtype: str + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this ModelProperty. + + + :param value: The value of this ModelProperty. # noqa: E501 + :type: str + """ + + self._value = value + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ModelProperty, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ModelProperty): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/mute.py b/swagger_client/models/mute.py new file mode 100644 index 0000000..b8fdcee --- /dev/null +++ b/swagger_client/models/mute.py @@ -0,0 +1,224 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.comment import Comment # noqa: F401,E501 +from swagger_client.models.problem_scope import ProblemScope # noqa: F401,E501 +from swagger_client.models.problem_target import ProblemTarget # noqa: F401,E501 +from swagger_client.models.resolution import Resolution # noqa: F401,E501 + + +class Mute(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'assignment': 'Comment', + 'id': 'int', + 'resolution': 'Resolution', + 'scope': 'ProblemScope', + 'target': 'ProblemTarget' + } + + attribute_map = { + 'assignment': 'assignment', + 'id': 'id', + 'resolution': 'resolution', + 'scope': 'scope', + 'target': 'target' + } + + def __init__(self, assignment=None, id=None, resolution=None, scope=None, target=None): # noqa: E501 + """Mute - a model defined in Swagger""" # noqa: E501 + + self._assignment = None + self._id = None + self._resolution = None + self._scope = None + self._target = None + self.discriminator = None + + if assignment is not None: + self.assignment = assignment + if id is not None: + self.id = id + if resolution is not None: + self.resolution = resolution + if scope is not None: + self.scope = scope + if target is not None: + self.target = target + + @property + def assignment(self): + """Gets the assignment of this Mute. # noqa: E501 + + + :return: The assignment of this Mute. # noqa: E501 + :rtype: Comment + """ + return self._assignment + + @assignment.setter + def assignment(self, assignment): + """Sets the assignment of this Mute. + + + :param assignment: The assignment of this Mute. # noqa: E501 + :type: Comment + """ + + self._assignment = assignment + + @property + def id(self): + """Gets the id of this Mute. # noqa: E501 + + + :return: The id of this Mute. # noqa: E501 + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this Mute. + + + :param id: The id of this Mute. # noqa: E501 + :type: int + """ + + self._id = id + + @property + def resolution(self): + """Gets the resolution of this Mute. # noqa: E501 + + + :return: The resolution of this Mute. # noqa: E501 + :rtype: Resolution + """ + return self._resolution + + @resolution.setter + def resolution(self, resolution): + """Sets the resolution of this Mute. + + + :param resolution: The resolution of this Mute. # noqa: E501 + :type: Resolution + """ + + self._resolution = resolution + + @property + def scope(self): + """Gets the scope of this Mute. # noqa: E501 + + + :return: The scope of this Mute. # noqa: E501 + :rtype: ProblemScope + """ + return self._scope + + @scope.setter + def scope(self, scope): + """Sets the scope of this Mute. + + + :param scope: The scope of this Mute. # noqa: E501 + :type: ProblemScope + """ + + self._scope = scope + + @property + def target(self): + """Gets the target of this Mute. # noqa: E501 + + + :return: The target of this Mute. # noqa: E501 + :rtype: ProblemTarget + """ + return self._target + + @target.setter + def target(self, target): + """Sets the target of this Mute. + + + :param target: The target of this Mute. # noqa: E501 + :type: ProblemTarget + """ + + self._target = target + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Mute, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Mute): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/mutes.py b/swagger_client/models/mutes.py new file mode 100644 index 0000000..af08e9b --- /dev/null +++ b/swagger_client/models/mutes.py @@ -0,0 +1,247 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.mute import Mute # noqa: F401,E501 + + +class Mutes(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'default': 'bool', + 'href': 'str', + 'mute': 'list[Mute]', + 'next_href': 'str', + 'prev_href': 'str' + } + + attribute_map = { + 'count': 'count', + 'default': 'default', + 'href': 'href', + 'mute': 'mute', + 'next_href': 'nextHref', + 'prev_href': 'prevHref' + } + + def __init__(self, count=None, default=False, href=None, mute=None, next_href=None, prev_href=None): # noqa: E501 + """Mutes - a model defined in Swagger""" # noqa: E501 + + self._count = None + self._default = None + self._href = None + self._mute = None + self._next_href = None + self._prev_href = None + self.discriminator = None + + if count is not None: + self.count = count + if default is not None: + self.default = default + if href is not None: + self.href = href + if mute is not None: + self.mute = mute + if next_href is not None: + self.next_href = next_href + if prev_href is not None: + self.prev_href = prev_href + + @property + def count(self): + """Gets the count of this Mutes. # noqa: E501 + + + :return: The count of this Mutes. # noqa: E501 + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this Mutes. + + + :param count: The count of this Mutes. # noqa: E501 + :type: int + """ + + self._count = count + + @property + def default(self): + """Gets the default of this Mutes. # noqa: E501 + + + :return: The default of this Mutes. # noqa: E501 + :rtype: bool + """ + return self._default + + @default.setter + def default(self, default): + """Sets the default of this Mutes. + + + :param default: The default of this Mutes. # noqa: E501 + :type: bool + """ + + self._default = default + + @property + def href(self): + """Gets the href of this Mutes. # noqa: E501 + + + :return: The href of this Mutes. # noqa: E501 + :rtype: str + """ + return self._href + + @href.setter + def href(self, href): + """Sets the href of this Mutes. + + + :param href: The href of this Mutes. # noqa: E501 + :type: str + """ + + self._href = href + + @property + def mute(self): + """Gets the mute of this Mutes. # noqa: E501 + + + :return: The mute of this Mutes. # noqa: E501 + :rtype: list[Mute] + """ + return self._mute + + @mute.setter + def mute(self, mute): + """Sets the mute of this Mutes. + + + :param mute: The mute of this Mutes. # noqa: E501 + :type: list[Mute] + """ + + self._mute = mute + + @property + def next_href(self): + """Gets the next_href of this Mutes. # noqa: E501 + + + :return: The next_href of this Mutes. # noqa: E501 + :rtype: str + """ + return self._next_href + + @next_href.setter + def next_href(self, next_href): + """Sets the next_href of this Mutes. + + + :param next_href: The next_href of this Mutes. # noqa: E501 + :type: str + """ + + self._next_href = next_href + + @property + def prev_href(self): + """Gets the prev_href of this Mutes. # noqa: E501 + + + :return: The prev_href of this Mutes. # noqa: E501 + :rtype: str + """ + return self._prev_href + + @prev_href.setter + def prev_href(self, prev_href): + """Sets the prev_href of this Mutes. + + + :param prev_href: The prev_href of this Mutes. # noqa: E501 + :type: str + """ + + self._prev_href = prev_href + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Mutes, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Mutes): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/new_build_type_description.py b/swagger_client/models/new_build_type_description.py new file mode 100644 index 0000000..25a7d5a --- /dev/null +++ b/swagger_client/models/new_build_type_description.py @@ -0,0 +1,300 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.build_type import BuildType # noqa: F401,E501 +from swagger_client.models.properties import Properties # noqa: F401,E501 + + +class NewBuildTypeDescription(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'build_types_ids_map': 'Properties', + 'copy_all_associated_settings': 'bool', + 'id': 'str', + 'name': 'str', + 'projects_ids_map': 'Properties', + 'source_build_type': 'BuildType', + 'source_build_type_locator': 'str', + 'vcs_roots_ids_map': 'Properties' + } + + attribute_map = { + 'build_types_ids_map': 'buildTypesIdsMap', + 'copy_all_associated_settings': 'copyAllAssociatedSettings', + 'id': 'id', + 'name': 'name', + 'projects_ids_map': 'projectsIdsMap', + 'source_build_type': 'sourceBuildType', + 'source_build_type_locator': 'sourceBuildTypeLocator', + 'vcs_roots_ids_map': 'vcsRootsIdsMap' + } + + def __init__(self, build_types_ids_map=None, copy_all_associated_settings=False, id=None, name=None, projects_ids_map=None, source_build_type=None, source_build_type_locator=None, vcs_roots_ids_map=None): # noqa: E501 + """NewBuildTypeDescription - a model defined in Swagger""" # noqa: E501 + + self._build_types_ids_map = None + self._copy_all_associated_settings = None + self._id = None + self._name = None + self._projects_ids_map = None + self._source_build_type = None + self._source_build_type_locator = None + self._vcs_roots_ids_map = None + self.discriminator = None + + if build_types_ids_map is not None: + self.build_types_ids_map = build_types_ids_map + if copy_all_associated_settings is not None: + self.copy_all_associated_settings = copy_all_associated_settings + if id is not None: + self.id = id + if name is not None: + self.name = name + if projects_ids_map is not None: + self.projects_ids_map = projects_ids_map + if source_build_type is not None: + self.source_build_type = source_build_type + if source_build_type_locator is not None: + self.source_build_type_locator = source_build_type_locator + if vcs_roots_ids_map is not None: + self.vcs_roots_ids_map = vcs_roots_ids_map + + @property + def build_types_ids_map(self): + """Gets the build_types_ids_map of this NewBuildTypeDescription. # noqa: E501 + + + :return: The build_types_ids_map of this NewBuildTypeDescription. # noqa: E501 + :rtype: Properties + """ + return self._build_types_ids_map + + @build_types_ids_map.setter + def build_types_ids_map(self, build_types_ids_map): + """Sets the build_types_ids_map of this NewBuildTypeDescription. + + + :param build_types_ids_map: The build_types_ids_map of this NewBuildTypeDescription. # noqa: E501 + :type: Properties + """ + + self._build_types_ids_map = build_types_ids_map + + @property + def copy_all_associated_settings(self): + """Gets the copy_all_associated_settings of this NewBuildTypeDescription. # noqa: E501 + + + :return: The copy_all_associated_settings of this NewBuildTypeDescription. # noqa: E501 + :rtype: bool + """ + return self._copy_all_associated_settings + + @copy_all_associated_settings.setter + def copy_all_associated_settings(self, copy_all_associated_settings): + """Sets the copy_all_associated_settings of this NewBuildTypeDescription. + + + :param copy_all_associated_settings: The copy_all_associated_settings of this NewBuildTypeDescription. # noqa: E501 + :type: bool + """ + + self._copy_all_associated_settings = copy_all_associated_settings + + @property + def id(self): + """Gets the id of this NewBuildTypeDescription. # noqa: E501 + + + :return: The id of this NewBuildTypeDescription. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this NewBuildTypeDescription. + + + :param id: The id of this NewBuildTypeDescription. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def name(self): + """Gets the name of this NewBuildTypeDescription. # noqa: E501 + + + :return: The name of this NewBuildTypeDescription. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this NewBuildTypeDescription. + + + :param name: The name of this NewBuildTypeDescription. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def projects_ids_map(self): + """Gets the projects_ids_map of this NewBuildTypeDescription. # noqa: E501 + + + :return: The projects_ids_map of this NewBuildTypeDescription. # noqa: E501 + :rtype: Properties + """ + return self._projects_ids_map + + @projects_ids_map.setter + def projects_ids_map(self, projects_ids_map): + """Sets the projects_ids_map of this NewBuildTypeDescription. + + + :param projects_ids_map: The projects_ids_map of this NewBuildTypeDescription. # noqa: E501 + :type: Properties + """ + + self._projects_ids_map = projects_ids_map + + @property + def source_build_type(self): + """Gets the source_build_type of this NewBuildTypeDescription. # noqa: E501 + + + :return: The source_build_type of this NewBuildTypeDescription. # noqa: E501 + :rtype: BuildType + """ + return self._source_build_type + + @source_build_type.setter + def source_build_type(self, source_build_type): + """Sets the source_build_type of this NewBuildTypeDescription. + + + :param source_build_type: The source_build_type of this NewBuildTypeDescription. # noqa: E501 + :type: BuildType + """ + + self._source_build_type = source_build_type + + @property + def source_build_type_locator(self): + """Gets the source_build_type_locator of this NewBuildTypeDescription. # noqa: E501 + + + :return: The source_build_type_locator of this NewBuildTypeDescription. # noqa: E501 + :rtype: str + """ + return self._source_build_type_locator + + @source_build_type_locator.setter + def source_build_type_locator(self, source_build_type_locator): + """Sets the source_build_type_locator of this NewBuildTypeDescription. + + + :param source_build_type_locator: The source_build_type_locator of this NewBuildTypeDescription. # noqa: E501 + :type: str + """ + + self._source_build_type_locator = source_build_type_locator + + @property + def vcs_roots_ids_map(self): + """Gets the vcs_roots_ids_map of this NewBuildTypeDescription. # noqa: E501 + + + :return: The vcs_roots_ids_map of this NewBuildTypeDescription. # noqa: E501 + :rtype: Properties + """ + return self._vcs_roots_ids_map + + @vcs_roots_ids_map.setter + def vcs_roots_ids_map(self, vcs_roots_ids_map): + """Sets the vcs_roots_ids_map of this NewBuildTypeDescription. + + + :param vcs_roots_ids_map: The vcs_roots_ids_map of this NewBuildTypeDescription. # noqa: E501 + :type: Properties + """ + + self._vcs_roots_ids_map = vcs_roots_ids_map + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(NewBuildTypeDescription, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, NewBuildTypeDescription): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/new_project_description.py b/swagger_client/models/new_project_description.py new file mode 100644 index 0000000..301edd9 --- /dev/null +++ b/swagger_client/models/new_project_description.py @@ -0,0 +1,326 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.project import Project # noqa: F401,E501 +from swagger_client.models.properties import Properties # noqa: F401,E501 + + +class NewProjectDescription(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'build_types_ids_map': 'Properties', + 'copy_all_associated_settings': 'bool', + 'id': 'str', + 'name': 'str', + 'parent_project': 'Project', + 'projects_ids_map': 'Properties', + 'source_project': 'Project', + 'source_project_locator': 'str', + 'vcs_roots_ids_map': 'Properties' + } + + attribute_map = { + 'build_types_ids_map': 'buildTypesIdsMap', + 'copy_all_associated_settings': 'copyAllAssociatedSettings', + 'id': 'id', + 'name': 'name', + 'parent_project': 'parentProject', + 'projects_ids_map': 'projectsIdsMap', + 'source_project': 'sourceProject', + 'source_project_locator': 'sourceProjectLocator', + 'vcs_roots_ids_map': 'vcsRootsIdsMap' + } + + def __init__(self, build_types_ids_map=None, copy_all_associated_settings=False, id=None, name=None, parent_project=None, projects_ids_map=None, source_project=None, source_project_locator=None, vcs_roots_ids_map=None): # noqa: E501 + """NewProjectDescription - a model defined in Swagger""" # noqa: E501 + + self._build_types_ids_map = None + self._copy_all_associated_settings = None + self._id = None + self._name = None + self._parent_project = None + self._projects_ids_map = None + self._source_project = None + self._source_project_locator = None + self._vcs_roots_ids_map = None + self.discriminator = None + + if build_types_ids_map is not None: + self.build_types_ids_map = build_types_ids_map + if copy_all_associated_settings is not None: + self.copy_all_associated_settings = copy_all_associated_settings + if id is not None: + self.id = id + if name is not None: + self.name = name + if parent_project is not None: + self.parent_project = parent_project + if projects_ids_map is not None: + self.projects_ids_map = projects_ids_map + if source_project is not None: + self.source_project = source_project + if source_project_locator is not None: + self.source_project_locator = source_project_locator + if vcs_roots_ids_map is not None: + self.vcs_roots_ids_map = vcs_roots_ids_map + + @property + def build_types_ids_map(self): + """Gets the build_types_ids_map of this NewProjectDescription. # noqa: E501 + + + :return: The build_types_ids_map of this NewProjectDescription. # noqa: E501 + :rtype: Properties + """ + return self._build_types_ids_map + + @build_types_ids_map.setter + def build_types_ids_map(self, build_types_ids_map): + """Sets the build_types_ids_map of this NewProjectDescription. + + + :param build_types_ids_map: The build_types_ids_map of this NewProjectDescription. # noqa: E501 + :type: Properties + """ + + self._build_types_ids_map = build_types_ids_map + + @property + def copy_all_associated_settings(self): + """Gets the copy_all_associated_settings of this NewProjectDescription. # noqa: E501 + + + :return: The copy_all_associated_settings of this NewProjectDescription. # noqa: E501 + :rtype: bool + """ + return self._copy_all_associated_settings + + @copy_all_associated_settings.setter + def copy_all_associated_settings(self, copy_all_associated_settings): + """Sets the copy_all_associated_settings of this NewProjectDescription. + + + :param copy_all_associated_settings: The copy_all_associated_settings of this NewProjectDescription. # noqa: E501 + :type: bool + """ + + self._copy_all_associated_settings = copy_all_associated_settings + + @property + def id(self): + """Gets the id of this NewProjectDescription. # noqa: E501 + + + :return: The id of this NewProjectDescription. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this NewProjectDescription. + + + :param id: The id of this NewProjectDescription. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def name(self): + """Gets the name of this NewProjectDescription. # noqa: E501 + + + :return: The name of this NewProjectDescription. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this NewProjectDescription. + + + :param name: The name of this NewProjectDescription. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def parent_project(self): + """Gets the parent_project of this NewProjectDescription. # noqa: E501 + + + :return: The parent_project of this NewProjectDescription. # noqa: E501 + :rtype: Project + """ + return self._parent_project + + @parent_project.setter + def parent_project(self, parent_project): + """Sets the parent_project of this NewProjectDescription. + + + :param parent_project: The parent_project of this NewProjectDescription. # noqa: E501 + :type: Project + """ + + self._parent_project = parent_project + + @property + def projects_ids_map(self): + """Gets the projects_ids_map of this NewProjectDescription. # noqa: E501 + + + :return: The projects_ids_map of this NewProjectDescription. # noqa: E501 + :rtype: Properties + """ + return self._projects_ids_map + + @projects_ids_map.setter + def projects_ids_map(self, projects_ids_map): + """Sets the projects_ids_map of this NewProjectDescription. + + + :param projects_ids_map: The projects_ids_map of this NewProjectDescription. # noqa: E501 + :type: Properties + """ + + self._projects_ids_map = projects_ids_map + + @property + def source_project(self): + """Gets the source_project of this NewProjectDescription. # noqa: E501 + + + :return: The source_project of this NewProjectDescription. # noqa: E501 + :rtype: Project + """ + return self._source_project + + @source_project.setter + def source_project(self, source_project): + """Sets the source_project of this NewProjectDescription. + + + :param source_project: The source_project of this NewProjectDescription. # noqa: E501 + :type: Project + """ + + self._source_project = source_project + + @property + def source_project_locator(self): + """Gets the source_project_locator of this NewProjectDescription. # noqa: E501 + + + :return: The source_project_locator of this NewProjectDescription. # noqa: E501 + :rtype: str + """ + return self._source_project_locator + + @source_project_locator.setter + def source_project_locator(self, source_project_locator): + """Sets the source_project_locator of this NewProjectDescription. + + + :param source_project_locator: The source_project_locator of this NewProjectDescription. # noqa: E501 + :type: str + """ + + self._source_project_locator = source_project_locator + + @property + def vcs_roots_ids_map(self): + """Gets the vcs_roots_ids_map of this NewProjectDescription. # noqa: E501 + + + :return: The vcs_roots_ids_map of this NewProjectDescription. # noqa: E501 + :rtype: Properties + """ + return self._vcs_roots_ids_map + + @vcs_roots_ids_map.setter + def vcs_roots_ids_map(self, vcs_roots_ids_map): + """Sets the vcs_roots_ids_map of this NewProjectDescription. + + + :param vcs_roots_ids_map: The vcs_roots_ids_map of this NewProjectDescription. # noqa: E501 + :type: Properties + """ + + self._vcs_roots_ids_map = vcs_roots_ids_map + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(NewProjectDescription, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, NewProjectDescription): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/plugin.py b/swagger_client/models/plugin.py new file mode 100644 index 0000000..1f9b035 --- /dev/null +++ b/swagger_client/models/plugin.py @@ -0,0 +1,221 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.properties import Properties # noqa: F401,E501 + + +class Plugin(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'display_name': 'str', + 'load_path': 'str', + 'name': 'str', + 'parameters': 'Properties', + 'version': 'str' + } + + attribute_map = { + 'display_name': 'displayName', + 'load_path': 'loadPath', + 'name': 'name', + 'parameters': 'parameters', + 'version': 'version' + } + + def __init__(self, display_name=None, load_path=None, name=None, parameters=None, version=None): # noqa: E501 + """Plugin - a model defined in Swagger""" # noqa: E501 + + self._display_name = None + self._load_path = None + self._name = None + self._parameters = None + self._version = None + self.discriminator = None + + if display_name is not None: + self.display_name = display_name + if load_path is not None: + self.load_path = load_path + if name is not None: + self.name = name + if parameters is not None: + self.parameters = parameters + if version is not None: + self.version = version + + @property + def display_name(self): + """Gets the display_name of this Plugin. # noqa: E501 + + + :return: The display_name of this Plugin. # noqa: E501 + :rtype: str + """ + return self._display_name + + @display_name.setter + def display_name(self, display_name): + """Sets the display_name of this Plugin. + + + :param display_name: The display_name of this Plugin. # noqa: E501 + :type: str + """ + + self._display_name = display_name + + @property + def load_path(self): + """Gets the load_path of this Plugin. # noqa: E501 + + + :return: The load_path of this Plugin. # noqa: E501 + :rtype: str + """ + return self._load_path + + @load_path.setter + def load_path(self, load_path): + """Sets the load_path of this Plugin. + + + :param load_path: The load_path of this Plugin. # noqa: E501 + :type: str + """ + + self._load_path = load_path + + @property + def name(self): + """Gets the name of this Plugin. # noqa: E501 + + + :return: The name of this Plugin. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this Plugin. + + + :param name: The name of this Plugin. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def parameters(self): + """Gets the parameters of this Plugin. # noqa: E501 + + + :return: The parameters of this Plugin. # noqa: E501 + :rtype: Properties + """ + return self._parameters + + @parameters.setter + def parameters(self, parameters): + """Sets the parameters of this Plugin. + + + :param parameters: The parameters of this Plugin. # noqa: E501 + :type: Properties + """ + + self._parameters = parameters + + @property + def version(self): + """Gets the version of this Plugin. # noqa: E501 + + + :return: The version of this Plugin. # noqa: E501 + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this Plugin. + + + :param version: The version of this Plugin. # noqa: E501 + :type: str + """ + + self._version = version + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Plugin, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Plugin): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/plugins.py b/swagger_client/models/plugins.py new file mode 100644 index 0000000..966a899 --- /dev/null +++ b/swagger_client/models/plugins.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.plugin import Plugin # noqa: F401,E501 + + +class Plugins(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'plugin': 'list[Plugin]' + } + + attribute_map = { + 'count': 'count', + 'plugin': 'plugin' + } + + def __init__(self, count=None, plugin=None): # noqa: E501 + """Plugins - a model defined in Swagger""" # noqa: E501 + + self._count = None + self._plugin = None + self.discriminator = None + + if count is not None: + self.count = count + if plugin is not None: + self.plugin = plugin + + @property + def count(self): + """Gets the count of this Plugins. # noqa: E501 + + + :return: The count of this Plugins. # noqa: E501 + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this Plugins. + + + :param count: The count of this Plugins. # noqa: E501 + :type: int + """ + + self._count = count + + @property + def plugin(self): + """Gets the plugin of this Plugins. # noqa: E501 + + + :return: The plugin of this Plugins. # noqa: E501 + :rtype: list[Plugin] + """ + return self._plugin + + @plugin.setter + def plugin(self, plugin): + """Sets the plugin of this Plugins. + + + :param plugin: The plugin of this Plugins. # noqa: E501 + :type: list[Plugin] + """ + + self._plugin = plugin + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Plugins, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Plugins): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/problem.py b/swagger_client/models/problem.py new file mode 100644 index 0000000..085c0f2 --- /dev/null +++ b/swagger_client/models/problem.py @@ -0,0 +1,275 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.investigations import Investigations # noqa: F401,E501 +from swagger_client.models.mutes import Mutes # noqa: F401,E501 +from swagger_client.models.problem_occurrences import ProblemOccurrences # noqa: F401,E501 + + +class Problem(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'href': 'str', + 'id': 'str', + 'identity': 'str', + 'investigations': 'Investigations', + 'mutes': 'Mutes', + 'problem_occurrences': 'ProblemOccurrences', + 'type': 'str' + } + + attribute_map = { + 'href': 'href', + 'id': 'id', + 'identity': 'identity', + 'investigations': 'investigations', + 'mutes': 'mutes', + 'problem_occurrences': 'problemOccurrences', + 'type': 'type' + } + + def __init__(self, href=None, id=None, identity=None, investigations=None, mutes=None, problem_occurrences=None, type=None): # noqa: E501 + """Problem - a model defined in Swagger""" # noqa: E501 + + self._href = None + self._id = None + self._identity = None + self._investigations = None + self._mutes = None + self._problem_occurrences = None + self._type = None + self.discriminator = None + + if href is not None: + self.href = href + if id is not None: + self.id = id + if identity is not None: + self.identity = identity + if investigations is not None: + self.investigations = investigations + if mutes is not None: + self.mutes = mutes + if problem_occurrences is not None: + self.problem_occurrences = problem_occurrences + if type is not None: + self.type = type + + @property + def href(self): + """Gets the href of this Problem. # noqa: E501 + + + :return: The href of this Problem. # noqa: E501 + :rtype: str + """ + return self._href + + @href.setter + def href(self, href): + """Sets the href of this Problem. + + + :param href: The href of this Problem. # noqa: E501 + :type: str + """ + + self._href = href + + @property + def id(self): + """Gets the id of this Problem. # noqa: E501 + + + :return: The id of this Problem. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this Problem. + + + :param id: The id of this Problem. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def identity(self): + """Gets the identity of this Problem. # noqa: E501 + + + :return: The identity of this Problem. # noqa: E501 + :rtype: str + """ + return self._identity + + @identity.setter + def identity(self, identity): + """Sets the identity of this Problem. + + + :param identity: The identity of this Problem. # noqa: E501 + :type: str + """ + + self._identity = identity + + @property + def investigations(self): + """Gets the investigations of this Problem. # noqa: E501 + + + :return: The investigations of this Problem. # noqa: E501 + :rtype: Investigations + """ + return self._investigations + + @investigations.setter + def investigations(self, investigations): + """Sets the investigations of this Problem. + + + :param investigations: The investigations of this Problem. # noqa: E501 + :type: Investigations + """ + + self._investigations = investigations + + @property + def mutes(self): + """Gets the mutes of this Problem. # noqa: E501 + + + :return: The mutes of this Problem. # noqa: E501 + :rtype: Mutes + """ + return self._mutes + + @mutes.setter + def mutes(self, mutes): + """Sets the mutes of this Problem. + + + :param mutes: The mutes of this Problem. # noqa: E501 + :type: Mutes + """ + + self._mutes = mutes + + @property + def problem_occurrences(self): + """Gets the problem_occurrences of this Problem. # noqa: E501 + + + :return: The problem_occurrences of this Problem. # noqa: E501 + :rtype: ProblemOccurrences + """ + return self._problem_occurrences + + @problem_occurrences.setter + def problem_occurrences(self, problem_occurrences): + """Sets the problem_occurrences of this Problem. + + + :param problem_occurrences: The problem_occurrences of this Problem. # noqa: E501 + :type: ProblemOccurrences + """ + + self._problem_occurrences = problem_occurrences + + @property + def type(self): + """Gets the type of this Problem. # noqa: E501 + + + :return: The type of this Problem. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this Problem. + + + :param type: The type of this Problem. # noqa: E501 + :type: str + """ + + self._type = type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Problem, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Problem): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/problem_occurrence.py b/swagger_client/models/problem_occurrence.py new file mode 100644 index 0000000..a53cfa5 --- /dev/null +++ b/swagger_client/models/problem_occurrence.py @@ -0,0 +1,405 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.build import Build # noqa: F401,E501 +from swagger_client.models.mute import Mute # noqa: F401,E501 +from swagger_client.models.problem import Problem # noqa: F401,E501 + + +class ProblemOccurrence(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'additional_data': 'str', + 'build': 'Build', + 'currently_investigated': 'bool', + 'currently_muted': 'bool', + 'details': 'str', + 'href': 'str', + 'id': 'str', + 'identity': 'str', + 'mute': 'Mute', + 'muted': 'bool', + 'problem': 'Problem', + 'type': 'str' + } + + attribute_map = { + 'additional_data': 'additionalData', + 'build': 'build', + 'currently_investigated': 'currentlyInvestigated', + 'currently_muted': 'currentlyMuted', + 'details': 'details', + 'href': 'href', + 'id': 'id', + 'identity': 'identity', + 'mute': 'mute', + 'muted': 'muted', + 'problem': 'problem', + 'type': 'type' + } + + def __init__(self, additional_data=None, build=None, currently_investigated=False, currently_muted=False, details=None, href=None, id=None, identity=None, mute=None, muted=False, problem=None, type=None): # noqa: E501 + """ProblemOccurrence - a model defined in Swagger""" # noqa: E501 + + self._additional_data = None + self._build = None + self._currently_investigated = None + self._currently_muted = None + self._details = None + self._href = None + self._id = None + self._identity = None + self._mute = None + self._muted = None + self._problem = None + self._type = None + self.discriminator = None + + if additional_data is not None: + self.additional_data = additional_data + if build is not None: + self.build = build + if currently_investigated is not None: + self.currently_investigated = currently_investigated + if currently_muted is not None: + self.currently_muted = currently_muted + if details is not None: + self.details = details + if href is not None: + self.href = href + if id is not None: + self.id = id + if identity is not None: + self.identity = identity + if mute is not None: + self.mute = mute + if muted is not None: + self.muted = muted + if problem is not None: + self.problem = problem + if type is not None: + self.type = type + + @property + def additional_data(self): + """Gets the additional_data of this ProblemOccurrence. # noqa: E501 + + + :return: The additional_data of this ProblemOccurrence. # noqa: E501 + :rtype: str + """ + return self._additional_data + + @additional_data.setter + def additional_data(self, additional_data): + """Sets the additional_data of this ProblemOccurrence. + + + :param additional_data: The additional_data of this ProblemOccurrence. # noqa: E501 + :type: str + """ + + self._additional_data = additional_data + + @property + def build(self): + """Gets the build of this ProblemOccurrence. # noqa: E501 + + + :return: The build of this ProblemOccurrence. # noqa: E501 + :rtype: Build + """ + return self._build + + @build.setter + def build(self, build): + """Sets the build of this ProblemOccurrence. + + + :param build: The build of this ProblemOccurrence. # noqa: E501 + :type: Build + """ + + self._build = build + + @property + def currently_investigated(self): + """Gets the currently_investigated of this ProblemOccurrence. # noqa: E501 + + + :return: The currently_investigated of this ProblemOccurrence. # noqa: E501 + :rtype: bool + """ + return self._currently_investigated + + @currently_investigated.setter + def currently_investigated(self, currently_investigated): + """Sets the currently_investigated of this ProblemOccurrence. + + + :param currently_investigated: The currently_investigated of this ProblemOccurrence. # noqa: E501 + :type: bool + """ + + self._currently_investigated = currently_investigated + + @property + def currently_muted(self): + """Gets the currently_muted of this ProblemOccurrence. # noqa: E501 + + + :return: The currently_muted of this ProblemOccurrence. # noqa: E501 + :rtype: bool + """ + return self._currently_muted + + @currently_muted.setter + def currently_muted(self, currently_muted): + """Sets the currently_muted of this ProblemOccurrence. + + + :param currently_muted: The currently_muted of this ProblemOccurrence. # noqa: E501 + :type: bool + """ + + self._currently_muted = currently_muted + + @property + def details(self): + """Gets the details of this ProblemOccurrence. # noqa: E501 + + + :return: The details of this ProblemOccurrence. # noqa: E501 + :rtype: str + """ + return self._details + + @details.setter + def details(self, details): + """Sets the details of this ProblemOccurrence. + + + :param details: The details of this ProblemOccurrence. # noqa: E501 + :type: str + """ + + self._details = details + + @property + def href(self): + """Gets the href of this ProblemOccurrence. # noqa: E501 + + + :return: The href of this ProblemOccurrence. # noqa: E501 + :rtype: str + """ + return self._href + + @href.setter + def href(self, href): + """Sets the href of this ProblemOccurrence. + + + :param href: The href of this ProblemOccurrence. # noqa: E501 + :type: str + """ + + self._href = href + + @property + def id(self): + """Gets the id of this ProblemOccurrence. # noqa: E501 + + + :return: The id of this ProblemOccurrence. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this ProblemOccurrence. + + + :param id: The id of this ProblemOccurrence. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def identity(self): + """Gets the identity of this ProblemOccurrence. # noqa: E501 + + + :return: The identity of this ProblemOccurrence. # noqa: E501 + :rtype: str + """ + return self._identity + + @identity.setter + def identity(self, identity): + """Sets the identity of this ProblemOccurrence. + + + :param identity: The identity of this ProblemOccurrence. # noqa: E501 + :type: str + """ + + self._identity = identity + + @property + def mute(self): + """Gets the mute of this ProblemOccurrence. # noqa: E501 + + + :return: The mute of this ProblemOccurrence. # noqa: E501 + :rtype: Mute + """ + return self._mute + + @mute.setter + def mute(self, mute): + """Sets the mute of this ProblemOccurrence. + + + :param mute: The mute of this ProblemOccurrence. # noqa: E501 + :type: Mute + """ + + self._mute = mute + + @property + def muted(self): + """Gets the muted of this ProblemOccurrence. # noqa: E501 + + + :return: The muted of this ProblemOccurrence. # noqa: E501 + :rtype: bool + """ + return self._muted + + @muted.setter + def muted(self, muted): + """Sets the muted of this ProblemOccurrence. + + + :param muted: The muted of this ProblemOccurrence. # noqa: E501 + :type: bool + """ + + self._muted = muted + + @property + def problem(self): + """Gets the problem of this ProblemOccurrence. # noqa: E501 + + + :return: The problem of this ProblemOccurrence. # noqa: E501 + :rtype: Problem + """ + return self._problem + + @problem.setter + def problem(self, problem): + """Sets the problem of this ProblemOccurrence. + + + :param problem: The problem of this ProblemOccurrence. # noqa: E501 + :type: Problem + """ + + self._problem = problem + + @property + def type(self): + """Gets the type of this ProblemOccurrence. # noqa: E501 + + + :return: The type of this ProblemOccurrence. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this ProblemOccurrence. + + + :param type: The type of this ProblemOccurrence. # noqa: E501 + :type: str + """ + + self._type = type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ProblemOccurrence, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ProblemOccurrence): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/problem_occurrences.py b/swagger_client/models/problem_occurrences.py new file mode 100644 index 0000000..24cdd69 --- /dev/null +++ b/swagger_client/models/problem_occurrences.py @@ -0,0 +1,377 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.problem_occurrence import ProblemOccurrence # noqa: F401,E501 + + +class ProblemOccurrences(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'default': 'bool', + 'failed': 'int', + 'href': 'str', + 'ignored': 'int', + 'muted': 'int', + 'new_failed': 'int', + 'next_href': 'str', + 'passed': 'int', + 'prev_href': 'str', + 'problem_occurrence': 'list[ProblemOccurrence]' + } + + attribute_map = { + 'count': 'count', + 'default': 'default', + 'failed': 'failed', + 'href': 'href', + 'ignored': 'ignored', + 'muted': 'muted', + 'new_failed': 'newFailed', + 'next_href': 'nextHref', + 'passed': 'passed', + 'prev_href': 'prevHref', + 'problem_occurrence': 'problemOccurrence' + } + + def __init__(self, count=None, default=False, failed=None, href=None, ignored=None, muted=None, new_failed=None, next_href=None, passed=None, prev_href=None, problem_occurrence=None): # noqa: E501 + """ProblemOccurrences - a model defined in Swagger""" # noqa: E501 + + self._count = None + self._default = None + self._failed = None + self._href = None + self._ignored = None + self._muted = None + self._new_failed = None + self._next_href = None + self._passed = None + self._prev_href = None + self._problem_occurrence = None + self.discriminator = None + + if count is not None: + self.count = count + if default is not None: + self.default = default + if failed is not None: + self.failed = failed + if href is not None: + self.href = href + if ignored is not None: + self.ignored = ignored + if muted is not None: + self.muted = muted + if new_failed is not None: + self.new_failed = new_failed + if next_href is not None: + self.next_href = next_href + if passed is not None: + self.passed = passed + if prev_href is not None: + self.prev_href = prev_href + if problem_occurrence is not None: + self.problem_occurrence = problem_occurrence + + @property + def count(self): + """Gets the count of this ProblemOccurrences. # noqa: E501 + + + :return: The count of this ProblemOccurrences. # noqa: E501 + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this ProblemOccurrences. + + + :param count: The count of this ProblemOccurrences. # noqa: E501 + :type: int + """ + + self._count = count + + @property + def default(self): + """Gets the default of this ProblemOccurrences. # noqa: E501 + + + :return: The default of this ProblemOccurrences. # noqa: E501 + :rtype: bool + """ + return self._default + + @default.setter + def default(self, default): + """Sets the default of this ProblemOccurrences. + + + :param default: The default of this ProblemOccurrences. # noqa: E501 + :type: bool + """ + + self._default = default + + @property + def failed(self): + """Gets the failed of this ProblemOccurrences. # noqa: E501 + + + :return: The failed of this ProblemOccurrences. # noqa: E501 + :rtype: int + """ + return self._failed + + @failed.setter + def failed(self, failed): + """Sets the failed of this ProblemOccurrences. + + + :param failed: The failed of this ProblemOccurrences. # noqa: E501 + :type: int + """ + + self._failed = failed + + @property + def href(self): + """Gets the href of this ProblemOccurrences. # noqa: E501 + + + :return: The href of this ProblemOccurrences. # noqa: E501 + :rtype: str + """ + return self._href + + @href.setter + def href(self, href): + """Sets the href of this ProblemOccurrences. + + + :param href: The href of this ProblemOccurrences. # noqa: E501 + :type: str + """ + + self._href = href + + @property + def ignored(self): + """Gets the ignored of this ProblemOccurrences. # noqa: E501 + + + :return: The ignored of this ProblemOccurrences. # noqa: E501 + :rtype: int + """ + return self._ignored + + @ignored.setter + def ignored(self, ignored): + """Sets the ignored of this ProblemOccurrences. + + + :param ignored: The ignored of this ProblemOccurrences. # noqa: E501 + :type: int + """ + + self._ignored = ignored + + @property + def muted(self): + """Gets the muted of this ProblemOccurrences. # noqa: E501 + + + :return: The muted of this ProblemOccurrences. # noqa: E501 + :rtype: int + """ + return self._muted + + @muted.setter + def muted(self, muted): + """Sets the muted of this ProblemOccurrences. + + + :param muted: The muted of this ProblemOccurrences. # noqa: E501 + :type: int + """ + + self._muted = muted + + @property + def new_failed(self): + """Gets the new_failed of this ProblemOccurrences. # noqa: E501 + + + :return: The new_failed of this ProblemOccurrences. # noqa: E501 + :rtype: int + """ + return self._new_failed + + @new_failed.setter + def new_failed(self, new_failed): + """Sets the new_failed of this ProblemOccurrences. + + + :param new_failed: The new_failed of this ProblemOccurrences. # noqa: E501 + :type: int + """ + + self._new_failed = new_failed + + @property + def next_href(self): + """Gets the next_href of this ProblemOccurrences. # noqa: E501 + + + :return: The next_href of this ProblemOccurrences. # noqa: E501 + :rtype: str + """ + return self._next_href + + @next_href.setter + def next_href(self, next_href): + """Sets the next_href of this ProblemOccurrences. + + + :param next_href: The next_href of this ProblemOccurrences. # noqa: E501 + :type: str + """ + + self._next_href = next_href + + @property + def passed(self): + """Gets the passed of this ProblemOccurrences. # noqa: E501 + + + :return: The passed of this ProblemOccurrences. # noqa: E501 + :rtype: int + """ + return self._passed + + @passed.setter + def passed(self, passed): + """Sets the passed of this ProblemOccurrences. + + + :param passed: The passed of this ProblemOccurrences. # noqa: E501 + :type: int + """ + + self._passed = passed + + @property + def prev_href(self): + """Gets the prev_href of this ProblemOccurrences. # noqa: E501 + + + :return: The prev_href of this ProblemOccurrences. # noqa: E501 + :rtype: str + """ + return self._prev_href + + @prev_href.setter + def prev_href(self, prev_href): + """Sets the prev_href of this ProblemOccurrences. + + + :param prev_href: The prev_href of this ProblemOccurrences. # noqa: E501 + :type: str + """ + + self._prev_href = prev_href + + @property + def problem_occurrence(self): + """Gets the problem_occurrence of this ProblemOccurrences. # noqa: E501 + + + :return: The problem_occurrence of this ProblemOccurrences. # noqa: E501 + :rtype: list[ProblemOccurrence] + """ + return self._problem_occurrence + + @problem_occurrence.setter + def problem_occurrence(self, problem_occurrence): + """Sets the problem_occurrence of this ProblemOccurrences. + + + :param problem_occurrence: The problem_occurrence of this ProblemOccurrences. # noqa: E501 + :type: list[ProblemOccurrence] + """ + + self._problem_occurrence = problem_occurrence + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ProblemOccurrences, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ProblemOccurrences): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/problem_scope.py b/swagger_client/models/problem_scope.py new file mode 100644 index 0000000..a23becb --- /dev/null +++ b/swagger_client/models/problem_scope.py @@ -0,0 +1,171 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.build_type import BuildType # noqa: F401,E501 +from swagger_client.models.build_types import BuildTypes # noqa: F401,E501 +from swagger_client.models.project import Project # noqa: F401,E501 + + +class ProblemScope(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'build_type': 'BuildType', + 'build_types': 'BuildTypes', + 'project': 'Project' + } + + attribute_map = { + 'build_type': 'buildType', + 'build_types': 'buildTypes', + 'project': 'project' + } + + def __init__(self, build_type=None, build_types=None, project=None): # noqa: E501 + """ProblemScope - a model defined in Swagger""" # noqa: E501 + + self._build_type = None + self._build_types = None + self._project = None + self.discriminator = None + + if build_type is not None: + self.build_type = build_type + if build_types is not None: + self.build_types = build_types + if project is not None: + self.project = project + + @property + def build_type(self): + """Gets the build_type of this ProblemScope. # noqa: E501 + + + :return: The build_type of this ProblemScope. # noqa: E501 + :rtype: BuildType + """ + return self._build_type + + @build_type.setter + def build_type(self, build_type): + """Sets the build_type of this ProblemScope. + + + :param build_type: The build_type of this ProblemScope. # noqa: E501 + :type: BuildType + """ + + self._build_type = build_type + + @property + def build_types(self): + """Gets the build_types of this ProblemScope. # noqa: E501 + + + :return: The build_types of this ProblemScope. # noqa: E501 + :rtype: BuildTypes + """ + return self._build_types + + @build_types.setter + def build_types(self, build_types): + """Sets the build_types of this ProblemScope. + + + :param build_types: The build_types of this ProblemScope. # noqa: E501 + :type: BuildTypes + """ + + self._build_types = build_types + + @property + def project(self): + """Gets the project of this ProblemScope. # noqa: E501 + + + :return: The project of this ProblemScope. # noqa: E501 + :rtype: Project + """ + return self._project + + @project.setter + def project(self, project): + """Sets the project of this ProblemScope. + + + :param project: The project of this ProblemScope. # noqa: E501 + :type: Project + """ + + self._project = project + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ProblemScope, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ProblemScope): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/problem_target.py b/swagger_client/models/problem_target.py new file mode 100644 index 0000000..7592c28 --- /dev/null +++ b/swagger_client/models/problem_target.py @@ -0,0 +1,170 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.problems import Problems # noqa: F401,E501 +from swagger_client.models.tests import Tests # noqa: F401,E501 + + +class ProblemTarget(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'any_problem': 'bool', + 'problems': 'Problems', + 'tests': 'Tests' + } + + attribute_map = { + 'any_problem': 'anyProblem', + 'problems': 'problems', + 'tests': 'tests' + } + + def __init__(self, any_problem=False, problems=None, tests=None): # noqa: E501 + """ProblemTarget - a model defined in Swagger""" # noqa: E501 + + self._any_problem = None + self._problems = None + self._tests = None + self.discriminator = None + + if any_problem is not None: + self.any_problem = any_problem + if problems is not None: + self.problems = problems + if tests is not None: + self.tests = tests + + @property + def any_problem(self): + """Gets the any_problem of this ProblemTarget. # noqa: E501 + + + :return: The any_problem of this ProblemTarget. # noqa: E501 + :rtype: bool + """ + return self._any_problem + + @any_problem.setter + def any_problem(self, any_problem): + """Sets the any_problem of this ProblemTarget. + + + :param any_problem: The any_problem of this ProblemTarget. # noqa: E501 + :type: bool + """ + + self._any_problem = any_problem + + @property + def problems(self): + """Gets the problems of this ProblemTarget. # noqa: E501 + + + :return: The problems of this ProblemTarget. # noqa: E501 + :rtype: Problems + """ + return self._problems + + @problems.setter + def problems(self, problems): + """Sets the problems of this ProblemTarget. + + + :param problems: The problems of this ProblemTarget. # noqa: E501 + :type: Problems + """ + + self._problems = problems + + @property + def tests(self): + """Gets the tests of this ProblemTarget. # noqa: E501 + + + :return: The tests of this ProblemTarget. # noqa: E501 + :rtype: Tests + """ + return self._tests + + @tests.setter + def tests(self, tests): + """Sets the tests of this ProblemTarget. + + + :param tests: The tests of this ProblemTarget. # noqa: E501 + :type: Tests + """ + + self._tests = tests + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ProblemTarget, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ProblemTarget): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/problems.py b/swagger_client/models/problems.py new file mode 100644 index 0000000..ae57262 --- /dev/null +++ b/swagger_client/models/problems.py @@ -0,0 +1,221 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.problem import Problem # noqa: F401,E501 + + +class Problems(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'default': 'bool', + 'next_href': 'str', + 'prev_href': 'str', + 'problem': 'list[Problem]' + } + + attribute_map = { + 'count': 'count', + 'default': 'default', + 'next_href': 'nextHref', + 'prev_href': 'prevHref', + 'problem': 'problem' + } + + def __init__(self, count=None, default=False, next_href=None, prev_href=None, problem=None): # noqa: E501 + """Problems - a model defined in Swagger""" # noqa: E501 + + self._count = None + self._default = None + self._next_href = None + self._prev_href = None + self._problem = None + self.discriminator = None + + if count is not None: + self.count = count + if default is not None: + self.default = default + if next_href is not None: + self.next_href = next_href + if prev_href is not None: + self.prev_href = prev_href + if problem is not None: + self.problem = problem + + @property + def count(self): + """Gets the count of this Problems. # noqa: E501 + + + :return: The count of this Problems. # noqa: E501 + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this Problems. + + + :param count: The count of this Problems. # noqa: E501 + :type: int + """ + + self._count = count + + @property + def default(self): + """Gets the default of this Problems. # noqa: E501 + + + :return: The default of this Problems. # noqa: E501 + :rtype: bool + """ + return self._default + + @default.setter + def default(self, default): + """Sets the default of this Problems. + + + :param default: The default of this Problems. # noqa: E501 + :type: bool + """ + + self._default = default + + @property + def next_href(self): + """Gets the next_href of this Problems. # noqa: E501 + + + :return: The next_href of this Problems. # noqa: E501 + :rtype: str + """ + return self._next_href + + @next_href.setter + def next_href(self, next_href): + """Sets the next_href of this Problems. + + + :param next_href: The next_href of this Problems. # noqa: E501 + :type: str + """ + + self._next_href = next_href + + @property + def prev_href(self): + """Gets the prev_href of this Problems. # noqa: E501 + + + :return: The prev_href of this Problems. # noqa: E501 + :rtype: str + """ + return self._prev_href + + @prev_href.setter + def prev_href(self, prev_href): + """Sets the prev_href of this Problems. + + + :param prev_href: The prev_href of this Problems. # noqa: E501 + :type: str + """ + + self._prev_href = prev_href + + @property + def problem(self): + """Gets the problem of this Problems. # noqa: E501 + + + :return: The problem of this Problems. # noqa: E501 + :rtype: list[Problem] + """ + return self._problem + + @problem.setter + def problem(self, problem): + """Sets the problem of this Problems. + + + :param problem: The problem of this Problems. # noqa: E501 + :type: list[Problem] + """ + + self._problem = problem + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Problems, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Problems): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/progress_info.py b/swagger_client/models/progress_info.py new file mode 100644 index 0000000..84a5dea --- /dev/null +++ b/swagger_client/models/progress_info.py @@ -0,0 +1,245 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class ProgressInfo(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'current_stage_text': 'str', + 'elapsed_seconds': 'int', + 'estimated_total_seconds': 'int', + 'outdated': 'bool', + 'percentage_complete': 'int', + 'probably_hanging': 'bool' + } + + attribute_map = { + 'current_stage_text': 'currentStageText', + 'elapsed_seconds': 'elapsedSeconds', + 'estimated_total_seconds': 'estimatedTotalSeconds', + 'outdated': 'outdated', + 'percentage_complete': 'percentageComplete', + 'probably_hanging': 'probablyHanging' + } + + def __init__(self, current_stage_text=None, elapsed_seconds=None, estimated_total_seconds=None, outdated=False, percentage_complete=None, probably_hanging=False): # noqa: E501 + """ProgressInfo - a model defined in Swagger""" # noqa: E501 + + self._current_stage_text = None + self._elapsed_seconds = None + self._estimated_total_seconds = None + self._outdated = None + self._percentage_complete = None + self._probably_hanging = None + self.discriminator = None + + if current_stage_text is not None: + self.current_stage_text = current_stage_text + if elapsed_seconds is not None: + self.elapsed_seconds = elapsed_seconds + if estimated_total_seconds is not None: + self.estimated_total_seconds = estimated_total_seconds + if outdated is not None: + self.outdated = outdated + if percentage_complete is not None: + self.percentage_complete = percentage_complete + if probably_hanging is not None: + self.probably_hanging = probably_hanging + + @property + def current_stage_text(self): + """Gets the current_stage_text of this ProgressInfo. # noqa: E501 + + + :return: The current_stage_text of this ProgressInfo. # noqa: E501 + :rtype: str + """ + return self._current_stage_text + + @current_stage_text.setter + def current_stage_text(self, current_stage_text): + """Sets the current_stage_text of this ProgressInfo. + + + :param current_stage_text: The current_stage_text of this ProgressInfo. # noqa: E501 + :type: str + """ + + self._current_stage_text = current_stage_text + + @property + def elapsed_seconds(self): + """Gets the elapsed_seconds of this ProgressInfo. # noqa: E501 + + + :return: The elapsed_seconds of this ProgressInfo. # noqa: E501 + :rtype: int + """ + return self._elapsed_seconds + + @elapsed_seconds.setter + def elapsed_seconds(self, elapsed_seconds): + """Sets the elapsed_seconds of this ProgressInfo. + + + :param elapsed_seconds: The elapsed_seconds of this ProgressInfo. # noqa: E501 + :type: int + """ + + self._elapsed_seconds = elapsed_seconds + + @property + def estimated_total_seconds(self): + """Gets the estimated_total_seconds of this ProgressInfo. # noqa: E501 + + + :return: The estimated_total_seconds of this ProgressInfo. # noqa: E501 + :rtype: int + """ + return self._estimated_total_seconds + + @estimated_total_seconds.setter + def estimated_total_seconds(self, estimated_total_seconds): + """Sets the estimated_total_seconds of this ProgressInfo. + + + :param estimated_total_seconds: The estimated_total_seconds of this ProgressInfo. # noqa: E501 + :type: int + """ + + self._estimated_total_seconds = estimated_total_seconds + + @property + def outdated(self): + """Gets the outdated of this ProgressInfo. # noqa: E501 + + + :return: The outdated of this ProgressInfo. # noqa: E501 + :rtype: bool + """ + return self._outdated + + @outdated.setter + def outdated(self, outdated): + """Sets the outdated of this ProgressInfo. + + + :param outdated: The outdated of this ProgressInfo. # noqa: E501 + :type: bool + """ + + self._outdated = outdated + + @property + def percentage_complete(self): + """Gets the percentage_complete of this ProgressInfo. # noqa: E501 + + + :return: The percentage_complete of this ProgressInfo. # noqa: E501 + :rtype: int + """ + return self._percentage_complete + + @percentage_complete.setter + def percentage_complete(self, percentage_complete): + """Sets the percentage_complete of this ProgressInfo. + + + :param percentage_complete: The percentage_complete of this ProgressInfo. # noqa: E501 + :type: int + """ + + self._percentage_complete = percentage_complete + + @property + def probably_hanging(self): + """Gets the probably_hanging of this ProgressInfo. # noqa: E501 + + + :return: The probably_hanging of this ProgressInfo. # noqa: E501 + :rtype: bool + """ + return self._probably_hanging + + @probably_hanging.setter + def probably_hanging(self, probably_hanging): + """Sets the probably_hanging of this ProgressInfo. + + + :param probably_hanging: The probably_hanging of this ProgressInfo. # noqa: E501 + :type: bool + """ + + self._probably_hanging = probably_hanging + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ProgressInfo, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ProgressInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/project.py b/swagger_client/models/project.py new file mode 100644 index 0000000..1569c8a --- /dev/null +++ b/swagger_client/models/project.py @@ -0,0 +1,644 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.build_types import BuildTypes # noqa: F401,E501 +from swagger_client.models.links import Links # noqa: F401,E501 +from swagger_client.models.project import Project # noqa: F401,E501 +from swagger_client.models.project_features import ProjectFeatures # noqa: F401,E501 +from swagger_client.models.projects import Projects # noqa: F401,E501 +from swagger_client.models.properties import Properties # noqa: F401,E501 +from swagger_client.models.state_field import StateField # noqa: F401,E501 +from swagger_client.models.vcs_roots import VcsRoots # noqa: F401,E501 + + +class Project(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'archived': 'bool', + 'build_types': 'BuildTypes', + 'description': 'str', + 'href': 'str', + 'id': 'str', + 'internal_id': 'str', + 'links': 'Links', + 'locator': 'str', + 'name': 'str', + 'parameters': 'Properties', + 'parent_project': 'Project', + 'parent_project_id': 'str', + 'parent_project_internal_id': 'str', + 'parent_project_name': 'str', + 'project_features': 'ProjectFeatures', + 'projects': 'Projects', + 'read_only_ui': 'StateField', + 'templates': 'BuildTypes', + 'uuid': 'str', + 'vcs_roots': 'VcsRoots', + 'web_url': 'str' + } + + attribute_map = { + 'archived': 'archived', + 'build_types': 'buildTypes', + 'description': 'description', + 'href': 'href', + 'id': 'id', + 'internal_id': 'internalId', + 'links': 'links', + 'locator': 'locator', + 'name': 'name', + 'parameters': 'parameters', + 'parent_project': 'parentProject', + 'parent_project_id': 'parentProjectId', + 'parent_project_internal_id': 'parentProjectInternalId', + 'parent_project_name': 'parentProjectName', + 'project_features': 'projectFeatures', + 'projects': 'projects', + 'read_only_ui': 'readOnlyUI', + 'templates': 'templates', + 'uuid': 'uuid', + 'vcs_roots': 'vcsRoots', + 'web_url': 'webUrl' + } + + def __init__(self, archived=False, build_types=None, description=None, href=None, id=None, internal_id=None, links=None, locator=None, name=None, parameters=None, parent_project=None, parent_project_id=None, parent_project_internal_id=None, parent_project_name=None, project_features=None, projects=None, read_only_ui=None, templates=None, uuid=None, vcs_roots=None, web_url=None): # noqa: E501 + """Project - a model defined in Swagger""" # noqa: E501 + + self._archived = None + self._build_types = None + self._description = None + self._href = None + self._id = None + self._internal_id = None + self._links = None + self._locator = None + self._name = None + self._parameters = None + self._parent_project = None + self._parent_project_id = None + self._parent_project_internal_id = None + self._parent_project_name = None + self._project_features = None + self._projects = None + self._read_only_ui = None + self._templates = None + self._uuid = None + self._vcs_roots = None + self._web_url = None + self.discriminator = None + + if archived is not None: + self.archived = archived + if build_types is not None: + self.build_types = build_types + if description is not None: + self.description = description + if href is not None: + self.href = href + if id is not None: + self.id = id + if internal_id is not None: + self.internal_id = internal_id + if links is not None: + self.links = links + if locator is not None: + self.locator = locator + if name is not None: + self.name = name + if parameters is not None: + self.parameters = parameters + if parent_project is not None: + self.parent_project = parent_project + if parent_project_id is not None: + self.parent_project_id = parent_project_id + if parent_project_internal_id is not None: + self.parent_project_internal_id = parent_project_internal_id + if parent_project_name is not None: + self.parent_project_name = parent_project_name + if project_features is not None: + self.project_features = project_features + if projects is not None: + self.projects = projects + if read_only_ui is not None: + self.read_only_ui = read_only_ui + if templates is not None: + self.templates = templates + if uuid is not None: + self.uuid = uuid + if vcs_roots is not None: + self.vcs_roots = vcs_roots + if web_url is not None: + self.web_url = web_url + + @property + def archived(self): + """Gets the archived of this Project. # noqa: E501 + + + :return: The archived of this Project. # noqa: E501 + :rtype: bool + """ + return self._archived + + @archived.setter + def archived(self, archived): + """Sets the archived of this Project. + + + :param archived: The archived of this Project. # noqa: E501 + :type: bool + """ + + self._archived = archived + + @property + def build_types(self): + """Gets the build_types of this Project. # noqa: E501 + + + :return: The build_types of this Project. # noqa: E501 + :rtype: BuildTypes + """ + return self._build_types + + @build_types.setter + def build_types(self, build_types): + """Sets the build_types of this Project. + + + :param build_types: The build_types of this Project. # noqa: E501 + :type: BuildTypes + """ + + self._build_types = build_types + + @property + def description(self): + """Gets the description of this Project. # noqa: E501 + + + :return: The description of this Project. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this Project. + + + :param description: The description of this Project. # noqa: E501 + :type: str + """ + + self._description = description + + @property + def href(self): + """Gets the href of this Project. # noqa: E501 + + + :return: The href of this Project. # noqa: E501 + :rtype: str + """ + return self._href + + @href.setter + def href(self, href): + """Sets the href of this Project. + + + :param href: The href of this Project. # noqa: E501 + :type: str + """ + + self._href = href + + @property + def id(self): + """Gets the id of this Project. # noqa: E501 + + + :return: The id of this Project. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this Project. + + + :param id: The id of this Project. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def internal_id(self): + """Gets the internal_id of this Project. # noqa: E501 + + + :return: The internal_id of this Project. # noqa: E501 + :rtype: str + """ + return self._internal_id + + @internal_id.setter + def internal_id(self, internal_id): + """Sets the internal_id of this Project. + + + :param internal_id: The internal_id of this Project. # noqa: E501 + :type: str + """ + + self._internal_id = internal_id + + @property + def links(self): + """Gets the links of this Project. # noqa: E501 + + + :return: The links of this Project. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this Project. + + + :param links: The links of this Project. # noqa: E501 + :type: Links + """ + + self._links = links + + @property + def locator(self): + """Gets the locator of this Project. # noqa: E501 + + + :return: The locator of this Project. # noqa: E501 + :rtype: str + """ + return self._locator + + @locator.setter + def locator(self, locator): + """Sets the locator of this Project. + + + :param locator: The locator of this Project. # noqa: E501 + :type: str + """ + + self._locator = locator + + @property + def name(self): + """Gets the name of this Project. # noqa: E501 + + + :return: The name of this Project. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this Project. + + + :param name: The name of this Project. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def parameters(self): + """Gets the parameters of this Project. # noqa: E501 + + + :return: The parameters of this Project. # noqa: E501 + :rtype: Properties + """ + return self._parameters + + @parameters.setter + def parameters(self, parameters): + """Sets the parameters of this Project. + + + :param parameters: The parameters of this Project. # noqa: E501 + :type: Properties + """ + + self._parameters = parameters + + @property + def parent_project(self): + """Gets the parent_project of this Project. # noqa: E501 + + + :return: The parent_project of this Project. # noqa: E501 + :rtype: Project + """ + return self._parent_project + + @parent_project.setter + def parent_project(self, parent_project): + """Sets the parent_project of this Project. + + + :param parent_project: The parent_project of this Project. # noqa: E501 + :type: Project + """ + + self._parent_project = parent_project + + @property + def parent_project_id(self): + """Gets the parent_project_id of this Project. # noqa: E501 + + + :return: The parent_project_id of this Project. # noqa: E501 + :rtype: str + """ + return self._parent_project_id + + @parent_project_id.setter + def parent_project_id(self, parent_project_id): + """Sets the parent_project_id of this Project. + + + :param parent_project_id: The parent_project_id of this Project. # noqa: E501 + :type: str + """ + + self._parent_project_id = parent_project_id + + @property + def parent_project_internal_id(self): + """Gets the parent_project_internal_id of this Project. # noqa: E501 + + + :return: The parent_project_internal_id of this Project. # noqa: E501 + :rtype: str + """ + return self._parent_project_internal_id + + @parent_project_internal_id.setter + def parent_project_internal_id(self, parent_project_internal_id): + """Sets the parent_project_internal_id of this Project. + + + :param parent_project_internal_id: The parent_project_internal_id of this Project. # noqa: E501 + :type: str + """ + + self._parent_project_internal_id = parent_project_internal_id + + @property + def parent_project_name(self): + """Gets the parent_project_name of this Project. # noqa: E501 + + + :return: The parent_project_name of this Project. # noqa: E501 + :rtype: str + """ + return self._parent_project_name + + @parent_project_name.setter + def parent_project_name(self, parent_project_name): + """Sets the parent_project_name of this Project. + + + :param parent_project_name: The parent_project_name of this Project. # noqa: E501 + :type: str + """ + + self._parent_project_name = parent_project_name + + @property + def project_features(self): + """Gets the project_features of this Project. # noqa: E501 + + + :return: The project_features of this Project. # noqa: E501 + :rtype: ProjectFeatures + """ + return self._project_features + + @project_features.setter + def project_features(self, project_features): + """Sets the project_features of this Project. + + + :param project_features: The project_features of this Project. # noqa: E501 + :type: ProjectFeatures + """ + + self._project_features = project_features + + @property + def projects(self): + """Gets the projects of this Project. # noqa: E501 + + + :return: The projects of this Project. # noqa: E501 + :rtype: Projects + """ + return self._projects + + @projects.setter + def projects(self, projects): + """Sets the projects of this Project. + + + :param projects: The projects of this Project. # noqa: E501 + :type: Projects + """ + + self._projects = projects + + @property + def read_only_ui(self): + """Gets the read_only_ui of this Project. # noqa: E501 + + + :return: The read_only_ui of this Project. # noqa: E501 + :rtype: StateField + """ + return self._read_only_ui + + @read_only_ui.setter + def read_only_ui(self, read_only_ui): + """Sets the read_only_ui of this Project. + + + :param read_only_ui: The read_only_ui of this Project. # noqa: E501 + :type: StateField + """ + + self._read_only_ui = read_only_ui + + @property + def templates(self): + """Gets the templates of this Project. # noqa: E501 + + + :return: The templates of this Project. # noqa: E501 + :rtype: BuildTypes + """ + return self._templates + + @templates.setter + def templates(self, templates): + """Sets the templates of this Project. + + + :param templates: The templates of this Project. # noqa: E501 + :type: BuildTypes + """ + + self._templates = templates + + @property + def uuid(self): + """Gets the uuid of this Project. # noqa: E501 + + + :return: The uuid of this Project. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this Project. + + + :param uuid: The uuid of this Project. # noqa: E501 + :type: str + """ + + self._uuid = uuid + + @property + def vcs_roots(self): + """Gets the vcs_roots of this Project. # noqa: E501 + + + :return: The vcs_roots of this Project. # noqa: E501 + :rtype: VcsRoots + """ + return self._vcs_roots + + @vcs_roots.setter + def vcs_roots(self, vcs_roots): + """Sets the vcs_roots of this Project. + + + :param vcs_roots: The vcs_roots of this Project. # noqa: E501 + :type: VcsRoots + """ + + self._vcs_roots = vcs_roots + + @property + def web_url(self): + """Gets the web_url of this Project. # noqa: E501 + + + :return: The web_url of this Project. # noqa: E501 + :rtype: str + """ + return self._web_url + + @web_url.setter + def web_url(self, web_url): + """Sets the web_url of this Project. + + + :param web_url: The web_url of this Project. # noqa: E501 + :type: str + """ + + self._web_url = web_url + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Project, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Project): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/project_feature.py b/swagger_client/models/project_feature.py new file mode 100644 index 0000000..bcedf0b --- /dev/null +++ b/swagger_client/models/project_feature.py @@ -0,0 +1,273 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.properties import Properties # noqa: F401,E501 + + +class ProjectFeature(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'disabled': 'bool', + 'href': 'str', + 'id': 'str', + 'inherited': 'bool', + 'name': 'str', + 'properties': 'Properties', + 'type': 'str' + } + + attribute_map = { + 'disabled': 'disabled', + 'href': 'href', + 'id': 'id', + 'inherited': 'inherited', + 'name': 'name', + 'properties': 'properties', + 'type': 'type' + } + + def __init__(self, disabled=False, href=None, id=None, inherited=False, name=None, properties=None, type=None): # noqa: E501 + """ProjectFeature - a model defined in Swagger""" # noqa: E501 + + self._disabled = None + self._href = None + self._id = None + self._inherited = None + self._name = None + self._properties = None + self._type = None + self.discriminator = None + + if disabled is not None: + self.disabled = disabled + if href is not None: + self.href = href + if id is not None: + self.id = id + if inherited is not None: + self.inherited = inherited + if name is not None: + self.name = name + if properties is not None: + self.properties = properties + if type is not None: + self.type = type + + @property + def disabled(self): + """Gets the disabled of this ProjectFeature. # noqa: E501 + + + :return: The disabled of this ProjectFeature. # noqa: E501 + :rtype: bool + """ + return self._disabled + + @disabled.setter + def disabled(self, disabled): + """Sets the disabled of this ProjectFeature. + + + :param disabled: The disabled of this ProjectFeature. # noqa: E501 + :type: bool + """ + + self._disabled = disabled + + @property + def href(self): + """Gets the href of this ProjectFeature. # noqa: E501 + + + :return: The href of this ProjectFeature. # noqa: E501 + :rtype: str + """ + return self._href + + @href.setter + def href(self, href): + """Sets the href of this ProjectFeature. + + + :param href: The href of this ProjectFeature. # noqa: E501 + :type: str + """ + + self._href = href + + @property + def id(self): + """Gets the id of this ProjectFeature. # noqa: E501 + + + :return: The id of this ProjectFeature. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this ProjectFeature. + + + :param id: The id of this ProjectFeature. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def inherited(self): + """Gets the inherited of this ProjectFeature. # noqa: E501 + + + :return: The inherited of this ProjectFeature. # noqa: E501 + :rtype: bool + """ + return self._inherited + + @inherited.setter + def inherited(self, inherited): + """Sets the inherited of this ProjectFeature. + + + :param inherited: The inherited of this ProjectFeature. # noqa: E501 + :type: bool + """ + + self._inherited = inherited + + @property + def name(self): + """Gets the name of this ProjectFeature. # noqa: E501 + + + :return: The name of this ProjectFeature. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ProjectFeature. + + + :param name: The name of this ProjectFeature. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def properties(self): + """Gets the properties of this ProjectFeature. # noqa: E501 + + + :return: The properties of this ProjectFeature. # noqa: E501 + :rtype: Properties + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this ProjectFeature. + + + :param properties: The properties of this ProjectFeature. # noqa: E501 + :type: Properties + """ + + self._properties = properties + + @property + def type(self): + """Gets the type of this ProjectFeature. # noqa: E501 + + + :return: The type of this ProjectFeature. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this ProjectFeature. + + + :param type: The type of this ProjectFeature. # noqa: E501 + :type: str + """ + + self._type = type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ProjectFeature, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ProjectFeature): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/project_features.py b/swagger_client/models/project_features.py new file mode 100644 index 0000000..18bbd67 --- /dev/null +++ b/swagger_client/models/project_features.py @@ -0,0 +1,169 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.project_feature import ProjectFeature # noqa: F401,E501 + + +class ProjectFeatures(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'href': 'str', + 'project_feature': 'list[ProjectFeature]' + } + + attribute_map = { + 'count': 'count', + 'href': 'href', + 'project_feature': 'projectFeature' + } + + def __init__(self, count=None, href=None, project_feature=None): # noqa: E501 + """ProjectFeatures - a model defined in Swagger""" # noqa: E501 + + self._count = None + self._href = None + self._project_feature = None + self.discriminator = None + + if count is not None: + self.count = count + if href is not None: + self.href = href + if project_feature is not None: + self.project_feature = project_feature + + @property + def count(self): + """Gets the count of this ProjectFeatures. # noqa: E501 + + + :return: The count of this ProjectFeatures. # noqa: E501 + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this ProjectFeatures. + + + :param count: The count of this ProjectFeatures. # noqa: E501 + :type: int + """ + + self._count = count + + @property + def href(self): + """Gets the href of this ProjectFeatures. # noqa: E501 + + + :return: The href of this ProjectFeatures. # noqa: E501 + :rtype: str + """ + return self._href + + @href.setter + def href(self, href): + """Sets the href of this ProjectFeatures. + + + :param href: The href of this ProjectFeatures. # noqa: E501 + :type: str + """ + + self._href = href + + @property + def project_feature(self): + """Gets the project_feature of this ProjectFeatures. # noqa: E501 + + + :return: The project_feature of this ProjectFeatures. # noqa: E501 + :rtype: list[ProjectFeature] + """ + return self._project_feature + + @project_feature.setter + def project_feature(self, project_feature): + """Sets the project_feature of this ProjectFeatures. + + + :param project_feature: The project_feature of this ProjectFeatures. # noqa: E501 + :type: list[ProjectFeature] + """ + + self._project_feature = project_feature + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ProjectFeatures, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ProjectFeatures): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/projects.py b/swagger_client/models/projects.py new file mode 100644 index 0000000..2ddd463 --- /dev/null +++ b/swagger_client/models/projects.py @@ -0,0 +1,221 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.project import Project # noqa: F401,E501 + + +class Projects(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'href': 'str', + 'next_href': 'str', + 'prev_href': 'str', + 'project': 'list[Project]' + } + + attribute_map = { + 'count': 'count', + 'href': 'href', + 'next_href': 'nextHref', + 'prev_href': 'prevHref', + 'project': 'project' + } + + def __init__(self, count=None, href=None, next_href=None, prev_href=None, project=None): # noqa: E501 + """Projects - a model defined in Swagger""" # noqa: E501 + + self._count = None + self._href = None + self._next_href = None + self._prev_href = None + self._project = None + self.discriminator = None + + if count is not None: + self.count = count + if href is not None: + self.href = href + if next_href is not None: + self.next_href = next_href + if prev_href is not None: + self.prev_href = prev_href + if project is not None: + self.project = project + + @property + def count(self): + """Gets the count of this Projects. # noqa: E501 + + + :return: The count of this Projects. # noqa: E501 + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this Projects. + + + :param count: The count of this Projects. # noqa: E501 + :type: int + """ + + self._count = count + + @property + def href(self): + """Gets the href of this Projects. # noqa: E501 + + + :return: The href of this Projects. # noqa: E501 + :rtype: str + """ + return self._href + + @href.setter + def href(self, href): + """Sets the href of this Projects. + + + :param href: The href of this Projects. # noqa: E501 + :type: str + """ + + self._href = href + + @property + def next_href(self): + """Gets the next_href of this Projects. # noqa: E501 + + + :return: The next_href of this Projects. # noqa: E501 + :rtype: str + """ + return self._next_href + + @next_href.setter + def next_href(self, next_href): + """Sets the next_href of this Projects. + + + :param next_href: The next_href of this Projects. # noqa: E501 + :type: str + """ + + self._next_href = next_href + + @property + def prev_href(self): + """Gets the prev_href of this Projects. # noqa: E501 + + + :return: The prev_href of this Projects. # noqa: E501 + :rtype: str + """ + return self._prev_href + + @prev_href.setter + def prev_href(self, prev_href): + """Sets the prev_href of this Projects. + + + :param prev_href: The prev_href of this Projects. # noqa: E501 + :type: str + """ + + self._prev_href = prev_href + + @property + def project(self): + """Gets the project of this Projects. # noqa: E501 + + + :return: The project of this Projects. # noqa: E501 + :rtype: list[Project] + """ + return self._project + + @project.setter + def project(self, project): + """Sets the project of this Projects. + + + :param project: The project of this Projects. # noqa: E501 + :type: list[Project] + """ + + self._project = project + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Projects, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Projects): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/properties.py b/swagger_client/models/properties.py new file mode 100644 index 0000000..e13ddce --- /dev/null +++ b/swagger_client/models/properties.py @@ -0,0 +1,169 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.model_property import ModelProperty # noqa: F401,E501 + + +class Properties(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'href': 'str', + '_property': 'list[ModelProperty]' + } + + attribute_map = { + 'count': 'count', + 'href': 'href', + '_property': 'property' + } + + def __init__(self, count=None, href=None, _property=None): # noqa: E501 + """Properties - a model defined in Swagger""" # noqa: E501 + + self._count = None + self._href = None + self.__property = None + self.discriminator = None + + if count is not None: + self.count = count + if href is not None: + self.href = href + if _property is not None: + self._property = _property + + @property + def count(self): + """Gets the count of this Properties. # noqa: E501 + + + :return: The count of this Properties. # noqa: E501 + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this Properties. + + + :param count: The count of this Properties. # noqa: E501 + :type: int + """ + + self._count = count + + @property + def href(self): + """Gets the href of this Properties. # noqa: E501 + + + :return: The href of this Properties. # noqa: E501 + :rtype: str + """ + return self._href + + @href.setter + def href(self, href): + """Sets the href of this Properties. + + + :param href: The href of this Properties. # noqa: E501 + :type: str + """ + + self._href = href + + @property + def _property(self): + """Gets the _property of this Properties. # noqa: E501 + + + :return: The _property of this Properties. # noqa: E501 + :rtype: list[ModelProperty] + """ + return self.__property + + @_property.setter + def _property(self, _property): + """Sets the _property of this Properties. + + + :param _property: The _property of this Properties. # noqa: E501 + :type: list[ModelProperty] + """ + + self.__property = _property + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Properties, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Properties): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/repository_state.py b/swagger_client/models/repository_state.py new file mode 100644 index 0000000..cfdb0ed --- /dev/null +++ b/swagger_client/models/repository_state.py @@ -0,0 +1,169 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.branch_version import BranchVersion # noqa: F401,E501 + + +class RepositoryState(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'branch': 'list[BranchVersion]', + 'count': 'int', + 'timestamp': 'str' + } + + attribute_map = { + 'branch': 'branch', + 'count': 'count', + 'timestamp': 'timestamp' + } + + def __init__(self, branch=None, count=None, timestamp=None): # noqa: E501 + """RepositoryState - a model defined in Swagger""" # noqa: E501 + + self._branch = None + self._count = None + self._timestamp = None + self.discriminator = None + + if branch is not None: + self.branch = branch + if count is not None: + self.count = count + if timestamp is not None: + self.timestamp = timestamp + + @property + def branch(self): + """Gets the branch of this RepositoryState. # noqa: E501 + + + :return: The branch of this RepositoryState. # noqa: E501 + :rtype: list[BranchVersion] + """ + return self._branch + + @branch.setter + def branch(self, branch): + """Sets the branch of this RepositoryState. + + + :param branch: The branch of this RepositoryState. # noqa: E501 + :type: list[BranchVersion] + """ + + self._branch = branch + + @property + def count(self): + """Gets the count of this RepositoryState. # noqa: E501 + + + :return: The count of this RepositoryState. # noqa: E501 + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this RepositoryState. + + + :param count: The count of this RepositoryState. # noqa: E501 + :type: int + """ + + self._count = count + + @property + def timestamp(self): + """Gets the timestamp of this RepositoryState. # noqa: E501 + + + :return: The timestamp of this RepositoryState. # noqa: E501 + :rtype: str + """ + return self._timestamp + + @timestamp.setter + def timestamp(self, timestamp): + """Sets the timestamp of this RepositoryState. + + + :param timestamp: The timestamp of this RepositoryState. # noqa: E501 + :type: str + """ + + self._timestamp = timestamp + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(RepositoryState, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, RepositoryState): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/requirements.py b/swagger_client/models/requirements.py new file mode 100644 index 0000000..0ac75ae --- /dev/null +++ b/swagger_client/models/requirements.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class Requirements(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'description': 'str' + } + + attribute_map = { + 'description': 'description' + } + + def __init__(self, description=None): # noqa: E501 + """Requirements - a model defined in Swagger""" # noqa: E501 + + self._description = None + self.discriminator = None + + if description is not None: + self.description = description + + @property + def description(self): + """Gets the description of this Requirements. # noqa: E501 + + + :return: The description of this Requirements. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this Requirements. + + + :param description: The description of this Requirements. # noqa: E501 + :type: str + """ + + self._description = description + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Requirements, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Requirements): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/resolution.py b/swagger_client/models/resolution.py new file mode 100644 index 0000000..711f160 --- /dev/null +++ b/swagger_client/models/resolution.py @@ -0,0 +1,141 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class Resolution(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'time': 'str', + 'type': 'str' + } + + attribute_map = { + 'time': 'time', + 'type': 'type' + } + + def __init__(self, time=None, type=None): # noqa: E501 + """Resolution - a model defined in Swagger""" # noqa: E501 + + self._time = None + self._type = None + self.discriminator = None + + if time is not None: + self.time = time + if type is not None: + self.type = type + + @property + def time(self): + """Gets the time of this Resolution. # noqa: E501 + + + :return: The time of this Resolution. # noqa: E501 + :rtype: str + """ + return self._time + + @time.setter + def time(self, time): + """Sets the time of this Resolution. + + + :param time: The time of this Resolution. # noqa: E501 + :type: str + """ + + self._time = time + + @property + def type(self): + """Gets the type of this Resolution. # noqa: E501 + + + :return: The type of this Resolution. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this Resolution. + + + :param type: The type of this Resolution. # noqa: E501 + :type: str + """ + + self._type = type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Resolution, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Resolution): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/revision.py b/swagger_client/models/revision.py new file mode 100644 index 0000000..8b73723 --- /dev/null +++ b/swagger_client/models/revision.py @@ -0,0 +1,221 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.vcs_root_instance import VcsRootInstance # noqa: F401,E501 + + +class Revision(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'checkout_rules': 'str', + 'internal_version': 'str', + 'vcs_root_instance': 'VcsRootInstance', + 'vcs_branch_name': 'str', + 'version': 'str' + } + + attribute_map = { + 'checkout_rules': 'checkout-rules', + 'internal_version': 'internalVersion', + 'vcs_root_instance': 'vcs-root-instance', + 'vcs_branch_name': 'vcsBranchName', + 'version': 'version' + } + + def __init__(self, checkout_rules=None, internal_version=None, vcs_root_instance=None, vcs_branch_name=None, version=None): # noqa: E501 + """Revision - a model defined in Swagger""" # noqa: E501 + + self._checkout_rules = None + self._internal_version = None + self._vcs_root_instance = None + self._vcs_branch_name = None + self._version = None + self.discriminator = None + + if checkout_rules is not None: + self.checkout_rules = checkout_rules + if internal_version is not None: + self.internal_version = internal_version + if vcs_root_instance is not None: + self.vcs_root_instance = vcs_root_instance + if vcs_branch_name is not None: + self.vcs_branch_name = vcs_branch_name + if version is not None: + self.version = version + + @property + def checkout_rules(self): + """Gets the checkout_rules of this Revision. # noqa: E501 + + + :return: The checkout_rules of this Revision. # noqa: E501 + :rtype: str + """ + return self._checkout_rules + + @checkout_rules.setter + def checkout_rules(self, checkout_rules): + """Sets the checkout_rules of this Revision. + + + :param checkout_rules: The checkout_rules of this Revision. # noqa: E501 + :type: str + """ + + self._checkout_rules = checkout_rules + + @property + def internal_version(self): + """Gets the internal_version of this Revision. # noqa: E501 + + + :return: The internal_version of this Revision. # noqa: E501 + :rtype: str + """ + return self._internal_version + + @internal_version.setter + def internal_version(self, internal_version): + """Sets the internal_version of this Revision. + + + :param internal_version: The internal_version of this Revision. # noqa: E501 + :type: str + """ + + self._internal_version = internal_version + + @property + def vcs_root_instance(self): + """Gets the vcs_root_instance of this Revision. # noqa: E501 + + + :return: The vcs_root_instance of this Revision. # noqa: E501 + :rtype: VcsRootInstance + """ + return self._vcs_root_instance + + @vcs_root_instance.setter + def vcs_root_instance(self, vcs_root_instance): + """Sets the vcs_root_instance of this Revision. + + + :param vcs_root_instance: The vcs_root_instance of this Revision. # noqa: E501 + :type: VcsRootInstance + """ + + self._vcs_root_instance = vcs_root_instance + + @property + def vcs_branch_name(self): + """Gets the vcs_branch_name of this Revision. # noqa: E501 + + + :return: The vcs_branch_name of this Revision. # noqa: E501 + :rtype: str + """ + return self._vcs_branch_name + + @vcs_branch_name.setter + def vcs_branch_name(self, vcs_branch_name): + """Sets the vcs_branch_name of this Revision. + + + :param vcs_branch_name: The vcs_branch_name of this Revision. # noqa: E501 + :type: str + """ + + self._vcs_branch_name = vcs_branch_name + + @property + def version(self): + """Gets the version of this Revision. # noqa: E501 + + + :return: The version of this Revision. # noqa: E501 + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this Revision. + + + :param version: The version of this Revision. # noqa: E501 + :type: str + """ + + self._version = version + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Revision, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Revision): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/revisions.py b/swagger_client/models/revisions.py new file mode 100644 index 0000000..fd4bdec --- /dev/null +++ b/swagger_client/models/revisions.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.revision import Revision # noqa: F401,E501 + + +class Revisions(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'revision': 'list[Revision]' + } + + attribute_map = { + 'count': 'count', + 'revision': 'revision' + } + + def __init__(self, count=None, revision=None): # noqa: E501 + """Revisions - a model defined in Swagger""" # noqa: E501 + + self._count = None + self._revision = None + self.discriminator = None + + if count is not None: + self.count = count + if revision is not None: + self.revision = revision + + @property + def count(self): + """Gets the count of this Revisions. # noqa: E501 + + + :return: The count of this Revisions. # noqa: E501 + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this Revisions. + + + :param count: The count of this Revisions. # noqa: E501 + :type: int + """ + + self._count = count + + @property + def revision(self): + """Gets the revision of this Revisions. # noqa: E501 + + + :return: The revision of this Revisions. # noqa: E501 + :rtype: list[Revision] + """ + return self._revision + + @revision.setter + def revision(self, revision): + """Sets the revision of this Revisions. + + + :param revision: The revision of this Revisions. # noqa: E501 + :type: list[Revision] + """ + + self._revision = revision + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Revisions, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Revisions): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/role.py b/swagger_client/models/role.py new file mode 100644 index 0000000..a4d0554 --- /dev/null +++ b/swagger_client/models/role.py @@ -0,0 +1,167 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class Role(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'href': 'str', + 'role_id': 'str', + 'scope': 'str' + } + + attribute_map = { + 'href': 'href', + 'role_id': 'roleId', + 'scope': 'scope' + } + + def __init__(self, href=None, role_id=None, scope=None): # noqa: E501 + """Role - a model defined in Swagger""" # noqa: E501 + + self._href = None + self._role_id = None + self._scope = None + self.discriminator = None + + if href is not None: + self.href = href + if role_id is not None: + self.role_id = role_id + if scope is not None: + self.scope = scope + + @property + def href(self): + """Gets the href of this Role. # noqa: E501 + + + :return: The href of this Role. # noqa: E501 + :rtype: str + """ + return self._href + + @href.setter + def href(self, href): + """Sets the href of this Role. + + + :param href: The href of this Role. # noqa: E501 + :type: str + """ + + self._href = href + + @property + def role_id(self): + """Gets the role_id of this Role. # noqa: E501 + + + :return: The role_id of this Role. # noqa: E501 + :rtype: str + """ + return self._role_id + + @role_id.setter + def role_id(self, role_id): + """Sets the role_id of this Role. + + + :param role_id: The role_id of this Role. # noqa: E501 + :type: str + """ + + self._role_id = role_id + + @property + def scope(self): + """Gets the scope of this Role. # noqa: E501 + + + :return: The scope of this Role. # noqa: E501 + :rtype: str + """ + return self._scope + + @scope.setter + def scope(self, scope): + """Sets the scope of this Role. + + + :param scope: The scope of this Role. # noqa: E501 + :type: str + """ + + self._scope = scope + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Role, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Role): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/roles.py b/swagger_client/models/roles.py new file mode 100644 index 0000000..847b749 --- /dev/null +++ b/swagger_client/models/roles.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.role import Role # noqa: F401,E501 + + +class Roles(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'role': 'list[Role]' + } + + attribute_map = { + 'role': 'role' + } + + def __init__(self, role=None): # noqa: E501 + """Roles - a model defined in Swagger""" # noqa: E501 + + self._role = None + self.discriminator = None + + if role is not None: + self.role = role + + @property + def role(self): + """Gets the role of this Roles. # noqa: E501 + + + :return: The role of this Roles. # noqa: E501 + :rtype: list[Role] + """ + return self._role + + @role.setter + def role(self, role): + """Sets the role of this Roles. + + + :param role: The role of this Roles. # noqa: E501 + :type: list[Role] + """ + + self._role = role + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Roles, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Roles): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/server.py b/swagger_client/models/server.py new file mode 100644 index 0000000..2fd5eba --- /dev/null +++ b/swagger_client/models/server.py @@ -0,0 +1,559 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.href import Href # noqa: F401,E501 + + +class Server(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'agent_pools': 'Href', + 'agents': 'Href', + 'build_date': 'str', + 'build_number': 'str', + 'build_queue': 'Href', + 'builds': 'Href', + 'current_time': 'str', + 'internal_id': 'str', + 'projects': 'Href', + 'role': 'str', + 'start_time': 'str', + 'user_groups': 'Href', + 'users': 'Href', + 'vcs_roots': 'Href', + 'version': 'str', + 'version_major': 'int', + 'version_minor': 'int', + 'web_url': 'str' + } + + attribute_map = { + 'agent_pools': 'agentPools', + 'agents': 'agents', + 'build_date': 'buildDate', + 'build_number': 'buildNumber', + 'build_queue': 'buildQueue', + 'builds': 'builds', + 'current_time': 'currentTime', + 'internal_id': 'internalId', + 'projects': 'projects', + 'role': 'role', + 'start_time': 'startTime', + 'user_groups': 'userGroups', + 'users': 'users', + 'vcs_roots': 'vcsRoots', + 'version': 'version', + 'version_major': 'versionMajor', + 'version_minor': 'versionMinor', + 'web_url': 'webUrl' + } + + def __init__(self, agent_pools=None, agents=None, build_date=None, build_number=None, build_queue=None, builds=None, current_time=None, internal_id=None, projects=None, role=None, start_time=None, user_groups=None, users=None, vcs_roots=None, version=None, version_major=None, version_minor=None, web_url=None): # noqa: E501 + """Server - a model defined in Swagger""" # noqa: E501 + + self._agent_pools = None + self._agents = None + self._build_date = None + self._build_number = None + self._build_queue = None + self._builds = None + self._current_time = None + self._internal_id = None + self._projects = None + self._role = None + self._start_time = None + self._user_groups = None + self._users = None + self._vcs_roots = None + self._version = None + self._version_major = None + self._version_minor = None + self._web_url = None + self.discriminator = None + + if agent_pools is not None: + self.agent_pools = agent_pools + if agents is not None: + self.agents = agents + if build_date is not None: + self.build_date = build_date + if build_number is not None: + self.build_number = build_number + if build_queue is not None: + self.build_queue = build_queue + if builds is not None: + self.builds = builds + if current_time is not None: + self.current_time = current_time + if internal_id is not None: + self.internal_id = internal_id + if projects is not None: + self.projects = projects + if role is not None: + self.role = role + if start_time is not None: + self.start_time = start_time + if user_groups is not None: + self.user_groups = user_groups + if users is not None: + self.users = users + if vcs_roots is not None: + self.vcs_roots = vcs_roots + if version is not None: + self.version = version + if version_major is not None: + self.version_major = version_major + if version_minor is not None: + self.version_minor = version_minor + if web_url is not None: + self.web_url = web_url + + @property + def agent_pools(self): + """Gets the agent_pools of this Server. # noqa: E501 + + + :return: The agent_pools of this Server. # noqa: E501 + :rtype: Href + """ + return self._agent_pools + + @agent_pools.setter + def agent_pools(self, agent_pools): + """Sets the agent_pools of this Server. + + + :param agent_pools: The agent_pools of this Server. # noqa: E501 + :type: Href + """ + + self._agent_pools = agent_pools + + @property + def agents(self): + """Gets the agents of this Server. # noqa: E501 + + + :return: The agents of this Server. # noqa: E501 + :rtype: Href + """ + return self._agents + + @agents.setter + def agents(self, agents): + """Sets the agents of this Server. + + + :param agents: The agents of this Server. # noqa: E501 + :type: Href + """ + + self._agents = agents + + @property + def build_date(self): + """Gets the build_date of this Server. # noqa: E501 + + + :return: The build_date of this Server. # noqa: E501 + :rtype: str + """ + return self._build_date + + @build_date.setter + def build_date(self, build_date): + """Sets the build_date of this Server. + + + :param build_date: The build_date of this Server. # noqa: E501 + :type: str + """ + + self._build_date = build_date + + @property + def build_number(self): + """Gets the build_number of this Server. # noqa: E501 + + + :return: The build_number of this Server. # noqa: E501 + :rtype: str + """ + return self._build_number + + @build_number.setter + def build_number(self, build_number): + """Sets the build_number of this Server. + + + :param build_number: The build_number of this Server. # noqa: E501 + :type: str + """ + + self._build_number = build_number + + @property + def build_queue(self): + """Gets the build_queue of this Server. # noqa: E501 + + + :return: The build_queue of this Server. # noqa: E501 + :rtype: Href + """ + return self._build_queue + + @build_queue.setter + def build_queue(self, build_queue): + """Sets the build_queue of this Server. + + + :param build_queue: The build_queue of this Server. # noqa: E501 + :type: Href + """ + + self._build_queue = build_queue + + @property + def builds(self): + """Gets the builds of this Server. # noqa: E501 + + + :return: The builds of this Server. # noqa: E501 + :rtype: Href + """ + return self._builds + + @builds.setter + def builds(self, builds): + """Sets the builds of this Server. + + + :param builds: The builds of this Server. # noqa: E501 + :type: Href + """ + + self._builds = builds + + @property + def current_time(self): + """Gets the current_time of this Server. # noqa: E501 + + + :return: The current_time of this Server. # noqa: E501 + :rtype: str + """ + return self._current_time + + @current_time.setter + def current_time(self, current_time): + """Sets the current_time of this Server. + + + :param current_time: The current_time of this Server. # noqa: E501 + :type: str + """ + + self._current_time = current_time + + @property + def internal_id(self): + """Gets the internal_id of this Server. # noqa: E501 + + + :return: The internal_id of this Server. # noqa: E501 + :rtype: str + """ + return self._internal_id + + @internal_id.setter + def internal_id(self, internal_id): + """Sets the internal_id of this Server. + + + :param internal_id: The internal_id of this Server. # noqa: E501 + :type: str + """ + + self._internal_id = internal_id + + @property + def projects(self): + """Gets the projects of this Server. # noqa: E501 + + + :return: The projects of this Server. # noqa: E501 + :rtype: Href + """ + return self._projects + + @projects.setter + def projects(self, projects): + """Sets the projects of this Server. + + + :param projects: The projects of this Server. # noqa: E501 + :type: Href + """ + + self._projects = projects + + @property + def role(self): + """Gets the role of this Server. # noqa: E501 + + + :return: The role of this Server. # noqa: E501 + :rtype: str + """ + return self._role + + @role.setter + def role(self, role): + """Sets the role of this Server. + + + :param role: The role of this Server. # noqa: E501 + :type: str + """ + + self._role = role + + @property + def start_time(self): + """Gets the start_time of this Server. # noqa: E501 + + + :return: The start_time of this Server. # noqa: E501 + :rtype: str + """ + return self._start_time + + @start_time.setter + def start_time(self, start_time): + """Sets the start_time of this Server. + + + :param start_time: The start_time of this Server. # noqa: E501 + :type: str + """ + + self._start_time = start_time + + @property + def user_groups(self): + """Gets the user_groups of this Server. # noqa: E501 + + + :return: The user_groups of this Server. # noqa: E501 + :rtype: Href + """ + return self._user_groups + + @user_groups.setter + def user_groups(self, user_groups): + """Sets the user_groups of this Server. + + + :param user_groups: The user_groups of this Server. # noqa: E501 + :type: Href + """ + + self._user_groups = user_groups + + @property + def users(self): + """Gets the users of this Server. # noqa: E501 + + + :return: The users of this Server. # noqa: E501 + :rtype: Href + """ + return self._users + + @users.setter + def users(self, users): + """Sets the users of this Server. + + + :param users: The users of this Server. # noqa: E501 + :type: Href + """ + + self._users = users + + @property + def vcs_roots(self): + """Gets the vcs_roots of this Server. # noqa: E501 + + + :return: The vcs_roots of this Server. # noqa: E501 + :rtype: Href + """ + return self._vcs_roots + + @vcs_roots.setter + def vcs_roots(self, vcs_roots): + """Sets the vcs_roots of this Server. + + + :param vcs_roots: The vcs_roots of this Server. # noqa: E501 + :type: Href + """ + + self._vcs_roots = vcs_roots + + @property + def version(self): + """Gets the version of this Server. # noqa: E501 + + + :return: The version of this Server. # noqa: E501 + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this Server. + + + :param version: The version of this Server. # noqa: E501 + :type: str + """ + + self._version = version + + @property + def version_major(self): + """Gets the version_major of this Server. # noqa: E501 + + + :return: The version_major of this Server. # noqa: E501 + :rtype: int + """ + return self._version_major + + @version_major.setter + def version_major(self, version_major): + """Sets the version_major of this Server. + + + :param version_major: The version_major of this Server. # noqa: E501 + :type: int + """ + + self._version_major = version_major + + @property + def version_minor(self): + """Gets the version_minor of this Server. # noqa: E501 + + + :return: The version_minor of this Server. # noqa: E501 + :rtype: int + """ + return self._version_minor + + @version_minor.setter + def version_minor(self, version_minor): + """Sets the version_minor of this Server. + + + :param version_minor: The version_minor of this Server. # noqa: E501 + :type: int + """ + + self._version_minor = version_minor + + @property + def web_url(self): + """Gets the web_url of this Server. # noqa: E501 + + + :return: The web_url of this Server. # noqa: E501 + :rtype: str + """ + return self._web_url + + @web_url.setter + def web_url(self, web_url): + """Sets the web_url of this Server. + + + :param web_url: The web_url of this Server. # noqa: E501 + :type: str + """ + + self._web_url = web_url + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Server, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Server): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/servers.py b/swagger_client/models/servers.py new file mode 100644 index 0000000..40b55d5 --- /dev/null +++ b/swagger_client/models/servers.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.federation_server import FederationServer # noqa: F401,E501 + + +class Servers(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'server': 'list[FederationServer]' + } + + attribute_map = { + 'count': 'count', + 'server': 'server' + } + + def __init__(self, count=None, server=None): # noqa: E501 + """Servers - a model defined in Swagger""" # noqa: E501 + + self._count = None + self._server = None + self.discriminator = None + + if count is not None: + self.count = count + if server is not None: + self.server = server + + @property + def count(self): + """Gets the count of this Servers. # noqa: E501 + + + :return: The count of this Servers. # noqa: E501 + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this Servers. + + + :param count: The count of this Servers. # noqa: E501 + :type: int + """ + + self._count = count + + @property + def server(self): + """Gets the server of this Servers. # noqa: E501 + + + :return: The server of this Servers. # noqa: E501 + :rtype: list[FederationServer] + """ + return self._server + + @server.setter + def server(self, server): + """Sets the server of this Servers. + + + :param server: The server of this Servers. # noqa: E501 + :type: list[FederationServer] + """ + + self._server = server + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Servers, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Servers): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/session.py b/swagger_client/models/session.py new file mode 100644 index 0000000..4551108 --- /dev/null +++ b/swagger_client/models/session.py @@ -0,0 +1,195 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.user import User # noqa: F401,E501 + + +class Session(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'creation_date': 'str', + 'id': 'str', + 'last_accessed_date': 'str', + 'user': 'User' + } + + attribute_map = { + 'creation_date': 'creationDate', + 'id': 'id', + 'last_accessed_date': 'lastAccessedDate', + 'user': 'user' + } + + def __init__(self, creation_date=None, id=None, last_accessed_date=None, user=None): # noqa: E501 + """Session - a model defined in Swagger""" # noqa: E501 + + self._creation_date = None + self._id = None + self._last_accessed_date = None + self._user = None + self.discriminator = None + + if creation_date is not None: + self.creation_date = creation_date + if id is not None: + self.id = id + if last_accessed_date is not None: + self.last_accessed_date = last_accessed_date + if user is not None: + self.user = user + + @property + def creation_date(self): + """Gets the creation_date of this Session. # noqa: E501 + + + :return: The creation_date of this Session. # noqa: E501 + :rtype: str + """ + return self._creation_date + + @creation_date.setter + def creation_date(self, creation_date): + """Sets the creation_date of this Session. + + + :param creation_date: The creation_date of this Session. # noqa: E501 + :type: str + """ + + self._creation_date = creation_date + + @property + def id(self): + """Gets the id of this Session. # noqa: E501 + + + :return: The id of this Session. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this Session. + + + :param id: The id of this Session. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def last_accessed_date(self): + """Gets the last_accessed_date of this Session. # noqa: E501 + + + :return: The last_accessed_date of this Session. # noqa: E501 + :rtype: str + """ + return self._last_accessed_date + + @last_accessed_date.setter + def last_accessed_date(self, last_accessed_date): + """Sets the last_accessed_date of this Session. + + + :param last_accessed_date: The last_accessed_date of this Session. # noqa: E501 + :type: str + """ + + self._last_accessed_date = last_accessed_date + + @property + def user(self): + """Gets the user of this Session. # noqa: E501 + + + :return: The user of this Session. # noqa: E501 + :rtype: User + """ + return self._user + + @user.setter + def user(self, user): + """Sets the user of this Session. + + + :param user: The user of this Session. # noqa: E501 + :type: User + """ + + self._user = user + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Session, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Session): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/sessions.py b/swagger_client/models/sessions.py new file mode 100644 index 0000000..ca7ff66 --- /dev/null +++ b/swagger_client/models/sessions.py @@ -0,0 +1,273 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.session import Session # noqa: F401,E501 + + +class Sessions(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'max_active': 'int', + 'session': 'list[Session]', + 'session_counter': 'int', + 'session_create_rate': 'int', + 'session_expire_rate': 'int', + 'session_max_alive_time': 'int' + } + + attribute_map = { + 'count': 'count', + 'max_active': 'maxActive', + 'session': 'session', + 'session_counter': 'sessionCounter', + 'session_create_rate': 'sessionCreateRate', + 'session_expire_rate': 'sessionExpireRate', + 'session_max_alive_time': 'sessionMaxAliveTime' + } + + def __init__(self, count=None, max_active=None, session=None, session_counter=None, session_create_rate=None, session_expire_rate=None, session_max_alive_time=None): # noqa: E501 + """Sessions - a model defined in Swagger""" # noqa: E501 + + self._count = None + self._max_active = None + self._session = None + self._session_counter = None + self._session_create_rate = None + self._session_expire_rate = None + self._session_max_alive_time = None + self.discriminator = None + + if count is not None: + self.count = count + if max_active is not None: + self.max_active = max_active + if session is not None: + self.session = session + if session_counter is not None: + self.session_counter = session_counter + if session_create_rate is not None: + self.session_create_rate = session_create_rate + if session_expire_rate is not None: + self.session_expire_rate = session_expire_rate + if session_max_alive_time is not None: + self.session_max_alive_time = session_max_alive_time + + @property + def count(self): + """Gets the count of this Sessions. # noqa: E501 + + + :return: The count of this Sessions. # noqa: E501 + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this Sessions. + + + :param count: The count of this Sessions. # noqa: E501 + :type: int + """ + + self._count = count + + @property + def max_active(self): + """Gets the max_active of this Sessions. # noqa: E501 + + + :return: The max_active of this Sessions. # noqa: E501 + :rtype: int + """ + return self._max_active + + @max_active.setter + def max_active(self, max_active): + """Sets the max_active of this Sessions. + + + :param max_active: The max_active of this Sessions. # noqa: E501 + :type: int + """ + + self._max_active = max_active + + @property + def session(self): + """Gets the session of this Sessions. # noqa: E501 + + + :return: The session of this Sessions. # noqa: E501 + :rtype: list[Session] + """ + return self._session + + @session.setter + def session(self, session): + """Sets the session of this Sessions. + + + :param session: The session of this Sessions. # noqa: E501 + :type: list[Session] + """ + + self._session = session + + @property + def session_counter(self): + """Gets the session_counter of this Sessions. # noqa: E501 + + + :return: The session_counter of this Sessions. # noqa: E501 + :rtype: int + """ + return self._session_counter + + @session_counter.setter + def session_counter(self, session_counter): + """Sets the session_counter of this Sessions. + + + :param session_counter: The session_counter of this Sessions. # noqa: E501 + :type: int + """ + + self._session_counter = session_counter + + @property + def session_create_rate(self): + """Gets the session_create_rate of this Sessions. # noqa: E501 + + + :return: The session_create_rate of this Sessions. # noqa: E501 + :rtype: int + """ + return self._session_create_rate + + @session_create_rate.setter + def session_create_rate(self, session_create_rate): + """Sets the session_create_rate of this Sessions. + + + :param session_create_rate: The session_create_rate of this Sessions. # noqa: E501 + :type: int + """ + + self._session_create_rate = session_create_rate + + @property + def session_expire_rate(self): + """Gets the session_expire_rate of this Sessions. # noqa: E501 + + + :return: The session_expire_rate of this Sessions. # noqa: E501 + :rtype: int + """ + return self._session_expire_rate + + @session_expire_rate.setter + def session_expire_rate(self, session_expire_rate): + """Sets the session_expire_rate of this Sessions. + + + :param session_expire_rate: The session_expire_rate of this Sessions. # noqa: E501 + :type: int + """ + + self._session_expire_rate = session_expire_rate + + @property + def session_max_alive_time(self): + """Gets the session_max_alive_time of this Sessions. # noqa: E501 + + + :return: The session_max_alive_time of this Sessions. # noqa: E501 + :rtype: int + """ + return self._session_max_alive_time + + @session_max_alive_time.setter + def session_max_alive_time(self, session_max_alive_time): + """Sets the session_max_alive_time of this Sessions. + + + :param session_max_alive_time: The session_max_alive_time of this Sessions. # noqa: E501 + :type: int + """ + + self._session_max_alive_time = session_max_alive_time + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Sessions, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Sessions): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/snapshot_dependencies.py b/swagger_client/models/snapshot_dependencies.py new file mode 100644 index 0000000..bce8a60 --- /dev/null +++ b/swagger_client/models/snapshot_dependencies.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.snapshot_dependency import SnapshotDependency # noqa: F401,E501 + + +class SnapshotDependencies(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'snapshot_dependency': 'list[SnapshotDependency]' + } + + attribute_map = { + 'count': 'count', + 'snapshot_dependency': 'snapshot-dependency' + } + + def __init__(self, count=None, snapshot_dependency=None): # noqa: E501 + """SnapshotDependencies - a model defined in Swagger""" # noqa: E501 + + self._count = None + self._snapshot_dependency = None + self.discriminator = None + + if count is not None: + self.count = count + if snapshot_dependency is not None: + self.snapshot_dependency = snapshot_dependency + + @property + def count(self): + """Gets the count of this SnapshotDependencies. # noqa: E501 + + + :return: The count of this SnapshotDependencies. # noqa: E501 + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this SnapshotDependencies. + + + :param count: The count of this SnapshotDependencies. # noqa: E501 + :type: int + """ + + self._count = count + + @property + def snapshot_dependency(self): + """Gets the snapshot_dependency of this SnapshotDependencies. # noqa: E501 + + + :return: The snapshot_dependency of this SnapshotDependencies. # noqa: E501 + :rtype: list[SnapshotDependency] + """ + return self._snapshot_dependency + + @snapshot_dependency.setter + def snapshot_dependency(self, snapshot_dependency): + """Sets the snapshot_dependency of this SnapshotDependencies. + + + :param snapshot_dependency: The snapshot_dependency of this SnapshotDependencies. # noqa: E501 + :type: list[SnapshotDependency] + """ + + self._snapshot_dependency = snapshot_dependency + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(SnapshotDependencies, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SnapshotDependencies): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/snapshot_dependency.py b/swagger_client/models/snapshot_dependency.py new file mode 100644 index 0000000..559f652 --- /dev/null +++ b/swagger_client/models/snapshot_dependency.py @@ -0,0 +1,300 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.build_type import BuildType # noqa: F401,E501 +from swagger_client.models.properties import Properties # noqa: F401,E501 + + +class SnapshotDependency(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'disabled': 'bool', + 'href': 'str', + 'id': 'str', + 'inherited': 'bool', + 'name': 'str', + 'properties': 'Properties', + 'source_build_type': 'BuildType', + 'type': 'str' + } + + attribute_map = { + 'disabled': 'disabled', + 'href': 'href', + 'id': 'id', + 'inherited': 'inherited', + 'name': 'name', + 'properties': 'properties', + 'source_build_type': 'source-buildType', + 'type': 'type' + } + + def __init__(self, disabled=False, href=None, id=None, inherited=False, name=None, properties=None, source_build_type=None, type=None): # noqa: E501 + """SnapshotDependency - a model defined in Swagger""" # noqa: E501 + + self._disabled = None + self._href = None + self._id = None + self._inherited = None + self._name = None + self._properties = None + self._source_build_type = None + self._type = None + self.discriminator = None + + if disabled is not None: + self.disabled = disabled + if href is not None: + self.href = href + if id is not None: + self.id = id + if inherited is not None: + self.inherited = inherited + if name is not None: + self.name = name + if properties is not None: + self.properties = properties + if source_build_type is not None: + self.source_build_type = source_build_type + if type is not None: + self.type = type + + @property + def disabled(self): + """Gets the disabled of this SnapshotDependency. # noqa: E501 + + + :return: The disabled of this SnapshotDependency. # noqa: E501 + :rtype: bool + """ + return self._disabled + + @disabled.setter + def disabled(self, disabled): + """Sets the disabled of this SnapshotDependency. + + + :param disabled: The disabled of this SnapshotDependency. # noqa: E501 + :type: bool + """ + + self._disabled = disabled + + @property + def href(self): + """Gets the href of this SnapshotDependency. # noqa: E501 + + + :return: The href of this SnapshotDependency. # noqa: E501 + :rtype: str + """ + return self._href + + @href.setter + def href(self, href): + """Sets the href of this SnapshotDependency. + + + :param href: The href of this SnapshotDependency. # noqa: E501 + :type: str + """ + + self._href = href + + @property + def id(self): + """Gets the id of this SnapshotDependency. # noqa: E501 + + + :return: The id of this SnapshotDependency. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this SnapshotDependency. + + + :param id: The id of this SnapshotDependency. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def inherited(self): + """Gets the inherited of this SnapshotDependency. # noqa: E501 + + + :return: The inherited of this SnapshotDependency. # noqa: E501 + :rtype: bool + """ + return self._inherited + + @inherited.setter + def inherited(self, inherited): + """Sets the inherited of this SnapshotDependency. + + + :param inherited: The inherited of this SnapshotDependency. # noqa: E501 + :type: bool + """ + + self._inherited = inherited + + @property + def name(self): + """Gets the name of this SnapshotDependency. # noqa: E501 + + + :return: The name of this SnapshotDependency. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this SnapshotDependency. + + + :param name: The name of this SnapshotDependency. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def properties(self): + """Gets the properties of this SnapshotDependency. # noqa: E501 + + + :return: The properties of this SnapshotDependency. # noqa: E501 + :rtype: Properties + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SnapshotDependency. + + + :param properties: The properties of this SnapshotDependency. # noqa: E501 + :type: Properties + """ + + self._properties = properties + + @property + def source_build_type(self): + """Gets the source_build_type of this SnapshotDependency. # noqa: E501 + + + :return: The source_build_type of this SnapshotDependency. # noqa: E501 + :rtype: BuildType + """ + return self._source_build_type + + @source_build_type.setter + def source_build_type(self, source_build_type): + """Sets the source_build_type of this SnapshotDependency. + + + :param source_build_type: The source_build_type of this SnapshotDependency. # noqa: E501 + :type: BuildType + """ + + self._source_build_type = source_build_type + + @property + def type(self): + """Gets the type of this SnapshotDependency. # noqa: E501 + + + :return: The type of this SnapshotDependency. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this SnapshotDependency. + + + :param type: The type of this SnapshotDependency. # noqa: E501 + :type: str + """ + + self._type = type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(SnapshotDependency, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SnapshotDependency): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/stack_trace_element.py b/swagger_client/models/stack_trace_element.py new file mode 100644 index 0000000..18d8e07 --- /dev/null +++ b/swagger_client/models/stack_trace_element.py @@ -0,0 +1,219 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class StackTraceElement(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'class_name': 'str', + 'file_name': 'str', + 'line_number': 'int', + 'method_name': 'str', + 'native_method': 'bool' + } + + attribute_map = { + 'class_name': 'className', + 'file_name': 'fileName', + 'line_number': 'lineNumber', + 'method_name': 'methodName', + 'native_method': 'nativeMethod' + } + + def __init__(self, class_name=None, file_name=None, line_number=None, method_name=None, native_method=False): # noqa: E501 + """StackTraceElement - a model defined in Swagger""" # noqa: E501 + + self._class_name = None + self._file_name = None + self._line_number = None + self._method_name = None + self._native_method = None + self.discriminator = None + + if class_name is not None: + self.class_name = class_name + if file_name is not None: + self.file_name = file_name + if line_number is not None: + self.line_number = line_number + if method_name is not None: + self.method_name = method_name + if native_method is not None: + self.native_method = native_method + + @property + def class_name(self): + """Gets the class_name of this StackTraceElement. # noqa: E501 + + + :return: The class_name of this StackTraceElement. # noqa: E501 + :rtype: str + """ + return self._class_name + + @class_name.setter + def class_name(self, class_name): + """Sets the class_name of this StackTraceElement. + + + :param class_name: The class_name of this StackTraceElement. # noqa: E501 + :type: str + """ + + self._class_name = class_name + + @property + def file_name(self): + """Gets the file_name of this StackTraceElement. # noqa: E501 + + + :return: The file_name of this StackTraceElement. # noqa: E501 + :rtype: str + """ + return self._file_name + + @file_name.setter + def file_name(self, file_name): + """Sets the file_name of this StackTraceElement. + + + :param file_name: The file_name of this StackTraceElement. # noqa: E501 + :type: str + """ + + self._file_name = file_name + + @property + def line_number(self): + """Gets the line_number of this StackTraceElement. # noqa: E501 + + + :return: The line_number of this StackTraceElement. # noqa: E501 + :rtype: int + """ + return self._line_number + + @line_number.setter + def line_number(self, line_number): + """Sets the line_number of this StackTraceElement. + + + :param line_number: The line_number of this StackTraceElement. # noqa: E501 + :type: int + """ + + self._line_number = line_number + + @property + def method_name(self): + """Gets the method_name of this StackTraceElement. # noqa: E501 + + + :return: The method_name of this StackTraceElement. # noqa: E501 + :rtype: str + """ + return self._method_name + + @method_name.setter + def method_name(self, method_name): + """Sets the method_name of this StackTraceElement. + + + :param method_name: The method_name of this StackTraceElement. # noqa: E501 + :type: str + """ + + self._method_name = method_name + + @property + def native_method(self): + """Gets the native_method of this StackTraceElement. # noqa: E501 + + + :return: The native_method of this StackTraceElement. # noqa: E501 + :rtype: bool + """ + return self._native_method + + @native_method.setter + def native_method(self, native_method): + """Sets the native_method of this StackTraceElement. + + + :param native_method: The native_method of this StackTraceElement. # noqa: E501 + :type: bool + """ + + self._native_method = native_method + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(StackTraceElement, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, StackTraceElement): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/state_field.py b/swagger_client/models/state_field.py new file mode 100644 index 0000000..0b7faac --- /dev/null +++ b/swagger_client/models/state_field.py @@ -0,0 +1,141 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class StateField(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'inherited': 'bool', + 'value': 'bool' + } + + attribute_map = { + 'inherited': 'inherited', + 'value': 'value' + } + + def __init__(self, inherited=False, value=False): # noqa: E501 + """StateField - a model defined in Swagger""" # noqa: E501 + + self._inherited = None + self._value = None + self.discriminator = None + + if inherited is not None: + self.inherited = inherited + if value is not None: + self.value = value + + @property + def inherited(self): + """Gets the inherited of this StateField. # noqa: E501 + + + :return: The inherited of this StateField. # noqa: E501 + :rtype: bool + """ + return self._inherited + + @inherited.setter + def inherited(self, inherited): + """Sets the inherited of this StateField. + + + :param inherited: The inherited of this StateField. # noqa: E501 + :type: bool + """ + + self._inherited = inherited + + @property + def value(self): + """Gets the value of this StateField. # noqa: E501 + + + :return: The value of this StateField. # noqa: E501 + :rtype: bool + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this StateField. + + + :param value: The value of this StateField. # noqa: E501 + :type: bool + """ + + self._value = value + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(StateField, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, StateField): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/step.py b/swagger_client/models/step.py new file mode 100644 index 0000000..5f1d3a1 --- /dev/null +++ b/swagger_client/models/step.py @@ -0,0 +1,273 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.properties import Properties # noqa: F401,E501 + + +class Step(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'disabled': 'bool', + 'href': 'str', + 'id': 'str', + 'inherited': 'bool', + 'name': 'str', + 'properties': 'Properties', + 'type': 'str' + } + + attribute_map = { + 'disabled': 'disabled', + 'href': 'href', + 'id': 'id', + 'inherited': 'inherited', + 'name': 'name', + 'properties': 'properties', + 'type': 'type' + } + + def __init__(self, disabled=False, href=None, id=None, inherited=False, name=None, properties=None, type=None): # noqa: E501 + """Step - a model defined in Swagger""" # noqa: E501 + + self._disabled = None + self._href = None + self._id = None + self._inherited = None + self._name = None + self._properties = None + self._type = None + self.discriminator = None + + if disabled is not None: + self.disabled = disabled + if href is not None: + self.href = href + if id is not None: + self.id = id + if inherited is not None: + self.inherited = inherited + if name is not None: + self.name = name + if properties is not None: + self.properties = properties + if type is not None: + self.type = type + + @property + def disabled(self): + """Gets the disabled of this Step. # noqa: E501 + + + :return: The disabled of this Step. # noqa: E501 + :rtype: bool + """ + return self._disabled + + @disabled.setter + def disabled(self, disabled): + """Sets the disabled of this Step. + + + :param disabled: The disabled of this Step. # noqa: E501 + :type: bool + """ + + self._disabled = disabled + + @property + def href(self): + """Gets the href of this Step. # noqa: E501 + + + :return: The href of this Step. # noqa: E501 + :rtype: str + """ + return self._href + + @href.setter + def href(self, href): + """Sets the href of this Step. + + + :param href: The href of this Step. # noqa: E501 + :type: str + """ + + self._href = href + + @property + def id(self): + """Gets the id of this Step. # noqa: E501 + + + :return: The id of this Step. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this Step. + + + :param id: The id of this Step. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def inherited(self): + """Gets the inherited of this Step. # noqa: E501 + + + :return: The inherited of this Step. # noqa: E501 + :rtype: bool + """ + return self._inherited + + @inherited.setter + def inherited(self, inherited): + """Sets the inherited of this Step. + + + :param inherited: The inherited of this Step. # noqa: E501 + :type: bool + """ + + self._inherited = inherited + + @property + def name(self): + """Gets the name of this Step. # noqa: E501 + + + :return: The name of this Step. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this Step. + + + :param name: The name of this Step. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def properties(self): + """Gets the properties of this Step. # noqa: E501 + + + :return: The properties of this Step. # noqa: E501 + :rtype: Properties + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this Step. + + + :param properties: The properties of this Step. # noqa: E501 + :type: Properties + """ + + self._properties = properties + + @property + def type(self): + """Gets the type of this Step. # noqa: E501 + + + :return: The type of this Step. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this Step. + + + :param type: The type of this Step. # noqa: E501 + :type: str + """ + + self._type = type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Step, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Step): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/steps.py b/swagger_client/models/steps.py new file mode 100644 index 0000000..2dcc081 --- /dev/null +++ b/swagger_client/models/steps.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.step import Step # noqa: F401,E501 + + +class Steps(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'step': 'list[Step]' + } + + attribute_map = { + 'count': 'count', + 'step': 'step' + } + + def __init__(self, count=None, step=None): # noqa: E501 + """Steps - a model defined in Swagger""" # noqa: E501 + + self._count = None + self._step = None + self.discriminator = None + + if count is not None: + self.count = count + if step is not None: + self.step = step + + @property + def count(self): + """Gets the count of this Steps. # noqa: E501 + + + :return: The count of this Steps. # noqa: E501 + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this Steps. + + + :param count: The count of this Steps. # noqa: E501 + :type: int + """ + + self._count = count + + @property + def step(self): + """Gets the step of this Steps. # noqa: E501 + + + :return: The step of this Steps. # noqa: E501 + :rtype: list[Step] + """ + return self._step + + @step.setter + def step(self, step): + """Sets the step of this Steps. + + + :param step: The step of this Steps. # noqa: E501 + :type: list[Step] + """ + + self._step = step + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Steps, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Steps): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/tag.py b/swagger_client/models/tag.py new file mode 100644 index 0000000..3843342 --- /dev/null +++ b/swagger_client/models/tag.py @@ -0,0 +1,169 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.user import User # noqa: F401,E501 + + +class Tag(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'name': 'str', + 'owner': 'User', + 'private': 'bool' + } + + attribute_map = { + 'name': 'name', + 'owner': 'owner', + 'private': 'private' + } + + def __init__(self, name=None, owner=None, private=False): # noqa: E501 + """Tag - a model defined in Swagger""" # noqa: E501 + + self._name = None + self._owner = None + self._private = None + self.discriminator = None + + if name is not None: + self.name = name + if owner is not None: + self.owner = owner + if private is not None: + self.private = private + + @property + def name(self): + """Gets the name of this Tag. # noqa: E501 + + + :return: The name of this Tag. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this Tag. + + + :param name: The name of this Tag. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def owner(self): + """Gets the owner of this Tag. # noqa: E501 + + + :return: The owner of this Tag. # noqa: E501 + :rtype: User + """ + return self._owner + + @owner.setter + def owner(self, owner): + """Sets the owner of this Tag. + + + :param owner: The owner of this Tag. # noqa: E501 + :type: User + """ + + self._owner = owner + + @property + def private(self): + """Gets the private of this Tag. # noqa: E501 + + + :return: The private of this Tag. # noqa: E501 + :rtype: bool + """ + return self._private + + @private.setter + def private(self, private): + """Sets the private of this Tag. + + + :param private: The private of this Tag. # noqa: E501 + :type: bool + """ + + self._private = private + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Tag, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Tag): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/tags.py b/swagger_client/models/tags.py new file mode 100644 index 0000000..0d93892 --- /dev/null +++ b/swagger_client/models/tags.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.tag import Tag # noqa: F401,E501 + + +class Tags(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'tag': 'list[Tag]' + } + + attribute_map = { + 'count': 'count', + 'tag': 'tag' + } + + def __init__(self, count=None, tag=None): # noqa: E501 + """Tags - a model defined in Swagger""" # noqa: E501 + + self._count = None + self._tag = None + self.discriminator = None + + if count is not None: + self.count = count + if tag is not None: + self.tag = tag + + @property + def count(self): + """Gets the count of this Tags. # noqa: E501 + + + :return: The count of this Tags. # noqa: E501 + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this Tags. + + + :param count: The count of this Tags. # noqa: E501 + :type: int + """ + + self._count = count + + @property + def tag(self): + """Gets the tag of this Tags. # noqa: E501 + + + :return: The tag of this Tags. # noqa: E501 + :rtype: list[Tag] + """ + return self._tag + + @tag.setter + def tag(self, tag): + """Sets the tag of this Tags. + + + :param tag: The tag of this Tags. # noqa: E501 + :type: list[Tag] + """ + + self._tag = tag + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Tags, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Tags): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/test.py b/swagger_client/models/test.py new file mode 100644 index 0000000..1aa1477 --- /dev/null +++ b/swagger_client/models/test.py @@ -0,0 +1,249 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.investigations import Investigations # noqa: F401,E501 +from swagger_client.models.mutes import Mutes # noqa: F401,E501 +from swagger_client.models.test_occurrences import TestOccurrences # noqa: F401,E501 + + +class Test(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'href': 'str', + 'id': 'str', + 'investigations': 'Investigations', + 'mutes': 'Mutes', + 'name': 'str', + 'test_occurrences': 'TestOccurrences' + } + + attribute_map = { + 'href': 'href', + 'id': 'id', + 'investigations': 'investigations', + 'mutes': 'mutes', + 'name': 'name', + 'test_occurrences': 'testOccurrences' + } + + def __init__(self, href=None, id=None, investigations=None, mutes=None, name=None, test_occurrences=None): # noqa: E501 + """Test - a model defined in Swagger""" # noqa: E501 + + self._href = None + self._id = None + self._investigations = None + self._mutes = None + self._name = None + self._test_occurrences = None + self.discriminator = None + + if href is not None: + self.href = href + if id is not None: + self.id = id + if investigations is not None: + self.investigations = investigations + if mutes is not None: + self.mutes = mutes + if name is not None: + self.name = name + if test_occurrences is not None: + self.test_occurrences = test_occurrences + + @property + def href(self): + """Gets the href of this Test. # noqa: E501 + + + :return: The href of this Test. # noqa: E501 + :rtype: str + """ + return self._href + + @href.setter + def href(self, href): + """Sets the href of this Test. + + + :param href: The href of this Test. # noqa: E501 + :type: str + """ + + self._href = href + + @property + def id(self): + """Gets the id of this Test. # noqa: E501 + + + :return: The id of this Test. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this Test. + + + :param id: The id of this Test. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def investigations(self): + """Gets the investigations of this Test. # noqa: E501 + + + :return: The investigations of this Test. # noqa: E501 + :rtype: Investigations + """ + return self._investigations + + @investigations.setter + def investigations(self, investigations): + """Sets the investigations of this Test. + + + :param investigations: The investigations of this Test. # noqa: E501 + :type: Investigations + """ + + self._investigations = investigations + + @property + def mutes(self): + """Gets the mutes of this Test. # noqa: E501 + + + :return: The mutes of this Test. # noqa: E501 + :rtype: Mutes + """ + return self._mutes + + @mutes.setter + def mutes(self, mutes): + """Sets the mutes of this Test. + + + :param mutes: The mutes of this Test. # noqa: E501 + :type: Mutes + """ + + self._mutes = mutes + + @property + def name(self): + """Gets the name of this Test. # noqa: E501 + + + :return: The name of this Test. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this Test. + + + :param name: The name of this Test. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def test_occurrences(self): + """Gets the test_occurrences of this Test. # noqa: E501 + + + :return: The test_occurrences of this Test. # noqa: E501 + :rtype: TestOccurrences + """ + return self._test_occurrences + + @test_occurrences.setter + def test_occurrences(self, test_occurrences): + """Sets the test_occurrences of this Test. + + + :param test_occurrences: The test_occurrences of this Test. # noqa: E501 + :type: TestOccurrences + """ + + self._test_occurrences = test_occurrences + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Test, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Test): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/test_occurrence.py b/swagger_client/models/test_occurrence.py new file mode 100644 index 0000000..54a4089 --- /dev/null +++ b/swagger_client/models/test_occurrence.py @@ -0,0 +1,563 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.build import Build # noqa: F401,E501 +from swagger_client.models.mute import Mute # noqa: F401,E501 +from swagger_client.models.test import Test # noqa: F401,E501 +from swagger_client.models.test_occurrence import TestOccurrence # noqa: F401,E501 +from swagger_client.models.test_occurrences import TestOccurrences # noqa: F401,E501 + + +class TestOccurrence(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'build': 'Build', + 'currently_investigated': 'bool', + 'currently_muted': 'bool', + 'details': 'str', + 'duration': 'int', + 'first_failed': 'TestOccurrence', + 'href': 'str', + 'id': 'str', + 'ignore_details': 'str', + 'ignored': 'bool', + 'invocations': 'TestOccurrences', + 'mute': 'Mute', + 'muted': 'bool', + 'name': 'str', + 'next_fixed': 'TestOccurrence', + 'run_order': 'str', + 'status': 'str', + 'test': 'Test' + } + + attribute_map = { + 'build': 'build', + 'currently_investigated': 'currentlyInvestigated', + 'currently_muted': 'currentlyMuted', + 'details': 'details', + 'duration': 'duration', + 'first_failed': 'firstFailed', + 'href': 'href', + 'id': 'id', + 'ignore_details': 'ignoreDetails', + 'ignored': 'ignored', + 'invocations': 'invocations', + 'mute': 'mute', + 'muted': 'muted', + 'name': 'name', + 'next_fixed': 'nextFixed', + 'run_order': 'runOrder', + 'status': 'status', + 'test': 'test' + } + + def __init__(self, build=None, currently_investigated=False, currently_muted=False, details=None, duration=None, first_failed=None, href=None, id=None, ignore_details=None, ignored=False, invocations=None, mute=None, muted=False, name=None, next_fixed=None, run_order=None, status=None, test=None): # noqa: E501 + """TestOccurrence - a model defined in Swagger""" # noqa: E501 + + self._build = None + self._currently_investigated = None + self._currently_muted = None + self._details = None + self._duration = None + self._first_failed = None + self._href = None + self._id = None + self._ignore_details = None + self._ignored = None + self._invocations = None + self._mute = None + self._muted = None + self._name = None + self._next_fixed = None + self._run_order = None + self._status = None + self._test = None + self.discriminator = None + + if build is not None: + self.build = build + if currently_investigated is not None: + self.currently_investigated = currently_investigated + if currently_muted is not None: + self.currently_muted = currently_muted + if details is not None: + self.details = details + if duration is not None: + self.duration = duration + if first_failed is not None: + self.first_failed = first_failed + if href is not None: + self.href = href + if id is not None: + self.id = id + if ignore_details is not None: + self.ignore_details = ignore_details + if ignored is not None: + self.ignored = ignored + if invocations is not None: + self.invocations = invocations + if mute is not None: + self.mute = mute + if muted is not None: + self.muted = muted + if name is not None: + self.name = name + if next_fixed is not None: + self.next_fixed = next_fixed + if run_order is not None: + self.run_order = run_order + if status is not None: + self.status = status + if test is not None: + self.test = test + + @property + def build(self): + """Gets the build of this TestOccurrence. # noqa: E501 + + + :return: The build of this TestOccurrence. # noqa: E501 + :rtype: Build + """ + return self._build + + @build.setter + def build(self, build): + """Sets the build of this TestOccurrence. + + + :param build: The build of this TestOccurrence. # noqa: E501 + :type: Build + """ + + self._build = build + + @property + def currently_investigated(self): + """Gets the currently_investigated of this TestOccurrence. # noqa: E501 + + + :return: The currently_investigated of this TestOccurrence. # noqa: E501 + :rtype: bool + """ + return self._currently_investigated + + @currently_investigated.setter + def currently_investigated(self, currently_investigated): + """Sets the currently_investigated of this TestOccurrence. + + + :param currently_investigated: The currently_investigated of this TestOccurrence. # noqa: E501 + :type: bool + """ + + self._currently_investigated = currently_investigated + + @property + def currently_muted(self): + """Gets the currently_muted of this TestOccurrence. # noqa: E501 + + + :return: The currently_muted of this TestOccurrence. # noqa: E501 + :rtype: bool + """ + return self._currently_muted + + @currently_muted.setter + def currently_muted(self, currently_muted): + """Sets the currently_muted of this TestOccurrence. + + + :param currently_muted: The currently_muted of this TestOccurrence. # noqa: E501 + :type: bool + """ + + self._currently_muted = currently_muted + + @property + def details(self): + """Gets the details of this TestOccurrence. # noqa: E501 + + + :return: The details of this TestOccurrence. # noqa: E501 + :rtype: str + """ + return self._details + + @details.setter + def details(self, details): + """Sets the details of this TestOccurrence. + + + :param details: The details of this TestOccurrence. # noqa: E501 + :type: str + """ + + self._details = details + + @property + def duration(self): + """Gets the duration of this TestOccurrence. # noqa: E501 + + + :return: The duration of this TestOccurrence. # noqa: E501 + :rtype: int + """ + return self._duration + + @duration.setter + def duration(self, duration): + """Sets the duration of this TestOccurrence. + + + :param duration: The duration of this TestOccurrence. # noqa: E501 + :type: int + """ + + self._duration = duration + + @property + def first_failed(self): + """Gets the first_failed of this TestOccurrence. # noqa: E501 + + + :return: The first_failed of this TestOccurrence. # noqa: E501 + :rtype: TestOccurrence + """ + return self._first_failed + + @first_failed.setter + def first_failed(self, first_failed): + """Sets the first_failed of this TestOccurrence. + + + :param first_failed: The first_failed of this TestOccurrence. # noqa: E501 + :type: TestOccurrence + """ + + self._first_failed = first_failed + + @property + def href(self): + """Gets the href of this TestOccurrence. # noqa: E501 + + + :return: The href of this TestOccurrence. # noqa: E501 + :rtype: str + """ + return self._href + + @href.setter + def href(self, href): + """Sets the href of this TestOccurrence. + + + :param href: The href of this TestOccurrence. # noqa: E501 + :type: str + """ + + self._href = href + + @property + def id(self): + """Gets the id of this TestOccurrence. # noqa: E501 + + + :return: The id of this TestOccurrence. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this TestOccurrence. + + + :param id: The id of this TestOccurrence. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def ignore_details(self): + """Gets the ignore_details of this TestOccurrence. # noqa: E501 + + + :return: The ignore_details of this TestOccurrence. # noqa: E501 + :rtype: str + """ + return self._ignore_details + + @ignore_details.setter + def ignore_details(self, ignore_details): + """Sets the ignore_details of this TestOccurrence. + + + :param ignore_details: The ignore_details of this TestOccurrence. # noqa: E501 + :type: str + """ + + self._ignore_details = ignore_details + + @property + def ignored(self): + """Gets the ignored of this TestOccurrence. # noqa: E501 + + + :return: The ignored of this TestOccurrence. # noqa: E501 + :rtype: bool + """ + return self._ignored + + @ignored.setter + def ignored(self, ignored): + """Sets the ignored of this TestOccurrence. + + + :param ignored: The ignored of this TestOccurrence. # noqa: E501 + :type: bool + """ + + self._ignored = ignored + + @property + def invocations(self): + """Gets the invocations of this TestOccurrence. # noqa: E501 + + + :return: The invocations of this TestOccurrence. # noqa: E501 + :rtype: TestOccurrences + """ + return self._invocations + + @invocations.setter + def invocations(self, invocations): + """Sets the invocations of this TestOccurrence. + + + :param invocations: The invocations of this TestOccurrence. # noqa: E501 + :type: TestOccurrences + """ + + self._invocations = invocations + + @property + def mute(self): + """Gets the mute of this TestOccurrence. # noqa: E501 + + + :return: The mute of this TestOccurrence. # noqa: E501 + :rtype: Mute + """ + return self._mute + + @mute.setter + def mute(self, mute): + """Sets the mute of this TestOccurrence. + + + :param mute: The mute of this TestOccurrence. # noqa: E501 + :type: Mute + """ + + self._mute = mute + + @property + def muted(self): + """Gets the muted of this TestOccurrence. # noqa: E501 + + + :return: The muted of this TestOccurrence. # noqa: E501 + :rtype: bool + """ + return self._muted + + @muted.setter + def muted(self, muted): + """Sets the muted of this TestOccurrence. + + + :param muted: The muted of this TestOccurrence. # noqa: E501 + :type: bool + """ + + self._muted = muted + + @property + def name(self): + """Gets the name of this TestOccurrence. # noqa: E501 + + + :return: The name of this TestOccurrence. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this TestOccurrence. + + + :param name: The name of this TestOccurrence. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def next_fixed(self): + """Gets the next_fixed of this TestOccurrence. # noqa: E501 + + + :return: The next_fixed of this TestOccurrence. # noqa: E501 + :rtype: TestOccurrence + """ + return self._next_fixed + + @next_fixed.setter + def next_fixed(self, next_fixed): + """Sets the next_fixed of this TestOccurrence. + + + :param next_fixed: The next_fixed of this TestOccurrence. # noqa: E501 + :type: TestOccurrence + """ + + self._next_fixed = next_fixed + + @property + def run_order(self): + """Gets the run_order of this TestOccurrence. # noqa: E501 + + + :return: The run_order of this TestOccurrence. # noqa: E501 + :rtype: str + """ + return self._run_order + + @run_order.setter + def run_order(self, run_order): + """Sets the run_order of this TestOccurrence. + + + :param run_order: The run_order of this TestOccurrence. # noqa: E501 + :type: str + """ + + self._run_order = run_order + + @property + def status(self): + """Gets the status of this TestOccurrence. # noqa: E501 + + + :return: The status of this TestOccurrence. # noqa: E501 + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this TestOccurrence. + + + :param status: The status of this TestOccurrence. # noqa: E501 + :type: str + """ + + self._status = status + + @property + def test(self): + """Gets the test of this TestOccurrence. # noqa: E501 + + + :return: The test of this TestOccurrence. # noqa: E501 + :rtype: Test + """ + return self._test + + @test.setter + def test(self, test): + """Sets the test of this TestOccurrence. + + + :param test: The test of this TestOccurrence. # noqa: E501 + :type: Test + """ + + self._test = test + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(TestOccurrence, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, TestOccurrence): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/test_occurrences.py b/swagger_client/models/test_occurrences.py new file mode 100644 index 0000000..e70e437 --- /dev/null +++ b/swagger_client/models/test_occurrences.py @@ -0,0 +1,377 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.test_occurrence import TestOccurrence # noqa: F401,E501 + + +class TestOccurrences(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'default': 'bool', + 'failed': 'int', + 'href': 'str', + 'ignored': 'int', + 'muted': 'int', + 'new_failed': 'int', + 'next_href': 'str', + 'passed': 'int', + 'prev_href': 'str', + 'test_occurrence': 'list[TestOccurrence]' + } + + attribute_map = { + 'count': 'count', + 'default': 'default', + 'failed': 'failed', + 'href': 'href', + 'ignored': 'ignored', + 'muted': 'muted', + 'new_failed': 'newFailed', + 'next_href': 'nextHref', + 'passed': 'passed', + 'prev_href': 'prevHref', + 'test_occurrence': 'testOccurrence' + } + + def __init__(self, count=None, default=False, failed=None, href=None, ignored=None, muted=None, new_failed=None, next_href=None, passed=None, prev_href=None, test_occurrence=None): # noqa: E501 + """TestOccurrences - a model defined in Swagger""" # noqa: E501 + + self._count = None + self._default = None + self._failed = None + self._href = None + self._ignored = None + self._muted = None + self._new_failed = None + self._next_href = None + self._passed = None + self._prev_href = None + self._test_occurrence = None + self.discriminator = None + + if count is not None: + self.count = count + if default is not None: + self.default = default + if failed is not None: + self.failed = failed + if href is not None: + self.href = href + if ignored is not None: + self.ignored = ignored + if muted is not None: + self.muted = muted + if new_failed is not None: + self.new_failed = new_failed + if next_href is not None: + self.next_href = next_href + if passed is not None: + self.passed = passed + if prev_href is not None: + self.prev_href = prev_href + if test_occurrence is not None: + self.test_occurrence = test_occurrence + + @property + def count(self): + """Gets the count of this TestOccurrences. # noqa: E501 + + + :return: The count of this TestOccurrences. # noqa: E501 + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this TestOccurrences. + + + :param count: The count of this TestOccurrences. # noqa: E501 + :type: int + """ + + self._count = count + + @property + def default(self): + """Gets the default of this TestOccurrences. # noqa: E501 + + + :return: The default of this TestOccurrences. # noqa: E501 + :rtype: bool + """ + return self._default + + @default.setter + def default(self, default): + """Sets the default of this TestOccurrences. + + + :param default: The default of this TestOccurrences. # noqa: E501 + :type: bool + """ + + self._default = default + + @property + def failed(self): + """Gets the failed of this TestOccurrences. # noqa: E501 + + + :return: The failed of this TestOccurrences. # noqa: E501 + :rtype: int + """ + return self._failed + + @failed.setter + def failed(self, failed): + """Sets the failed of this TestOccurrences. + + + :param failed: The failed of this TestOccurrences. # noqa: E501 + :type: int + """ + + self._failed = failed + + @property + def href(self): + """Gets the href of this TestOccurrences. # noqa: E501 + + + :return: The href of this TestOccurrences. # noqa: E501 + :rtype: str + """ + return self._href + + @href.setter + def href(self, href): + """Sets the href of this TestOccurrences. + + + :param href: The href of this TestOccurrences. # noqa: E501 + :type: str + """ + + self._href = href + + @property + def ignored(self): + """Gets the ignored of this TestOccurrences. # noqa: E501 + + + :return: The ignored of this TestOccurrences. # noqa: E501 + :rtype: int + """ + return self._ignored + + @ignored.setter + def ignored(self, ignored): + """Sets the ignored of this TestOccurrences. + + + :param ignored: The ignored of this TestOccurrences. # noqa: E501 + :type: int + """ + + self._ignored = ignored + + @property + def muted(self): + """Gets the muted of this TestOccurrences. # noqa: E501 + + + :return: The muted of this TestOccurrences. # noqa: E501 + :rtype: int + """ + return self._muted + + @muted.setter + def muted(self, muted): + """Sets the muted of this TestOccurrences. + + + :param muted: The muted of this TestOccurrences. # noqa: E501 + :type: int + """ + + self._muted = muted + + @property + def new_failed(self): + """Gets the new_failed of this TestOccurrences. # noqa: E501 + + + :return: The new_failed of this TestOccurrences. # noqa: E501 + :rtype: int + """ + return self._new_failed + + @new_failed.setter + def new_failed(self, new_failed): + """Sets the new_failed of this TestOccurrences. + + + :param new_failed: The new_failed of this TestOccurrences. # noqa: E501 + :type: int + """ + + self._new_failed = new_failed + + @property + def next_href(self): + """Gets the next_href of this TestOccurrences. # noqa: E501 + + + :return: The next_href of this TestOccurrences. # noqa: E501 + :rtype: str + """ + return self._next_href + + @next_href.setter + def next_href(self, next_href): + """Sets the next_href of this TestOccurrences. + + + :param next_href: The next_href of this TestOccurrences. # noqa: E501 + :type: str + """ + + self._next_href = next_href + + @property + def passed(self): + """Gets the passed of this TestOccurrences. # noqa: E501 + + + :return: The passed of this TestOccurrences. # noqa: E501 + :rtype: int + """ + return self._passed + + @passed.setter + def passed(self, passed): + """Sets the passed of this TestOccurrences. + + + :param passed: The passed of this TestOccurrences. # noqa: E501 + :type: int + """ + + self._passed = passed + + @property + def prev_href(self): + """Gets the prev_href of this TestOccurrences. # noqa: E501 + + + :return: The prev_href of this TestOccurrences. # noqa: E501 + :rtype: str + """ + return self._prev_href + + @prev_href.setter + def prev_href(self, prev_href): + """Sets the prev_href of this TestOccurrences. + + + :param prev_href: The prev_href of this TestOccurrences. # noqa: E501 + :type: str + """ + + self._prev_href = prev_href + + @property + def test_occurrence(self): + """Gets the test_occurrence of this TestOccurrences. # noqa: E501 + + + :return: The test_occurrence of this TestOccurrences. # noqa: E501 + :rtype: list[TestOccurrence] + """ + return self._test_occurrence + + @test_occurrence.setter + def test_occurrence(self, test_occurrence): + """Sets the test_occurrence of this TestOccurrences. + + + :param test_occurrence: The test_occurrence of this TestOccurrences. # noqa: E501 + :type: list[TestOccurrence] + """ + + self._test_occurrence = test_occurrence + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(TestOccurrences, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, TestOccurrences): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/tests.py b/swagger_client/models/tests.py new file mode 100644 index 0000000..71b002a --- /dev/null +++ b/swagger_client/models/tests.py @@ -0,0 +1,221 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.test import Test # noqa: F401,E501 + + +class Tests(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'default': 'bool', + 'next_href': 'str', + 'prev_href': 'str', + 'test': 'list[Test]' + } + + attribute_map = { + 'count': 'count', + 'default': 'default', + 'next_href': 'nextHref', + 'prev_href': 'prevHref', + 'test': 'test' + } + + def __init__(self, count=None, default=False, next_href=None, prev_href=None, test=None): # noqa: E501 + """Tests - a model defined in Swagger""" # noqa: E501 + + self._count = None + self._default = None + self._next_href = None + self._prev_href = None + self._test = None + self.discriminator = None + + if count is not None: + self.count = count + if default is not None: + self.default = default + if next_href is not None: + self.next_href = next_href + if prev_href is not None: + self.prev_href = prev_href + if test is not None: + self.test = test + + @property + def count(self): + """Gets the count of this Tests. # noqa: E501 + + + :return: The count of this Tests. # noqa: E501 + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this Tests. + + + :param count: The count of this Tests. # noqa: E501 + :type: int + """ + + self._count = count + + @property + def default(self): + """Gets the default of this Tests. # noqa: E501 + + + :return: The default of this Tests. # noqa: E501 + :rtype: bool + """ + return self._default + + @default.setter + def default(self, default): + """Sets the default of this Tests. + + + :param default: The default of this Tests. # noqa: E501 + :type: bool + """ + + self._default = default + + @property + def next_href(self): + """Gets the next_href of this Tests. # noqa: E501 + + + :return: The next_href of this Tests. # noqa: E501 + :rtype: str + """ + return self._next_href + + @next_href.setter + def next_href(self, next_href): + """Sets the next_href of this Tests. + + + :param next_href: The next_href of this Tests. # noqa: E501 + :type: str + """ + + self._next_href = next_href + + @property + def prev_href(self): + """Gets the prev_href of this Tests. # noqa: E501 + + + :return: The prev_href of this Tests. # noqa: E501 + :rtype: str + """ + return self._prev_href + + @prev_href.setter + def prev_href(self, prev_href): + """Sets the prev_href of this Tests. + + + :param prev_href: The prev_href of this Tests. # noqa: E501 + :type: str + """ + + self._prev_href = prev_href + + @property + def test(self): + """Gets the test of this Tests. # noqa: E501 + + + :return: The test of this Tests. # noqa: E501 + :rtype: list[Test] + """ + return self._test + + @test.setter + def test(self, test): + """Sets the test of this Tests. + + + :param test: The test of this Tests. # noqa: E501 + :type: list[Test] + """ + + self._test = test + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Tests, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Tests): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/throwable.py b/swagger_client/models/throwable.py new file mode 100644 index 0000000..7e9fdc9 --- /dev/null +++ b/swagger_client/models/throwable.py @@ -0,0 +1,222 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.stack_trace_element import StackTraceElement # noqa: F401,E501 +from swagger_client.models.throwable import Throwable # noqa: F401,E501 + + +class Throwable(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'cause': 'Throwable', + 'localized_message': 'str', + 'message': 'str', + 'stack_trace': 'list[StackTraceElement]', + 'suppressed': 'list[Throwable]' + } + + attribute_map = { + 'cause': 'cause', + 'localized_message': 'localizedMessage', + 'message': 'message', + 'stack_trace': 'stackTrace', + 'suppressed': 'suppressed' + } + + def __init__(self, cause=None, localized_message=None, message=None, stack_trace=None, suppressed=None): # noqa: E501 + """Throwable - a model defined in Swagger""" # noqa: E501 + + self._cause = None + self._localized_message = None + self._message = None + self._stack_trace = None + self._suppressed = None + self.discriminator = None + + if cause is not None: + self.cause = cause + if localized_message is not None: + self.localized_message = localized_message + if message is not None: + self.message = message + if stack_trace is not None: + self.stack_trace = stack_trace + if suppressed is not None: + self.suppressed = suppressed + + @property + def cause(self): + """Gets the cause of this Throwable. # noqa: E501 + + + :return: The cause of this Throwable. # noqa: E501 + :rtype: Throwable + """ + return self._cause + + @cause.setter + def cause(self, cause): + """Sets the cause of this Throwable. + + + :param cause: The cause of this Throwable. # noqa: E501 + :type: Throwable + """ + + self._cause = cause + + @property + def localized_message(self): + """Gets the localized_message of this Throwable. # noqa: E501 + + + :return: The localized_message of this Throwable. # noqa: E501 + :rtype: str + """ + return self._localized_message + + @localized_message.setter + def localized_message(self, localized_message): + """Sets the localized_message of this Throwable. + + + :param localized_message: The localized_message of this Throwable. # noqa: E501 + :type: str + """ + + self._localized_message = localized_message + + @property + def message(self): + """Gets the message of this Throwable. # noqa: E501 + + + :return: The message of this Throwable. # noqa: E501 + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this Throwable. + + + :param message: The message of this Throwable. # noqa: E501 + :type: str + """ + + self._message = message + + @property + def stack_trace(self): + """Gets the stack_trace of this Throwable. # noqa: E501 + + + :return: The stack_trace of this Throwable. # noqa: E501 + :rtype: list[StackTraceElement] + """ + return self._stack_trace + + @stack_trace.setter + def stack_trace(self, stack_trace): + """Sets the stack_trace of this Throwable. + + + :param stack_trace: The stack_trace of this Throwable. # noqa: E501 + :type: list[StackTraceElement] + """ + + self._stack_trace = stack_trace + + @property + def suppressed(self): + """Gets the suppressed of this Throwable. # noqa: E501 + + + :return: The suppressed of this Throwable. # noqa: E501 + :rtype: list[Throwable] + """ + return self._suppressed + + @suppressed.setter + def suppressed(self, suppressed): + """Sets the suppressed of this Throwable. + + + :param suppressed: The suppressed of this Throwable. # noqa: E501 + :type: list[Throwable] + """ + + self._suppressed = suppressed + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Throwable, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Throwable): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/trigger.py b/swagger_client/models/trigger.py new file mode 100644 index 0000000..f4f7d4f --- /dev/null +++ b/swagger_client/models/trigger.py @@ -0,0 +1,273 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.properties import Properties # noqa: F401,E501 + + +class Trigger(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'disabled': 'bool', + 'href': 'str', + 'id': 'str', + 'inherited': 'bool', + 'name': 'str', + 'properties': 'Properties', + 'type': 'str' + } + + attribute_map = { + 'disabled': 'disabled', + 'href': 'href', + 'id': 'id', + 'inherited': 'inherited', + 'name': 'name', + 'properties': 'properties', + 'type': 'type' + } + + def __init__(self, disabled=False, href=None, id=None, inherited=False, name=None, properties=None, type=None): # noqa: E501 + """Trigger - a model defined in Swagger""" # noqa: E501 + + self._disabled = None + self._href = None + self._id = None + self._inherited = None + self._name = None + self._properties = None + self._type = None + self.discriminator = None + + if disabled is not None: + self.disabled = disabled + if href is not None: + self.href = href + if id is not None: + self.id = id + if inherited is not None: + self.inherited = inherited + if name is not None: + self.name = name + if properties is not None: + self.properties = properties + if type is not None: + self.type = type + + @property + def disabled(self): + """Gets the disabled of this Trigger. # noqa: E501 + + + :return: The disabled of this Trigger. # noqa: E501 + :rtype: bool + """ + return self._disabled + + @disabled.setter + def disabled(self, disabled): + """Sets the disabled of this Trigger. + + + :param disabled: The disabled of this Trigger. # noqa: E501 + :type: bool + """ + + self._disabled = disabled + + @property + def href(self): + """Gets the href of this Trigger. # noqa: E501 + + + :return: The href of this Trigger. # noqa: E501 + :rtype: str + """ + return self._href + + @href.setter + def href(self, href): + """Sets the href of this Trigger. + + + :param href: The href of this Trigger. # noqa: E501 + :type: str + """ + + self._href = href + + @property + def id(self): + """Gets the id of this Trigger. # noqa: E501 + + + :return: The id of this Trigger. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this Trigger. + + + :param id: The id of this Trigger. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def inherited(self): + """Gets the inherited of this Trigger. # noqa: E501 + + + :return: The inherited of this Trigger. # noqa: E501 + :rtype: bool + """ + return self._inherited + + @inherited.setter + def inherited(self, inherited): + """Sets the inherited of this Trigger. + + + :param inherited: The inherited of this Trigger. # noqa: E501 + :type: bool + """ + + self._inherited = inherited + + @property + def name(self): + """Gets the name of this Trigger. # noqa: E501 + + + :return: The name of this Trigger. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this Trigger. + + + :param name: The name of this Trigger. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def properties(self): + """Gets the properties of this Trigger. # noqa: E501 + + + :return: The properties of this Trigger. # noqa: E501 + :rtype: Properties + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this Trigger. + + + :param properties: The properties of this Trigger. # noqa: E501 + :type: Properties + """ + + self._properties = properties + + @property + def type(self): + """Gets the type of this Trigger. # noqa: E501 + + + :return: The type of this Trigger. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this Trigger. + + + :param type: The type of this Trigger. # noqa: E501 + :type: str + """ + + self._type = type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Trigger, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Trigger): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/triggered_by.py b/swagger_client/models/triggered_by.py new file mode 100644 index 0000000..1a2a77e --- /dev/null +++ b/swagger_client/models/triggered_by.py @@ -0,0 +1,275 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.build_type import BuildType # noqa: F401,E501 +from swagger_client.models.properties import Properties # noqa: F401,E501 +from swagger_client.models.user import User # noqa: F401,E501 + + +class TriggeredBy(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'build_type': 'BuildType', + '_date': 'str', + 'details': 'str', + 'properties': 'Properties', + 'raw_value': 'str', + 'type': 'str', + 'user': 'User' + } + + attribute_map = { + 'build_type': 'buildType', + '_date': 'date', + 'details': 'details', + 'properties': 'properties', + 'raw_value': 'rawValue', + 'type': 'type', + 'user': 'user' + } + + def __init__(self, build_type=None, _date=None, details=None, properties=None, raw_value=None, type=None, user=None): # noqa: E501 + """TriggeredBy - a model defined in Swagger""" # noqa: E501 + + self._build_type = None + self.__date = None + self._details = None + self._properties = None + self._raw_value = None + self._type = None + self._user = None + self.discriminator = None + + if build_type is not None: + self.build_type = build_type + if _date is not None: + self._date = _date + if details is not None: + self.details = details + if properties is not None: + self.properties = properties + if raw_value is not None: + self.raw_value = raw_value + if type is not None: + self.type = type + if user is not None: + self.user = user + + @property + def build_type(self): + """Gets the build_type of this TriggeredBy. # noqa: E501 + + + :return: The build_type of this TriggeredBy. # noqa: E501 + :rtype: BuildType + """ + return self._build_type + + @build_type.setter + def build_type(self, build_type): + """Sets the build_type of this TriggeredBy. + + + :param build_type: The build_type of this TriggeredBy. # noqa: E501 + :type: BuildType + """ + + self._build_type = build_type + + @property + def _date(self): + """Gets the _date of this TriggeredBy. # noqa: E501 + + + :return: The _date of this TriggeredBy. # noqa: E501 + :rtype: str + """ + return self.__date + + @_date.setter + def _date(self, _date): + """Sets the _date of this TriggeredBy. + + + :param _date: The _date of this TriggeredBy. # noqa: E501 + :type: str + """ + + self.__date = _date + + @property + def details(self): + """Gets the details of this TriggeredBy. # noqa: E501 + + + :return: The details of this TriggeredBy. # noqa: E501 + :rtype: str + """ + return self._details + + @details.setter + def details(self, details): + """Sets the details of this TriggeredBy. + + + :param details: The details of this TriggeredBy. # noqa: E501 + :type: str + """ + + self._details = details + + @property + def properties(self): + """Gets the properties of this TriggeredBy. # noqa: E501 + + + :return: The properties of this TriggeredBy. # noqa: E501 + :rtype: Properties + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this TriggeredBy. + + + :param properties: The properties of this TriggeredBy. # noqa: E501 + :type: Properties + """ + + self._properties = properties + + @property + def raw_value(self): + """Gets the raw_value of this TriggeredBy. # noqa: E501 + + + :return: The raw_value of this TriggeredBy. # noqa: E501 + :rtype: str + """ + return self._raw_value + + @raw_value.setter + def raw_value(self, raw_value): + """Sets the raw_value of this TriggeredBy. + + + :param raw_value: The raw_value of this TriggeredBy. # noqa: E501 + :type: str + """ + + self._raw_value = raw_value + + @property + def type(self): + """Gets the type of this TriggeredBy. # noqa: E501 + + + :return: The type of this TriggeredBy. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this TriggeredBy. + + + :param type: The type of this TriggeredBy. # noqa: E501 + :type: str + """ + + self._type = type + + @property + def user(self): + """Gets the user of this TriggeredBy. # noqa: E501 + + + :return: The user of this TriggeredBy. # noqa: E501 + :rtype: User + """ + return self._user + + @user.setter + def user(self, user): + """Sets the user of this TriggeredBy. + + + :param user: The user of this TriggeredBy. # noqa: E501 + :type: User + """ + + self._user = user + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(TriggeredBy, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, TriggeredBy): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/triggers.py b/swagger_client/models/triggers.py new file mode 100644 index 0000000..1fbdbfe --- /dev/null +++ b/swagger_client/models/triggers.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.trigger import Trigger # noqa: F401,E501 + + +class Triggers(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'trigger': 'list[Trigger]' + } + + attribute_map = { + 'count': 'count', + 'trigger': 'trigger' + } + + def __init__(self, count=None, trigger=None): # noqa: E501 + """Triggers - a model defined in Swagger""" # noqa: E501 + + self._count = None + self._trigger = None + self.discriminator = None + + if count is not None: + self.count = count + if trigger is not None: + self.trigger = trigger + + @property + def count(self): + """Gets the count of this Triggers. # noqa: E501 + + + :return: The count of this Triggers. # noqa: E501 + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this Triggers. + + + :param count: The count of this Triggers. # noqa: E501 + :type: int + """ + + self._count = count + + @property + def trigger(self): + """Gets the trigger of this Triggers. # noqa: E501 + + + :return: The trigger of this Triggers. # noqa: E501 + :rtype: list[Trigger] + """ + return self._trigger + + @trigger.setter + def trigger(self, trigger): + """Sets the trigger of this Triggers. + + + :param trigger: The trigger of this Triggers. # noqa: E501 + :type: list[Trigger] + """ + + self._trigger = trigger + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Triggers, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Triggers): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/type.py b/swagger_client/models/type.py new file mode 100644 index 0000000..21fa187 --- /dev/null +++ b/swagger_client/models/type.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class Type(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'raw_value': 'str' + } + + attribute_map = { + 'raw_value': 'rawValue' + } + + def __init__(self, raw_value=None): # noqa: E501 + """Type - a model defined in Swagger""" # noqa: E501 + + self._raw_value = None + self.discriminator = None + + if raw_value is not None: + self.raw_value = raw_value + + @property + def raw_value(self): + """Gets the raw_value of this Type. # noqa: E501 + + + :return: The raw_value of this Type. # noqa: E501 + :rtype: str + """ + return self._raw_value + + @raw_value.setter + def raw_value(self, raw_value): + """Sets the raw_value of this Type. + + + :param raw_value: The raw_value of this Type. # noqa: E501 + :type: str + """ + + self._raw_value = raw_value + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Type, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Type): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/user.py b/swagger_client/models/user.py new file mode 100644 index 0000000..a7ee70e --- /dev/null +++ b/swagger_client/models/user.py @@ -0,0 +1,431 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.groups import Groups # noqa: F401,E501 +from swagger_client.models.properties import Properties # noqa: F401,E501 +from swagger_client.models.roles import Roles # noqa: F401,E501 + + +class User(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'email': 'str', + 'groups': 'Groups', + 'has_password': 'bool', + 'href': 'str', + 'id': 'int', + 'last_login': 'str', + 'locator': 'str', + 'name': 'str', + 'password': 'str', + 'properties': 'Properties', + 'realm': 'str', + 'roles': 'Roles', + 'username': 'str' + } + + attribute_map = { + 'email': 'email', + 'groups': 'groups', + 'has_password': 'hasPassword', + 'href': 'href', + 'id': 'id', + 'last_login': 'lastLogin', + 'locator': 'locator', + 'name': 'name', + 'password': 'password', + 'properties': 'properties', + 'realm': 'realm', + 'roles': 'roles', + 'username': 'username' + } + + def __init__(self, email=None, groups=None, has_password=False, href=None, id=None, last_login=None, locator=None, name=None, password=None, properties=None, realm=None, roles=None, username=None): # noqa: E501 + """User - a model defined in Swagger""" # noqa: E501 + + self._email = None + self._groups = None + self._has_password = None + self._href = None + self._id = None + self._last_login = None + self._locator = None + self._name = None + self._password = None + self._properties = None + self._realm = None + self._roles = None + self._username = None + self.discriminator = None + + if email is not None: + self.email = email + if groups is not None: + self.groups = groups + if has_password is not None: + self.has_password = has_password + if href is not None: + self.href = href + if id is not None: + self.id = id + if last_login is not None: + self.last_login = last_login + if locator is not None: + self.locator = locator + if name is not None: + self.name = name + if password is not None: + self.password = password + if properties is not None: + self.properties = properties + if realm is not None: + self.realm = realm + if roles is not None: + self.roles = roles + if username is not None: + self.username = username + + @property + def email(self): + """Gets the email of this User. # noqa: E501 + + + :return: The email of this User. # noqa: E501 + :rtype: str + """ + return self._email + + @email.setter + def email(self, email): + """Sets the email of this User. + + + :param email: The email of this User. # noqa: E501 + :type: str + """ + + self._email = email + + @property + def groups(self): + """Gets the groups of this User. # noqa: E501 + + + :return: The groups of this User. # noqa: E501 + :rtype: Groups + """ + return self._groups + + @groups.setter + def groups(self, groups): + """Sets the groups of this User. + + + :param groups: The groups of this User. # noqa: E501 + :type: Groups + """ + + self._groups = groups + + @property + def has_password(self): + """Gets the has_password of this User. # noqa: E501 + + + :return: The has_password of this User. # noqa: E501 + :rtype: bool + """ + return self._has_password + + @has_password.setter + def has_password(self, has_password): + """Sets the has_password of this User. + + + :param has_password: The has_password of this User. # noqa: E501 + :type: bool + """ + + self._has_password = has_password + + @property + def href(self): + """Gets the href of this User. # noqa: E501 + + + :return: The href of this User. # noqa: E501 + :rtype: str + """ + return self._href + + @href.setter + def href(self, href): + """Sets the href of this User. + + + :param href: The href of this User. # noqa: E501 + :type: str + """ + + self._href = href + + @property + def id(self): + """Gets the id of this User. # noqa: E501 + + + :return: The id of this User. # noqa: E501 + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this User. + + + :param id: The id of this User. # noqa: E501 + :type: int + """ + + self._id = id + + @property + def last_login(self): + """Gets the last_login of this User. # noqa: E501 + + + :return: The last_login of this User. # noqa: E501 + :rtype: str + """ + return self._last_login + + @last_login.setter + def last_login(self, last_login): + """Sets the last_login of this User. + + + :param last_login: The last_login of this User. # noqa: E501 + :type: str + """ + + self._last_login = last_login + + @property + def locator(self): + """Gets the locator of this User. # noqa: E501 + + + :return: The locator of this User. # noqa: E501 + :rtype: str + """ + return self._locator + + @locator.setter + def locator(self, locator): + """Sets the locator of this User. + + + :param locator: The locator of this User. # noqa: E501 + :type: str + """ + + self._locator = locator + + @property + def name(self): + """Gets the name of this User. # noqa: E501 + + + :return: The name of this User. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this User. + + + :param name: The name of this User. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def password(self): + """Gets the password of this User. # noqa: E501 + + + :return: The password of this User. # noqa: E501 + :rtype: str + """ + return self._password + + @password.setter + def password(self, password): + """Sets the password of this User. + + + :param password: The password of this User. # noqa: E501 + :type: str + """ + + self._password = password + + @property + def properties(self): + """Gets the properties of this User. # noqa: E501 + + + :return: The properties of this User. # noqa: E501 + :rtype: Properties + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this User. + + + :param properties: The properties of this User. # noqa: E501 + :type: Properties + """ + + self._properties = properties + + @property + def realm(self): + """Gets the realm of this User. # noqa: E501 + + + :return: The realm of this User. # noqa: E501 + :rtype: str + """ + return self._realm + + @realm.setter + def realm(self, realm): + """Sets the realm of this User. + + + :param realm: The realm of this User. # noqa: E501 + :type: str + """ + + self._realm = realm + + @property + def roles(self): + """Gets the roles of this User. # noqa: E501 + + + :return: The roles of this User. # noqa: E501 + :rtype: Roles + """ + return self._roles + + @roles.setter + def roles(self, roles): + """Sets the roles of this User. + + + :param roles: The roles of this User. # noqa: E501 + :type: Roles + """ + + self._roles = roles + + @property + def username(self): + """Gets the username of this User. # noqa: E501 + + + :return: The username of this User. # noqa: E501 + :rtype: str + """ + return self._username + + @username.setter + def username(self, username): + """Sets the username of this User. + + + :param username: The username of this User. # noqa: E501 + :type: str + """ + + self._username = username + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(User, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, User): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/users.py b/swagger_client/models/users.py new file mode 100644 index 0000000..c0a1c40 --- /dev/null +++ b/swagger_client/models/users.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.user import User # noqa: F401,E501 + + +class Users(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'user': 'list[User]' + } + + attribute_map = { + 'count': 'count', + 'user': 'user' + } + + def __init__(self, count=None, user=None): # noqa: E501 + """Users - a model defined in Swagger""" # noqa: E501 + + self._count = None + self._user = None + self.discriminator = None + + if count is not None: + self.count = count + if user is not None: + self.user = user + + @property + def count(self): + """Gets the count of this Users. # noqa: E501 + + + :return: The count of this Users. # noqa: E501 + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this Users. + + + :param count: The count of this Users. # noqa: E501 + :type: int + """ + + self._count = count + + @property + def user(self): + """Gets the user of this Users. # noqa: E501 + + + :return: The user of this Users. # noqa: E501 + :rtype: list[User] + """ + return self._user + + @user.setter + def user(self, user): + """Sets the user of this Users. + + + :param user: The user of this Users. # noqa: E501 + :type: list[User] + """ + + self._user = user + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Users, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Users): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/vcs_check_status.py b/swagger_client/models/vcs_check_status.py new file mode 100644 index 0000000..8341ad6 --- /dev/null +++ b/swagger_client/models/vcs_check_status.py @@ -0,0 +1,167 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class VcsCheckStatus(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'requestor_type': 'str', + 'status': 'str', + 'timestamp': 'str' + } + + attribute_map = { + 'requestor_type': 'requestorType', + 'status': 'status', + 'timestamp': 'timestamp' + } + + def __init__(self, requestor_type=None, status=None, timestamp=None): # noqa: E501 + """VcsCheckStatus - a model defined in Swagger""" # noqa: E501 + + self._requestor_type = None + self._status = None + self._timestamp = None + self.discriminator = None + + if requestor_type is not None: + self.requestor_type = requestor_type + if status is not None: + self.status = status + if timestamp is not None: + self.timestamp = timestamp + + @property + def requestor_type(self): + """Gets the requestor_type of this VcsCheckStatus. # noqa: E501 + + + :return: The requestor_type of this VcsCheckStatus. # noqa: E501 + :rtype: str + """ + return self._requestor_type + + @requestor_type.setter + def requestor_type(self, requestor_type): + """Sets the requestor_type of this VcsCheckStatus. + + + :param requestor_type: The requestor_type of this VcsCheckStatus. # noqa: E501 + :type: str + """ + + self._requestor_type = requestor_type + + @property + def status(self): + """Gets the status of this VcsCheckStatus. # noqa: E501 + + + :return: The status of this VcsCheckStatus. # noqa: E501 + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this VcsCheckStatus. + + + :param status: The status of this VcsCheckStatus. # noqa: E501 + :type: str + """ + + self._status = status + + @property + def timestamp(self): + """Gets the timestamp of this VcsCheckStatus. # noqa: E501 + + + :return: The timestamp of this VcsCheckStatus. # noqa: E501 + :rtype: str + """ + return self._timestamp + + @timestamp.setter + def timestamp(self, timestamp): + """Sets the timestamp of this VcsCheckStatus. + + + :param timestamp: The timestamp of this VcsCheckStatus. # noqa: E501 + :type: str + """ + + self._timestamp = timestamp + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(VcsCheckStatus, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, VcsCheckStatus): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/vcs_labeling.py b/swagger_client/models/vcs_labeling.py new file mode 100644 index 0000000..e149ec0 --- /dev/null +++ b/swagger_client/models/vcs_labeling.py @@ -0,0 +1,195 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.vcs_roots import VcsRoots # noqa: F401,E501 + + +class VcsLabeling(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'branch_filter': 'str', + 'label_name': 'str', + 'type': 'str', + 'vcs_roots': 'VcsRoots' + } + + attribute_map = { + 'branch_filter': 'branchFilter', + 'label_name': 'labelName', + 'type': 'type', + 'vcs_roots': 'vcsRoots' + } + + def __init__(self, branch_filter=None, label_name=None, type=None, vcs_roots=None): # noqa: E501 + """VcsLabeling - a model defined in Swagger""" # noqa: E501 + + self._branch_filter = None + self._label_name = None + self._type = None + self._vcs_roots = None + self.discriminator = None + + if branch_filter is not None: + self.branch_filter = branch_filter + if label_name is not None: + self.label_name = label_name + if type is not None: + self.type = type + if vcs_roots is not None: + self.vcs_roots = vcs_roots + + @property + def branch_filter(self): + """Gets the branch_filter of this VcsLabeling. # noqa: E501 + + + :return: The branch_filter of this VcsLabeling. # noqa: E501 + :rtype: str + """ + return self._branch_filter + + @branch_filter.setter + def branch_filter(self, branch_filter): + """Sets the branch_filter of this VcsLabeling. + + + :param branch_filter: The branch_filter of this VcsLabeling. # noqa: E501 + :type: str + """ + + self._branch_filter = branch_filter + + @property + def label_name(self): + """Gets the label_name of this VcsLabeling. # noqa: E501 + + + :return: The label_name of this VcsLabeling. # noqa: E501 + :rtype: str + """ + return self._label_name + + @label_name.setter + def label_name(self, label_name): + """Sets the label_name of this VcsLabeling. + + + :param label_name: The label_name of this VcsLabeling. # noqa: E501 + :type: str + """ + + self._label_name = label_name + + @property + def type(self): + """Gets the type of this VcsLabeling. # noqa: E501 + + + :return: The type of this VcsLabeling. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this VcsLabeling. + + + :param type: The type of this VcsLabeling. # noqa: E501 + :type: str + """ + + self._type = type + + @property + def vcs_roots(self): + """Gets the vcs_roots of this VcsLabeling. # noqa: E501 + + + :return: The vcs_roots of this VcsLabeling. # noqa: E501 + :rtype: VcsRoots + """ + return self._vcs_roots + + @vcs_roots.setter + def vcs_roots(self, vcs_roots): + """Sets the vcs_roots of this VcsLabeling. + + + :param vcs_roots: The vcs_roots of this VcsLabeling. # noqa: E501 + :type: VcsRoots + """ + + self._vcs_roots = vcs_roots + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(VcsLabeling, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, VcsLabeling): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/vcs_root.py b/swagger_client/models/vcs_root.py new file mode 100644 index 0000000..1b2a492 --- /dev/null +++ b/swagger_client/models/vcs_root.py @@ -0,0 +1,432 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.items import Items # noqa: F401,E501 +from swagger_client.models.project import Project # noqa: F401,E501 +from swagger_client.models.properties import Properties # noqa: F401,E501 +from swagger_client.models.vcs_root_instances import VcsRootInstances # noqa: F401,E501 + + +class VcsRoot(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'href': 'str', + 'id': 'str', + 'internal_id': 'str', + 'locator': 'str', + 'modification_check_interval': 'int', + 'name': 'str', + 'project': 'Project', + 'project_locator': 'str', + 'properties': 'Properties', + 'repository_id_strings': 'Items', + 'uuid': 'str', + 'vcs_name': 'str', + 'vcs_root_instances': 'VcsRootInstances' + } + + attribute_map = { + 'href': 'href', + 'id': 'id', + 'internal_id': 'internalId', + 'locator': 'locator', + 'modification_check_interval': 'modificationCheckInterval', + 'name': 'name', + 'project': 'project', + 'project_locator': 'projectLocator', + 'properties': 'properties', + 'repository_id_strings': 'repositoryIdStrings', + 'uuid': 'uuid', + 'vcs_name': 'vcsName', + 'vcs_root_instances': 'vcsRootInstances' + } + + def __init__(self, href=None, id=None, internal_id=None, locator=None, modification_check_interval=None, name=None, project=None, project_locator=None, properties=None, repository_id_strings=None, uuid=None, vcs_name=None, vcs_root_instances=None): # noqa: E501 + """VcsRoot - a model defined in Swagger""" # noqa: E501 + + self._href = None + self._id = None + self._internal_id = None + self._locator = None + self._modification_check_interval = None + self._name = None + self._project = None + self._project_locator = None + self._properties = None + self._repository_id_strings = None + self._uuid = None + self._vcs_name = None + self._vcs_root_instances = None + self.discriminator = None + + if href is not None: + self.href = href + if id is not None: + self.id = id + if internal_id is not None: + self.internal_id = internal_id + if locator is not None: + self.locator = locator + if modification_check_interval is not None: + self.modification_check_interval = modification_check_interval + if name is not None: + self.name = name + if project is not None: + self.project = project + if project_locator is not None: + self.project_locator = project_locator + if properties is not None: + self.properties = properties + if repository_id_strings is not None: + self.repository_id_strings = repository_id_strings + if uuid is not None: + self.uuid = uuid + if vcs_name is not None: + self.vcs_name = vcs_name + if vcs_root_instances is not None: + self.vcs_root_instances = vcs_root_instances + + @property + def href(self): + """Gets the href of this VcsRoot. # noqa: E501 + + + :return: The href of this VcsRoot. # noqa: E501 + :rtype: str + """ + return self._href + + @href.setter + def href(self, href): + """Sets the href of this VcsRoot. + + + :param href: The href of this VcsRoot. # noqa: E501 + :type: str + """ + + self._href = href + + @property + def id(self): + """Gets the id of this VcsRoot. # noqa: E501 + + + :return: The id of this VcsRoot. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this VcsRoot. + + + :param id: The id of this VcsRoot. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def internal_id(self): + """Gets the internal_id of this VcsRoot. # noqa: E501 + + + :return: The internal_id of this VcsRoot. # noqa: E501 + :rtype: str + """ + return self._internal_id + + @internal_id.setter + def internal_id(self, internal_id): + """Sets the internal_id of this VcsRoot. + + + :param internal_id: The internal_id of this VcsRoot. # noqa: E501 + :type: str + """ + + self._internal_id = internal_id + + @property + def locator(self): + """Gets the locator of this VcsRoot. # noqa: E501 + + + :return: The locator of this VcsRoot. # noqa: E501 + :rtype: str + """ + return self._locator + + @locator.setter + def locator(self, locator): + """Sets the locator of this VcsRoot. + + + :param locator: The locator of this VcsRoot. # noqa: E501 + :type: str + """ + + self._locator = locator + + @property + def modification_check_interval(self): + """Gets the modification_check_interval of this VcsRoot. # noqa: E501 + + + :return: The modification_check_interval of this VcsRoot. # noqa: E501 + :rtype: int + """ + return self._modification_check_interval + + @modification_check_interval.setter + def modification_check_interval(self, modification_check_interval): + """Sets the modification_check_interval of this VcsRoot. + + + :param modification_check_interval: The modification_check_interval of this VcsRoot. # noqa: E501 + :type: int + """ + + self._modification_check_interval = modification_check_interval + + @property + def name(self): + """Gets the name of this VcsRoot. # noqa: E501 + + + :return: The name of this VcsRoot. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this VcsRoot. + + + :param name: The name of this VcsRoot. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def project(self): + """Gets the project of this VcsRoot. # noqa: E501 + + + :return: The project of this VcsRoot. # noqa: E501 + :rtype: Project + """ + return self._project + + @project.setter + def project(self, project): + """Sets the project of this VcsRoot. + + + :param project: The project of this VcsRoot. # noqa: E501 + :type: Project + """ + + self._project = project + + @property + def project_locator(self): + """Gets the project_locator of this VcsRoot. # noqa: E501 + + + :return: The project_locator of this VcsRoot. # noqa: E501 + :rtype: str + """ + return self._project_locator + + @project_locator.setter + def project_locator(self, project_locator): + """Sets the project_locator of this VcsRoot. + + + :param project_locator: The project_locator of this VcsRoot. # noqa: E501 + :type: str + """ + + self._project_locator = project_locator + + @property + def properties(self): + """Gets the properties of this VcsRoot. # noqa: E501 + + + :return: The properties of this VcsRoot. # noqa: E501 + :rtype: Properties + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this VcsRoot. + + + :param properties: The properties of this VcsRoot. # noqa: E501 + :type: Properties + """ + + self._properties = properties + + @property + def repository_id_strings(self): + """Gets the repository_id_strings of this VcsRoot. # noqa: E501 + + + :return: The repository_id_strings of this VcsRoot. # noqa: E501 + :rtype: Items + """ + return self._repository_id_strings + + @repository_id_strings.setter + def repository_id_strings(self, repository_id_strings): + """Sets the repository_id_strings of this VcsRoot. + + + :param repository_id_strings: The repository_id_strings of this VcsRoot. # noqa: E501 + :type: Items + """ + + self._repository_id_strings = repository_id_strings + + @property + def uuid(self): + """Gets the uuid of this VcsRoot. # noqa: E501 + + + :return: The uuid of this VcsRoot. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this VcsRoot. + + + :param uuid: The uuid of this VcsRoot. # noqa: E501 + :type: str + """ + + self._uuid = uuid + + @property + def vcs_name(self): + """Gets the vcs_name of this VcsRoot. # noqa: E501 + + + :return: The vcs_name of this VcsRoot. # noqa: E501 + :rtype: str + """ + return self._vcs_name + + @vcs_name.setter + def vcs_name(self, vcs_name): + """Sets the vcs_name of this VcsRoot. + + + :param vcs_name: The vcs_name of this VcsRoot. # noqa: E501 + :type: str + """ + + self._vcs_name = vcs_name + + @property + def vcs_root_instances(self): + """Gets the vcs_root_instances of this VcsRoot. # noqa: E501 + + + :return: The vcs_root_instances of this VcsRoot. # noqa: E501 + :rtype: VcsRootInstances + """ + return self._vcs_root_instances + + @vcs_root_instances.setter + def vcs_root_instances(self, vcs_root_instances): + """Sets the vcs_root_instances of this VcsRoot. + + + :param vcs_root_instances: The vcs_root_instances of this VcsRoot. # noqa: E501 + :type: VcsRootInstances + """ + + self._vcs_root_instances = vcs_root_instances + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(VcsRoot, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, VcsRoot): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/vcs_root_entries.py b/swagger_client/models/vcs_root_entries.py new file mode 100644 index 0000000..6bcf39e --- /dev/null +++ b/swagger_client/models/vcs_root_entries.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.vcs_root_entry import VcsRootEntry # noqa: F401,E501 + + +class VcsRootEntries(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'vcs_root_entry': 'list[VcsRootEntry]' + } + + attribute_map = { + 'count': 'count', + 'vcs_root_entry': 'vcs-root-entry' + } + + def __init__(self, count=None, vcs_root_entry=None): # noqa: E501 + """VcsRootEntries - a model defined in Swagger""" # noqa: E501 + + self._count = None + self._vcs_root_entry = None + self.discriminator = None + + if count is not None: + self.count = count + if vcs_root_entry is not None: + self.vcs_root_entry = vcs_root_entry + + @property + def count(self): + """Gets the count of this VcsRootEntries. # noqa: E501 + + + :return: The count of this VcsRootEntries. # noqa: E501 + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this VcsRootEntries. + + + :param count: The count of this VcsRootEntries. # noqa: E501 + :type: int + """ + + self._count = count + + @property + def vcs_root_entry(self): + """Gets the vcs_root_entry of this VcsRootEntries. # noqa: E501 + + + :return: The vcs_root_entry of this VcsRootEntries. # noqa: E501 + :rtype: list[VcsRootEntry] + """ + return self._vcs_root_entry + + @vcs_root_entry.setter + def vcs_root_entry(self, vcs_root_entry): + """Sets the vcs_root_entry of this VcsRootEntries. + + + :param vcs_root_entry: The vcs_root_entry of this VcsRootEntries. # noqa: E501 + :type: list[VcsRootEntry] + """ + + self._vcs_root_entry = vcs_root_entry + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(VcsRootEntries, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, VcsRootEntries): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/vcs_root_entry.py b/swagger_client/models/vcs_root_entry.py new file mode 100644 index 0000000..d3945d8 --- /dev/null +++ b/swagger_client/models/vcs_root_entry.py @@ -0,0 +1,195 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.vcs_root import VcsRoot # noqa: F401,E501 + + +class VcsRootEntry(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'checkout_rules': 'str', + 'id': 'str', + 'inherited': 'bool', + 'vcs_root': 'VcsRoot' + } + + attribute_map = { + 'checkout_rules': 'checkout-rules', + 'id': 'id', + 'inherited': 'inherited', + 'vcs_root': 'vcs-root' + } + + def __init__(self, checkout_rules=None, id=None, inherited=False, vcs_root=None): # noqa: E501 + """VcsRootEntry - a model defined in Swagger""" # noqa: E501 + + self._checkout_rules = None + self._id = None + self._inherited = None + self._vcs_root = None + self.discriminator = None + + if checkout_rules is not None: + self.checkout_rules = checkout_rules + if id is not None: + self.id = id + if inherited is not None: + self.inherited = inherited + if vcs_root is not None: + self.vcs_root = vcs_root + + @property + def checkout_rules(self): + """Gets the checkout_rules of this VcsRootEntry. # noqa: E501 + + + :return: The checkout_rules of this VcsRootEntry. # noqa: E501 + :rtype: str + """ + return self._checkout_rules + + @checkout_rules.setter + def checkout_rules(self, checkout_rules): + """Sets the checkout_rules of this VcsRootEntry. + + + :param checkout_rules: The checkout_rules of this VcsRootEntry. # noqa: E501 + :type: str + """ + + self._checkout_rules = checkout_rules + + @property + def id(self): + """Gets the id of this VcsRootEntry. # noqa: E501 + + + :return: The id of this VcsRootEntry. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this VcsRootEntry. + + + :param id: The id of this VcsRootEntry. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def inherited(self): + """Gets the inherited of this VcsRootEntry. # noqa: E501 + + + :return: The inherited of this VcsRootEntry. # noqa: E501 + :rtype: bool + """ + return self._inherited + + @inherited.setter + def inherited(self, inherited): + """Sets the inherited of this VcsRootEntry. + + + :param inherited: The inherited of this VcsRootEntry. # noqa: E501 + :type: bool + """ + + self._inherited = inherited + + @property + def vcs_root(self): + """Gets the vcs_root of this VcsRootEntry. # noqa: E501 + + + :return: The vcs_root of this VcsRootEntry. # noqa: E501 + :rtype: VcsRoot + """ + return self._vcs_root + + @vcs_root.setter + def vcs_root(self, vcs_root): + """Sets the vcs_root of this VcsRootEntry. + + + :param vcs_root: The vcs_root of this VcsRootEntry. # noqa: E501 + :type: VcsRoot + """ + + self._vcs_root = vcs_root + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(VcsRootEntry, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, VcsRootEntry): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/vcs_root_instance.py b/swagger_client/models/vcs_root_instance.py new file mode 100644 index 0000000..6e85906 --- /dev/null +++ b/swagger_client/models/vcs_root_instance.py @@ -0,0 +1,511 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.items import Items # noqa: F401,E501 +from swagger_client.models.properties import Properties # noqa: F401,E501 +from swagger_client.models.repository_state import RepositoryState # noqa: F401,E501 +from swagger_client.models.vcs_root import VcsRoot # noqa: F401,E501 +from swagger_client.models.vcs_status import VcsStatus # noqa: F401,E501 + + +class VcsRootInstance(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'commit_hook_mode': 'bool', + 'href': 'str', + 'id': 'str', + 'last_version': 'str', + 'last_version_internal': 'str', + 'modification_check_interval': 'int', + 'name': 'str', + 'project_locator': 'str', + 'properties': 'Properties', + 'repository_id_strings': 'Items', + 'repository_state': 'RepositoryState', + 'status': 'VcsStatus', + 'vcs_root': 'VcsRoot', + 'vcs_root_id': 'str', + 'vcs_name': 'str', + 'vcs_root_internal_id': 'str' + } + + attribute_map = { + 'commit_hook_mode': 'commitHookMode', + 'href': 'href', + 'id': 'id', + 'last_version': 'lastVersion', + 'last_version_internal': 'lastVersionInternal', + 'modification_check_interval': 'modificationCheckInterval', + 'name': 'name', + 'project_locator': 'projectLocator', + 'properties': 'properties', + 'repository_id_strings': 'repositoryIdStrings', + 'repository_state': 'repositoryState', + 'status': 'status', + 'vcs_root': 'vcs-root', + 'vcs_root_id': 'vcs-root-id', + 'vcs_name': 'vcsName', + 'vcs_root_internal_id': 'vcsRootInternalId' + } + + def __init__(self, commit_hook_mode=False, href=None, id=None, last_version=None, last_version_internal=None, modification_check_interval=None, name=None, project_locator=None, properties=None, repository_id_strings=None, repository_state=None, status=None, vcs_root=None, vcs_root_id=None, vcs_name=None, vcs_root_internal_id=None): # noqa: E501 + """VcsRootInstance - a model defined in Swagger""" # noqa: E501 + + self._commit_hook_mode = None + self._href = None + self._id = None + self._last_version = None + self._last_version_internal = None + self._modification_check_interval = None + self._name = None + self._project_locator = None + self._properties = None + self._repository_id_strings = None + self._repository_state = None + self._status = None + self._vcs_root = None + self._vcs_root_id = None + self._vcs_name = None + self._vcs_root_internal_id = None + self.discriminator = None + + if commit_hook_mode is not None: + self.commit_hook_mode = commit_hook_mode + if href is not None: + self.href = href + if id is not None: + self.id = id + if last_version is not None: + self.last_version = last_version + if last_version_internal is not None: + self.last_version_internal = last_version_internal + if modification_check_interval is not None: + self.modification_check_interval = modification_check_interval + if name is not None: + self.name = name + if project_locator is not None: + self.project_locator = project_locator + if properties is not None: + self.properties = properties + if repository_id_strings is not None: + self.repository_id_strings = repository_id_strings + if repository_state is not None: + self.repository_state = repository_state + if status is not None: + self.status = status + if vcs_root is not None: + self.vcs_root = vcs_root + if vcs_root_id is not None: + self.vcs_root_id = vcs_root_id + if vcs_name is not None: + self.vcs_name = vcs_name + if vcs_root_internal_id is not None: + self.vcs_root_internal_id = vcs_root_internal_id + + @property + def commit_hook_mode(self): + """Gets the commit_hook_mode of this VcsRootInstance. # noqa: E501 + + + :return: The commit_hook_mode of this VcsRootInstance. # noqa: E501 + :rtype: bool + """ + return self._commit_hook_mode + + @commit_hook_mode.setter + def commit_hook_mode(self, commit_hook_mode): + """Sets the commit_hook_mode of this VcsRootInstance. + + + :param commit_hook_mode: The commit_hook_mode of this VcsRootInstance. # noqa: E501 + :type: bool + """ + + self._commit_hook_mode = commit_hook_mode + + @property + def href(self): + """Gets the href of this VcsRootInstance. # noqa: E501 + + + :return: The href of this VcsRootInstance. # noqa: E501 + :rtype: str + """ + return self._href + + @href.setter + def href(self, href): + """Sets the href of this VcsRootInstance. + + + :param href: The href of this VcsRootInstance. # noqa: E501 + :type: str + """ + + self._href = href + + @property + def id(self): + """Gets the id of this VcsRootInstance. # noqa: E501 + + + :return: The id of this VcsRootInstance. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this VcsRootInstance. + + + :param id: The id of this VcsRootInstance. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def last_version(self): + """Gets the last_version of this VcsRootInstance. # noqa: E501 + + + :return: The last_version of this VcsRootInstance. # noqa: E501 + :rtype: str + """ + return self._last_version + + @last_version.setter + def last_version(self, last_version): + """Sets the last_version of this VcsRootInstance. + + + :param last_version: The last_version of this VcsRootInstance. # noqa: E501 + :type: str + """ + + self._last_version = last_version + + @property + def last_version_internal(self): + """Gets the last_version_internal of this VcsRootInstance. # noqa: E501 + + + :return: The last_version_internal of this VcsRootInstance. # noqa: E501 + :rtype: str + """ + return self._last_version_internal + + @last_version_internal.setter + def last_version_internal(self, last_version_internal): + """Sets the last_version_internal of this VcsRootInstance. + + + :param last_version_internal: The last_version_internal of this VcsRootInstance. # noqa: E501 + :type: str + """ + + self._last_version_internal = last_version_internal + + @property + def modification_check_interval(self): + """Gets the modification_check_interval of this VcsRootInstance. # noqa: E501 + + + :return: The modification_check_interval of this VcsRootInstance. # noqa: E501 + :rtype: int + """ + return self._modification_check_interval + + @modification_check_interval.setter + def modification_check_interval(self, modification_check_interval): + """Sets the modification_check_interval of this VcsRootInstance. + + + :param modification_check_interval: The modification_check_interval of this VcsRootInstance. # noqa: E501 + :type: int + """ + + self._modification_check_interval = modification_check_interval + + @property + def name(self): + """Gets the name of this VcsRootInstance. # noqa: E501 + + + :return: The name of this VcsRootInstance. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this VcsRootInstance. + + + :param name: The name of this VcsRootInstance. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def project_locator(self): + """Gets the project_locator of this VcsRootInstance. # noqa: E501 + + + :return: The project_locator of this VcsRootInstance. # noqa: E501 + :rtype: str + """ + return self._project_locator + + @project_locator.setter + def project_locator(self, project_locator): + """Sets the project_locator of this VcsRootInstance. + + + :param project_locator: The project_locator of this VcsRootInstance. # noqa: E501 + :type: str + """ + + self._project_locator = project_locator + + @property + def properties(self): + """Gets the properties of this VcsRootInstance. # noqa: E501 + + + :return: The properties of this VcsRootInstance. # noqa: E501 + :rtype: Properties + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this VcsRootInstance. + + + :param properties: The properties of this VcsRootInstance. # noqa: E501 + :type: Properties + """ + + self._properties = properties + + @property + def repository_id_strings(self): + """Gets the repository_id_strings of this VcsRootInstance. # noqa: E501 + + + :return: The repository_id_strings of this VcsRootInstance. # noqa: E501 + :rtype: Items + """ + return self._repository_id_strings + + @repository_id_strings.setter + def repository_id_strings(self, repository_id_strings): + """Sets the repository_id_strings of this VcsRootInstance. + + + :param repository_id_strings: The repository_id_strings of this VcsRootInstance. # noqa: E501 + :type: Items + """ + + self._repository_id_strings = repository_id_strings + + @property + def repository_state(self): + """Gets the repository_state of this VcsRootInstance. # noqa: E501 + + + :return: The repository_state of this VcsRootInstance. # noqa: E501 + :rtype: RepositoryState + """ + return self._repository_state + + @repository_state.setter + def repository_state(self, repository_state): + """Sets the repository_state of this VcsRootInstance. + + + :param repository_state: The repository_state of this VcsRootInstance. # noqa: E501 + :type: RepositoryState + """ + + self._repository_state = repository_state + + @property + def status(self): + """Gets the status of this VcsRootInstance. # noqa: E501 + + + :return: The status of this VcsRootInstance. # noqa: E501 + :rtype: VcsStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this VcsRootInstance. + + + :param status: The status of this VcsRootInstance. # noqa: E501 + :type: VcsStatus + """ + + self._status = status + + @property + def vcs_root(self): + """Gets the vcs_root of this VcsRootInstance. # noqa: E501 + + + :return: The vcs_root of this VcsRootInstance. # noqa: E501 + :rtype: VcsRoot + """ + return self._vcs_root + + @vcs_root.setter + def vcs_root(self, vcs_root): + """Sets the vcs_root of this VcsRootInstance. + + + :param vcs_root: The vcs_root of this VcsRootInstance. # noqa: E501 + :type: VcsRoot + """ + + self._vcs_root = vcs_root + + @property + def vcs_root_id(self): + """Gets the vcs_root_id of this VcsRootInstance. # noqa: E501 + + + :return: The vcs_root_id of this VcsRootInstance. # noqa: E501 + :rtype: str + """ + return self._vcs_root_id + + @vcs_root_id.setter + def vcs_root_id(self, vcs_root_id): + """Sets the vcs_root_id of this VcsRootInstance. + + + :param vcs_root_id: The vcs_root_id of this VcsRootInstance. # noqa: E501 + :type: str + """ + + self._vcs_root_id = vcs_root_id + + @property + def vcs_name(self): + """Gets the vcs_name of this VcsRootInstance. # noqa: E501 + + + :return: The vcs_name of this VcsRootInstance. # noqa: E501 + :rtype: str + """ + return self._vcs_name + + @vcs_name.setter + def vcs_name(self, vcs_name): + """Sets the vcs_name of this VcsRootInstance. + + + :param vcs_name: The vcs_name of this VcsRootInstance. # noqa: E501 + :type: str + """ + + self._vcs_name = vcs_name + + @property + def vcs_root_internal_id(self): + """Gets the vcs_root_internal_id of this VcsRootInstance. # noqa: E501 + + + :return: The vcs_root_internal_id of this VcsRootInstance. # noqa: E501 + :rtype: str + """ + return self._vcs_root_internal_id + + @vcs_root_internal_id.setter + def vcs_root_internal_id(self, vcs_root_internal_id): + """Sets the vcs_root_internal_id of this VcsRootInstance. + + + :param vcs_root_internal_id: The vcs_root_internal_id of this VcsRootInstance. # noqa: E501 + :type: str + """ + + self._vcs_root_internal_id = vcs_root_internal_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(VcsRootInstance, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, VcsRootInstance): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/vcs_root_instances.py b/swagger_client/models/vcs_root_instances.py new file mode 100644 index 0000000..e4055ba --- /dev/null +++ b/swagger_client/models/vcs_root_instances.py @@ -0,0 +1,221 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.vcs_root_instance import VcsRootInstance # noqa: F401,E501 + + +class VcsRootInstances(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'href': 'str', + 'next_href': 'str', + 'prev_href': 'str', + 'vcs_root_instance': 'list[VcsRootInstance]' + } + + attribute_map = { + 'count': 'count', + 'href': 'href', + 'next_href': 'nextHref', + 'prev_href': 'prevHref', + 'vcs_root_instance': 'vcs-root-instance' + } + + def __init__(self, count=None, href=None, next_href=None, prev_href=None, vcs_root_instance=None): # noqa: E501 + """VcsRootInstances - a model defined in Swagger""" # noqa: E501 + + self._count = None + self._href = None + self._next_href = None + self._prev_href = None + self._vcs_root_instance = None + self.discriminator = None + + if count is not None: + self.count = count + if href is not None: + self.href = href + if next_href is not None: + self.next_href = next_href + if prev_href is not None: + self.prev_href = prev_href + if vcs_root_instance is not None: + self.vcs_root_instance = vcs_root_instance + + @property + def count(self): + """Gets the count of this VcsRootInstances. # noqa: E501 + + + :return: The count of this VcsRootInstances. # noqa: E501 + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this VcsRootInstances. + + + :param count: The count of this VcsRootInstances. # noqa: E501 + :type: int + """ + + self._count = count + + @property + def href(self): + """Gets the href of this VcsRootInstances. # noqa: E501 + + + :return: The href of this VcsRootInstances. # noqa: E501 + :rtype: str + """ + return self._href + + @href.setter + def href(self, href): + """Sets the href of this VcsRootInstances. + + + :param href: The href of this VcsRootInstances. # noqa: E501 + :type: str + """ + + self._href = href + + @property + def next_href(self): + """Gets the next_href of this VcsRootInstances. # noqa: E501 + + + :return: The next_href of this VcsRootInstances. # noqa: E501 + :rtype: str + """ + return self._next_href + + @next_href.setter + def next_href(self, next_href): + """Sets the next_href of this VcsRootInstances. + + + :param next_href: The next_href of this VcsRootInstances. # noqa: E501 + :type: str + """ + + self._next_href = next_href + + @property + def prev_href(self): + """Gets the prev_href of this VcsRootInstances. # noqa: E501 + + + :return: The prev_href of this VcsRootInstances. # noqa: E501 + :rtype: str + """ + return self._prev_href + + @prev_href.setter + def prev_href(self, prev_href): + """Sets the prev_href of this VcsRootInstances. + + + :param prev_href: The prev_href of this VcsRootInstances. # noqa: E501 + :type: str + """ + + self._prev_href = prev_href + + @property + def vcs_root_instance(self): + """Gets the vcs_root_instance of this VcsRootInstances. # noqa: E501 + + + :return: The vcs_root_instance of this VcsRootInstances. # noqa: E501 + :rtype: list[VcsRootInstance] + """ + return self._vcs_root_instance + + @vcs_root_instance.setter + def vcs_root_instance(self, vcs_root_instance): + """Sets the vcs_root_instance of this VcsRootInstances. + + + :param vcs_root_instance: The vcs_root_instance of this VcsRootInstances. # noqa: E501 + :type: list[VcsRootInstance] + """ + + self._vcs_root_instance = vcs_root_instance + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(VcsRootInstances, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, VcsRootInstances): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/vcs_roots.py b/swagger_client/models/vcs_roots.py new file mode 100644 index 0000000..ccd1789 --- /dev/null +++ b/swagger_client/models/vcs_roots.py @@ -0,0 +1,221 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.vcs_root import VcsRoot # noqa: F401,E501 + + +class VcsRoots(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'href': 'str', + 'next_href': 'str', + 'prev_href': 'str', + 'vcs_root': 'list[VcsRoot]' + } + + attribute_map = { + 'count': 'count', + 'href': 'href', + 'next_href': 'nextHref', + 'prev_href': 'prevHref', + 'vcs_root': 'vcs-root' + } + + def __init__(self, count=None, href=None, next_href=None, prev_href=None, vcs_root=None): # noqa: E501 + """VcsRoots - a model defined in Swagger""" # noqa: E501 + + self._count = None + self._href = None + self._next_href = None + self._prev_href = None + self._vcs_root = None + self.discriminator = None + + if count is not None: + self.count = count + if href is not None: + self.href = href + if next_href is not None: + self.next_href = next_href + if prev_href is not None: + self.prev_href = prev_href + if vcs_root is not None: + self.vcs_root = vcs_root + + @property + def count(self): + """Gets the count of this VcsRoots. # noqa: E501 + + + :return: The count of this VcsRoots. # noqa: E501 + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this VcsRoots. + + + :param count: The count of this VcsRoots. # noqa: E501 + :type: int + """ + + self._count = count + + @property + def href(self): + """Gets the href of this VcsRoots. # noqa: E501 + + + :return: The href of this VcsRoots. # noqa: E501 + :rtype: str + """ + return self._href + + @href.setter + def href(self, href): + """Sets the href of this VcsRoots. + + + :param href: The href of this VcsRoots. # noqa: E501 + :type: str + """ + + self._href = href + + @property + def next_href(self): + """Gets the next_href of this VcsRoots. # noqa: E501 + + + :return: The next_href of this VcsRoots. # noqa: E501 + :rtype: str + """ + return self._next_href + + @next_href.setter + def next_href(self, next_href): + """Sets the next_href of this VcsRoots. + + + :param next_href: The next_href of this VcsRoots. # noqa: E501 + :type: str + """ + + self._next_href = next_href + + @property + def prev_href(self): + """Gets the prev_href of this VcsRoots. # noqa: E501 + + + :return: The prev_href of this VcsRoots. # noqa: E501 + :rtype: str + """ + return self._prev_href + + @prev_href.setter + def prev_href(self, prev_href): + """Sets the prev_href of this VcsRoots. + + + :param prev_href: The prev_href of this VcsRoots. # noqa: E501 + :type: str + """ + + self._prev_href = prev_href + + @property + def vcs_root(self): + """Gets the vcs_root of this VcsRoots. # noqa: E501 + + + :return: The vcs_root of this VcsRoots. # noqa: E501 + :rtype: list[VcsRoot] + """ + return self._vcs_root + + @vcs_root.setter + def vcs_root(self, vcs_root): + """Sets the vcs_root of this VcsRoots. + + + :param vcs_root: The vcs_root of this VcsRoots. # noqa: E501 + :type: list[VcsRoot] + """ + + self._vcs_root = vcs_root + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(VcsRoots, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, VcsRoots): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/vcs_status.py b/swagger_client/models/vcs_status.py new file mode 100644 index 0000000..95f7548 --- /dev/null +++ b/swagger_client/models/vcs_status.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from swagger_client.models.vcs_check_status import VcsCheckStatus # noqa: F401,E501 + + +class VcsStatus(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'current': 'VcsCheckStatus', + 'previous': 'VcsCheckStatus' + } + + attribute_map = { + 'current': 'current', + 'previous': 'previous' + } + + def __init__(self, current=None, previous=None): # noqa: E501 + """VcsStatus - a model defined in Swagger""" # noqa: E501 + + self._current = None + self._previous = None + self.discriminator = None + + if current is not None: + self.current = current + if previous is not None: + self.previous = previous + + @property + def current(self): + """Gets the current of this VcsStatus. # noqa: E501 + + + :return: The current of this VcsStatus. # noqa: E501 + :rtype: VcsCheckStatus + """ + return self._current + + @current.setter + def current(self, current): + """Sets the current of this VcsStatus. + + + :param current: The current of this VcsStatus. # noqa: E501 + :type: VcsCheckStatus + """ + + self._current = current + + @property + def previous(self): + """Gets the previous of this VcsStatus. # noqa: E501 + + + :return: The previous of this VcsStatus. # noqa: E501 + :rtype: VcsCheckStatus + """ + return self._previous + + @previous.setter + def previous(self, previous): + """Sets the previous of this VcsStatus. + + + :param previous: The previous of this VcsStatus. # noqa: E501 + :type: VcsCheckStatus + """ + + self._previous = previous + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(VcsStatus, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, VcsStatus): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/rest.py b/swagger_client/rest.py new file mode 100644 index 0000000..6dae9bc --- /dev/null +++ b/swagger_client/rest.py @@ -0,0 +1,323 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import io +import json +import logging +import re +import ssl + +import certifi +# python 2 and python 3 compatibility library +import six +from six.moves.urllib.parse import urlencode + +try: + import urllib3 +except ImportError: + raise ImportError('Swagger python client requires urllib3.') + + +logger = logging.getLogger(__name__) + + +class RESTResponse(io.IOBase): + + def __init__(self, resp): + self.urllib3_response = resp + self.status = resp.status + self.reason = resp.reason + self.data = resp.data + + def getheaders(self): + """Returns a dictionary of the response headers.""" + return self.urllib3_response.getheaders() + + def getheader(self, name, default=None): + """Returns a given response header.""" + return self.urllib3_response.getheader(name, default) + + +class RESTClientObject(object): + + def __init__(self, configuration, pools_size=4, maxsize=None): + # urllib3.PoolManager will pass all kw parameters to connectionpool + # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/poolmanager.py#L75 # noqa: E501 + # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/connectionpool.py#L680 # noqa: E501 + # maxsize is the number of requests to host that are allowed in parallel # noqa: E501 + # Custom SSL certificates and client certificates: http://urllib3.readthedocs.io/en/latest/advanced-usage.html # noqa: E501 + + # cert_reqs + if configuration.verify_ssl: + cert_reqs = ssl.CERT_REQUIRED + else: + cert_reqs = ssl.CERT_NONE + + # ca_certs + if configuration.ssl_ca_cert: + ca_certs = configuration.ssl_ca_cert + else: + # if not set certificate file, use Mozilla's root certificates. + ca_certs = certifi.where() + + addition_pool_args = {} + if configuration.assert_hostname is not None: + addition_pool_args['assert_hostname'] = configuration.assert_hostname # noqa: E501 + + if maxsize is None: + if configuration.connection_pool_maxsize is not None: + maxsize = configuration.connection_pool_maxsize + else: + maxsize = 4 + + # https pool manager + if configuration.proxy: + self.pool_manager = urllib3.ProxyManager( + num_pools=pools_size, + maxsize=maxsize, + cert_reqs=cert_reqs, + ca_certs=ca_certs, + cert_file=configuration.cert_file, + key_file=configuration.key_file, + proxy_url=configuration.proxy, + **addition_pool_args + ) + else: + self.pool_manager = urllib3.PoolManager( + num_pools=pools_size, + maxsize=maxsize, + cert_reqs=cert_reqs, + ca_certs=ca_certs, + cert_file=configuration.cert_file, + key_file=configuration.key_file, + **addition_pool_args + ) + + def request(self, method, url, query_params=None, headers=None, + body=None, post_params=None, _preload_content=True, + _request_timeout=None): + """Perform requests. + + :param method: http request method + :param url: http request url + :param query_params: query parameters in the url + :param headers: http request headers + :param body: request json body, for `application/json` + :param post_params: request post parameters, + `application/x-www-form-urlencoded` + and `multipart/form-data` + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + """ + method = method.upper() + assert method in ['GET', 'HEAD', 'DELETE', 'POST', 'PUT', + 'PATCH', 'OPTIONS'] + + if post_params and body: + raise ValueError( + "body parameter cannot be used with post_params parameter." + ) + + post_params = post_params or {} + headers = headers or {} + + timeout = None + if _request_timeout: + if isinstance(_request_timeout, (int, ) if six.PY3 else (int, long)): # noqa: E501,F821 + timeout = urllib3.Timeout(total=_request_timeout) + elif (isinstance(_request_timeout, tuple) and + len(_request_timeout) == 2): + timeout = urllib3.Timeout( + connect=_request_timeout[0], read=_request_timeout[1]) + + if 'Content-Type' not in headers: + headers['Content-Type'] = 'application/json' + + try: + # For `POST`, `PUT`, `PATCH`, `OPTIONS`, `DELETE` + if method in ['POST', 'PUT', 'PATCH', 'OPTIONS', 'DELETE']: + if query_params: + url += '?' + urlencode(query_params) + if re.search('json', headers['Content-Type'], re.IGNORECASE): + request_body = None + if body is not None: + request_body = json.dumps(body) + r = self.pool_manager.request( + method, url, + body=request_body, + preload_content=_preload_content, + timeout=timeout, + headers=headers) + elif headers['Content-Type'] == 'application/x-www-form-urlencoded': # noqa: E501 + r = self.pool_manager.request( + method, url, + fields=post_params, + encode_multipart=False, + preload_content=_preload_content, + timeout=timeout, + headers=headers) + elif headers['Content-Type'] == 'multipart/form-data': + # must del headers['Content-Type'], or the correct + # Content-Type which generated by urllib3 will be + # overwritten. + del headers['Content-Type'] + r = self.pool_manager.request( + method, url, + fields=post_params, + encode_multipart=True, + preload_content=_preload_content, + timeout=timeout, + headers=headers) + # Pass a `string` parameter directly in the body to support + # other content types than Json when `body` argument is + # provided in serialized form + elif isinstance(body, str): + request_body = body + r = self.pool_manager.request( + method, url, + body=request_body, + preload_content=_preload_content, + timeout=timeout, + headers=headers) + else: + # Cannot generate the request from given parameters + msg = """Cannot prepare a request message for provided + arguments. Please check that your arguments match + declared content type.""" + raise ApiException(status=0, reason=msg) + # For `GET`, `HEAD` + else: + r = self.pool_manager.request(method, url, + fields=query_params, + preload_content=_preload_content, + timeout=timeout, + headers=headers) + except urllib3.exceptions.SSLError as e: + msg = "{0}\n{1}".format(type(e).__name__, str(e)) + raise ApiException(status=0, reason=msg) + + if _preload_content: + r = RESTResponse(r) + + # In the python 3, the response.data is bytes. + # we need to decode it to string. + if six.PY3: + r.data = r.data.decode('utf8') + + # log response body + logger.debug("response body: %s", r.data) + + if not 200 <= r.status <= 299: + raise ApiException(http_resp=r) + + return r + + def GET(self, url, headers=None, query_params=None, _preload_content=True, + _request_timeout=None): + return self.request("GET", url, + headers=headers, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + query_params=query_params) + + def HEAD(self, url, headers=None, query_params=None, _preload_content=True, + _request_timeout=None): + return self.request("HEAD", url, + headers=headers, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + query_params=query_params) + + def OPTIONS(self, url, headers=None, query_params=None, post_params=None, + body=None, _preload_content=True, _request_timeout=None): + return self.request("OPTIONS", url, + headers=headers, + query_params=query_params, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + + def DELETE(self, url, headers=None, query_params=None, body=None, + _preload_content=True, _request_timeout=None): + return self.request("DELETE", url, + headers=headers, + query_params=query_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + + def POST(self, url, headers=None, query_params=None, post_params=None, + body=None, _preload_content=True, _request_timeout=None): + return self.request("POST", url, + headers=headers, + query_params=query_params, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + + def PUT(self, url, headers=None, query_params=None, post_params=None, + body=None, _preload_content=True, _request_timeout=None): + return self.request("PUT", url, + headers=headers, + query_params=query_params, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + + def PATCH(self, url, headers=None, query_params=None, post_params=None, + body=None, _preload_content=True, _request_timeout=None): + return self.request("PATCH", url, + headers=headers, + query_params=query_params, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + + +class ApiException(Exception): + + def __init__(self, status=None, reason=None, http_resp=None): + if http_resp: + self.status = http_resp.status + self.reason = http_resp.reason + self.body = http_resp.data + self.headers = http_resp.getheaders() + else: + self.status = status + self.reason = reason + self.body = None + self.headers = None + + def __str__(self): + """Custom error messages for exception""" + error_message = "({0})\n"\ + "Reason: {1}\n".format(self.status, self.reason) + if self.headers: + error_message += "HTTP response headers: {0}\n".format( + self.headers) + + if self.body: + error_message += "HTTP response body: {0}\n".format(self.body) + + return error_message diff --git a/test-requirements.txt b/test-requirements.txt new file mode 100644 index 0000000..2702246 --- /dev/null +++ b/test-requirements.txt @@ -0,0 +1,5 @@ +coverage>=4.0.3 +nose>=1.3.7 +pluggy>=0.3.1 +py>=1.4.31 +randomize>=0.13 diff --git a/test.py b/test.py new file mode 100644 index 0000000..467ba16 --- /dev/null +++ b/test.py @@ -0,0 +1 @@ +from swagger_client import BuildApi diff --git a/test/__init__.py b/test/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/test/test_agent.py b/test/test_agent.py new file mode 100644 index 0000000..ee36a35 --- /dev/null +++ b/test/test_agent.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.agent import Agent # noqa: E501 +from swagger_client.rest import ApiException + + +class TestAgent(unittest.TestCase): + """Agent unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAgent(self): + """Test Agent""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.agent.Agent() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_agent_api.py b/test/test_agent_api.py new file mode 100644 index 0000000..6048d6f --- /dev/null +++ b/test/test_agent_api.py @@ -0,0 +1,112 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.api.agent_api import AgentApi # noqa: E501 +from swagger_client.rest import ApiException + + +class TestAgentApi(unittest.TestCase): + """AgentApi unit test stubs""" + + def setUp(self): + self.api = swagger_client.api.agent_api.AgentApi() # noqa: E501 + + def tearDown(self): + pass + + def test_delete_agent(self): + """Test case for delete_agent + + """ + pass + + def test_ge_incompatible_build_types(self): + """Test case for ge_incompatible_build_types + + """ + pass + + def test_get_agent_pool(self): + """Test case for get_agent_pool + + """ + pass + + def test_get_authorized_info(self): + """Test case for get_authorized_info + + """ + pass + + def test_get_compatible_build_types(self): + """Test case for get_compatible_build_types + + """ + pass + + def test_get_enabled_info(self): + """Test case for get_enabled_info + + """ + pass + + def test_serve_agent(self): + """Test case for serve_agent + + """ + pass + + def test_serve_agent_field(self): + """Test case for serve_agent_field + + """ + pass + + def test_serve_agents(self): + """Test case for serve_agents + + """ + pass + + def test_set_agent_field(self): + """Test case for set_agent_field + + """ + pass + + def test_set_agent_pool(self): + """Test case for set_agent_pool + + """ + pass + + def test_set_authorized_info(self): + """Test case for set_authorized_info + + """ + pass + + def test_set_enabled_info(self): + """Test case for set_enabled_info + + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_agent_pool.py b/test/test_agent_pool.py new file mode 100644 index 0000000..6f4b383 --- /dev/null +++ b/test/test_agent_pool.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.agent_pool import AgentPool # noqa: E501 +from swagger_client.rest import ApiException + + +class TestAgentPool(unittest.TestCase): + """AgentPool unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAgentPool(self): + """Test AgentPool""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.agent_pool.AgentPool() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_agent_pool_api.py b/test/test_agent_pool_api.py new file mode 100644 index 0000000..3d3976b --- /dev/null +++ b/test/test_agent_pool_api.py @@ -0,0 +1,118 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.api.agent_pool_api import AgentPoolApi # noqa: E501 +from swagger_client.rest import ApiException + + +class TestAgentPoolApi(unittest.TestCase): + """AgentPoolApi unit test stubs""" + + def setUp(self): + self.api = swagger_client.api.agent_pool_api.AgentPoolApi() # noqa: E501 + + def tearDown(self): + pass + + def test_add_agent(self): + """Test case for add_agent + + """ + pass + + def test_add_project(self): + """Test case for add_project + + """ + pass + + def test_create_pool(self): + """Test case for create_pool + + """ + pass + + def test_delete_pool(self): + """Test case for delete_pool + + """ + pass + + def test_delete_pool_project(self): + """Test case for delete_pool_project + + """ + pass + + def test_delete_projects(self): + """Test case for delete_projects + + """ + pass + + def test_get_field(self): + """Test case for get_field + + """ + pass + + def test_get_pool(self): + """Test case for get_pool + + """ + pass + + def test_get_pool_agents(self): + """Test case for get_pool_agents + + """ + pass + + def test_get_pool_project(self): + """Test case for get_pool_project + + """ + pass + + def test_get_pool_projects(self): + """Test case for get_pool_projects + + """ + pass + + def test_get_pools(self): + """Test case for get_pools + + """ + pass + + def test_replace_projects(self): + """Test case for replace_projects + + """ + pass + + def test_set_field(self): + """Test case for set_field + + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_agent_pools.py b/test/test_agent_pools.py new file mode 100644 index 0000000..9f0bf26 --- /dev/null +++ b/test/test_agent_pools.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.agent_pools import AgentPools # noqa: E501 +from swagger_client.rest import ApiException + + +class TestAgentPools(unittest.TestCase): + """AgentPools unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAgentPools(self): + """Test AgentPools""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.agent_pools.AgentPools() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_agent_requirement.py b/test/test_agent_requirement.py new file mode 100644 index 0000000..5af8d7e --- /dev/null +++ b/test/test_agent_requirement.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.agent_requirement import AgentRequirement # noqa: E501 +from swagger_client.rest import ApiException + + +class TestAgentRequirement(unittest.TestCase): + """AgentRequirement unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAgentRequirement(self): + """Test AgentRequirement""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.agent_requirement.AgentRequirement() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_agent_requirements.py b/test/test_agent_requirements.py new file mode 100644 index 0000000..615dac6 --- /dev/null +++ b/test/test_agent_requirements.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.agent_requirements import AgentRequirements # noqa: E501 +from swagger_client.rest import ApiException + + +class TestAgentRequirements(unittest.TestCase): + """AgentRequirements unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAgentRequirements(self): + """Test AgentRequirements""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.agent_requirements.AgentRequirements() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_agents.py b/test/test_agents.py new file mode 100644 index 0000000..8149b16 --- /dev/null +++ b/test/test_agents.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.agents import Agents # noqa: E501 +from swagger_client.rest import ApiException + + +class TestAgents(unittest.TestCase): + """Agents unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAgents(self): + """Test Agents""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.agents.Agents() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_artifact_dependencies.py b/test/test_artifact_dependencies.py new file mode 100644 index 0000000..d8595e5 --- /dev/null +++ b/test/test_artifact_dependencies.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.artifact_dependencies import ArtifactDependencies # noqa: E501 +from swagger_client.rest import ApiException + + +class TestArtifactDependencies(unittest.TestCase): + """ArtifactDependencies unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testArtifactDependencies(self): + """Test ArtifactDependencies""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.artifact_dependencies.ArtifactDependencies() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_artifact_dependency.py b/test/test_artifact_dependency.py new file mode 100644 index 0000000..4763e10 --- /dev/null +++ b/test/test_artifact_dependency.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.artifact_dependency import ArtifactDependency # noqa: E501 +from swagger_client.rest import ApiException + + +class TestArtifactDependency(unittest.TestCase): + """ArtifactDependency unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testArtifactDependency(self): + """Test ArtifactDependency""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.artifact_dependency.ArtifactDependency() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_authorized_info.py b/test/test_authorized_info.py new file mode 100644 index 0000000..9f24f4b --- /dev/null +++ b/test/test_authorized_info.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.authorized_info import AuthorizedInfo # noqa: E501 +from swagger_client.rest import ApiException + + +class TestAuthorizedInfo(unittest.TestCase): + """AuthorizedInfo unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAuthorizedInfo(self): + """Test AuthorizedInfo""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.authorized_info.AuthorizedInfo() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_backup_process.py b/test/test_backup_process.py new file mode 100644 index 0000000..01d4a33 --- /dev/null +++ b/test/test_backup_process.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.backup_process import BackupProcess # noqa: E501 +from swagger_client.rest import ApiException + + +class TestBackupProcess(unittest.TestCase): + """BackupProcess unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testBackupProcess(self): + """Test BackupProcess""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.backup_process.BackupProcess() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_backup_process_info.py b/test/test_backup_process_info.py new file mode 100644 index 0000000..2da14cd --- /dev/null +++ b/test/test_backup_process_info.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.backup_process_info import BackupProcessInfo # noqa: E501 +from swagger_client.rest import ApiException + + +class TestBackupProcessInfo(unittest.TestCase): + """BackupProcessInfo unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testBackupProcessInfo(self): + """Test BackupProcessInfo""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.backup_process_info.BackupProcessInfo() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_backup_process_manager.py b/test/test_backup_process_manager.py new file mode 100644 index 0000000..6271285 --- /dev/null +++ b/test/test_backup_process_manager.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.backup_process_manager import BackupProcessManager # noqa: E501 +from swagger_client.rest import ApiException + + +class TestBackupProcessManager(unittest.TestCase): + """BackupProcessManager unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testBackupProcessManager(self): + """Test BackupProcessManager""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.backup_process_manager.BackupProcessManager() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_branch.py b/test/test_branch.py new file mode 100644 index 0000000..adb7148 --- /dev/null +++ b/test/test_branch.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.branch import Branch # noqa: E501 +from swagger_client.rest import ApiException + + +class TestBranch(unittest.TestCase): + """Branch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testBranch(self): + """Test Branch""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.branch.Branch() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_branch_version.py b/test/test_branch_version.py new file mode 100644 index 0000000..bc6c353 --- /dev/null +++ b/test/test_branch_version.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.branch_version import BranchVersion # noqa: E501 +from swagger_client.rest import ApiException + + +class TestBranchVersion(unittest.TestCase): + """BranchVersion unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testBranchVersion(self): + """Test BranchVersion""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.branch_version.BranchVersion() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_branches.py b/test/test_branches.py new file mode 100644 index 0000000..ecec530 --- /dev/null +++ b/test/test_branches.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.branches import Branches # noqa: E501 +from swagger_client.rest import ApiException + + +class TestBranches(unittest.TestCase): + """Branches unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testBranches(self): + """Test Branches""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.branches.Branches() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_build.py b/test/test_build.py new file mode 100644 index 0000000..bb352ba --- /dev/null +++ b/test/test_build.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.build import Build # noqa: E501 +from swagger_client.rest import ApiException + + +class TestBuild(unittest.TestCase): + """Build unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testBuild(self): + """Test Build""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.build.Build() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_build_api.py b/test/test_build_api.py new file mode 100644 index 0000000..5a621ad --- /dev/null +++ b/test/test_build_api.py @@ -0,0 +1,250 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.api.build_api import BuildApi # noqa: E501 +from swagger_client.rest import ApiException + + +class TestBuildApi(unittest.TestCase): + """BuildApi unit test stubs""" + + def setUp(self): + self.api = swagger_client.api.build_api.BuildApi() # noqa: E501 + + def tearDown(self): + pass + + def test_add_tags(self): + """Test case for add_tags + + """ + pass + + def test_cancel_build(self): + """Test case for cancel_build + + """ + pass + + def test_cancel_build_0(self): + """Test case for cancel_build_0 + + """ + pass + + def test_delete_build(self): + """Test case for delete_build + + """ + pass + + def test_delete_builds(self): + """Test case for delete_builds + + """ + pass + + def test_delete_comment(self): + """Test case for delete_comment + + """ + pass + + def test_get_artifacts_directory(self): + """Test case for get_artifacts_directory + + """ + pass + + def test_get_canceled_info(self): + """Test case for get_canceled_info + + """ + pass + + def test_get_children(self): + """Test case for get_children + + """ + pass + + def test_get_children_alias(self): + """Test case for get_children_alias + + """ + pass + + def test_get_content(self): + """Test case for get_content + + """ + pass + + def test_get_content_alias(self): + """Test case for get_content_alias + + """ + pass + + def test_get_metadata(self): + """Test case for get_metadata + + """ + pass + + def test_get_parameter(self): + """Test case for get_parameter + + """ + pass + + def test_get_pinned(self): + """Test case for get_pinned + + """ + pass + + def test_get_problems(self): + """Test case for get_problems + + """ + pass + + def test_get_root(self): + """Test case for get_root + + """ + pass + + def test_get_tests(self): + """Test case for get_tests + + """ + pass + + def test_get_zipped(self): + """Test case for get_zipped + + """ + pass + + def test_pin_build(self): + """Test case for pin_build + + """ + pass + + def test_replace_comment(self): + """Test case for replace_comment + + """ + pass + + def test_replace_tags(self): + """Test case for replace_tags + + """ + pass + + def test_serve_aggregated_build_status(self): + """Test case for serve_aggregated_build_status + + """ + pass + + def test_serve_aggregated_build_status_icon(self): + """Test case for serve_aggregated_build_status_icon + + """ + pass + + def test_serve_all_builds(self): + """Test case for serve_all_builds + + """ + pass + + def test_serve_build(self): + """Test case for serve_build + + """ + pass + + def test_serve_build_actual_parameters(self): + """Test case for serve_build_actual_parameters + + """ + pass + + def test_serve_build_field_by_build_only(self): + """Test case for serve_build_field_by_build_only + + """ + pass + + def test_serve_build_related_issues(self): + """Test case for serve_build_related_issues + + """ + pass + + def test_serve_build_related_issues_old(self): + """Test case for serve_build_related_issues_old + + """ + pass + + def test_serve_build_statistic_value(self): + """Test case for serve_build_statistic_value + + """ + pass + + def test_serve_build_statistic_values(self): + """Test case for serve_build_statistic_values + + """ + pass + + def test_serve_build_status_icon(self): + """Test case for serve_build_status_icon + + """ + pass + + def test_serve_source_file(self): + """Test case for serve_source_file + + """ + pass + + def test_serve_tags(self): + """Test case for serve_tags + + """ + pass + + def test_unpin_build(self): + """Test case for unpin_build + + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_build_cancel_request.py b/test/test_build_cancel_request.py new file mode 100644 index 0000000..d30984e --- /dev/null +++ b/test/test_build_cancel_request.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.build_cancel_request import BuildCancelRequest # noqa: E501 +from swagger_client.rest import ApiException + + +class TestBuildCancelRequest(unittest.TestCase): + """BuildCancelRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testBuildCancelRequest(self): + """Test BuildCancelRequest""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.build_cancel_request.BuildCancelRequest() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_build_queue_api.py b/test/test_build_queue_api.py new file mode 100644 index 0000000..b4c3cbb --- /dev/null +++ b/test/test_build_queue_api.py @@ -0,0 +1,118 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.api.build_queue_api import BuildQueueApi # noqa: E501 +from swagger_client.rest import ApiException + + +class TestBuildQueueApi(unittest.TestCase): + """BuildQueueApi unit test stubs""" + + def setUp(self): + self.api = swagger_client.api.build_queue_api.BuildQueueApi() # noqa: E501 + + def tearDown(self): + pass + + def test_add_tags(self): + """Test case for add_tags + + """ + pass + + def test_cancel_build(self): + """Test case for cancel_build + + """ + pass + + def test_cancel_build_0(self): + """Test case for cancel_build_0 + + """ + pass + + def test_delete_build(self): + """Test case for delete_build + + """ + pass + + def test_delete_builds_experimental(self): + """Test case for delete_builds_experimental + + """ + pass + + def test_get_build(self): + """Test case for get_build + + """ + pass + + def test_get_builds(self): + """Test case for get_builds + + """ + pass + + def test_queue_new_build(self): + """Test case for queue_new_build + + """ + pass + + def test_replace_builds(self): + """Test case for replace_builds + + """ + pass + + def test_replace_tags(self): + """Test case for replace_tags + + """ + pass + + def test_serve_build_field_by_build_only(self): + """Test case for serve_build_field_by_build_only + + """ + pass + + def test_serve_compatible_agents(self): + """Test case for serve_compatible_agents + + """ + pass + + def test_serve_tags(self): + """Test case for serve_tags + + """ + pass + + def test_set_build_queue_order(self): + """Test case for set_build_queue_order + + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_build_triggering_options.py b/test/test_build_triggering_options.py new file mode 100644 index 0000000..d1da182 --- /dev/null +++ b/test/test_build_triggering_options.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.build_triggering_options import BuildTriggeringOptions # noqa: E501 +from swagger_client.rest import ApiException + + +class TestBuildTriggeringOptions(unittest.TestCase): + """BuildTriggeringOptions unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testBuildTriggeringOptions(self): + """Test BuildTriggeringOptions""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.build_triggering_options.BuildTriggeringOptions() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_build_type.py b/test/test_build_type.py new file mode 100644 index 0000000..89aba86 --- /dev/null +++ b/test/test_build_type.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.build_type import BuildType # noqa: E501 +from swagger_client.rest import ApiException + + +class TestBuildType(unittest.TestCase): + """BuildType unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testBuildType(self): + """Test BuildType""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.build_type.BuildType() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_build_type_api.py b/test/test_build_type_api.py new file mode 100644 index 0000000..2b088e1 --- /dev/null +++ b/test/test_build_type_api.py @@ -0,0 +1,712 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.api.build_type_api import BuildTypeApi # noqa: E501 +from swagger_client.rest import ApiException + + +class TestBuildTypeApi(unittest.TestCase): + """BuildTypeApi unit test stubs""" + + def setUp(self): + self.api = swagger_client.api.build_type_api.BuildTypeApi() # noqa: E501 + + def tearDown(self): + pass + + def test_add_agent_requirement(self): + """Test case for add_agent_requirement + + """ + pass + + def test_add_artifact_dep(self): + """Test case for add_artifact_dep + + """ + pass + + def test_add_build_type(self): + """Test case for add_build_type + + """ + pass + + def test_add_feature(self): + """Test case for add_feature + + """ + pass + + def test_add_feature_parameter(self): + """Test case for add_feature_parameter + + """ + pass + + def test_add_snapshot_dep(self): + """Test case for add_snapshot_dep + + """ + pass + + def test_add_step(self): + """Test case for add_step + + """ + pass + + def test_add_step_parameter(self): + """Test case for add_step_parameter + + """ + pass + + def test_add_trigger(self): + """Test case for add_trigger + + """ + pass + + def test_add_vcs_root_entry(self): + """Test case for add_vcs_root_entry + + """ + pass + + def test_change_artifact_dep_setting(self): + """Test case for change_artifact_dep_setting + + """ + pass + + def test_change_feature_setting(self): + """Test case for change_feature_setting + + """ + pass + + def test_change_requirement_setting(self): + """Test case for change_requirement_setting + + """ + pass + + def test_change_step_setting(self): + """Test case for change_step_setting + + """ + pass + + def test_change_trigger_setting(self): + """Test case for change_trigger_setting + + """ + pass + + def test_delete_agent_requirement(self): + """Test case for delete_agent_requirement + + """ + pass + + def test_delete_all_parameters(self): + """Test case for delete_all_parameters + + """ + pass + + def test_delete_all_parameters_0(self): + """Test case for delete_all_parameters_0 + + """ + pass + + def test_delete_artifact_dep(self): + """Test case for delete_artifact_dep + + """ + pass + + def test_delete_build_type(self): + """Test case for delete_build_type + + """ + pass + + def test_delete_feature(self): + """Test case for delete_feature + + """ + pass + + def test_delete_parameter(self): + """Test case for delete_parameter + + """ + pass + + def test_delete_parameter_0(self): + """Test case for delete_parameter_0 + + """ + pass + + def test_delete_snapshot_dep(self): + """Test case for delete_snapshot_dep + + """ + pass + + def test_delete_step(self): + """Test case for delete_step + + """ + pass + + def test_delete_template_association(self): + """Test case for delete_template_association + + """ + pass + + def test_delete_trigger(self): + """Test case for delete_trigger + + """ + pass + + def test_delete_vcs_root_entry(self): + """Test case for delete_vcs_root_entry + + """ + pass + + def test_get_agent_requirement(self): + """Test case for get_agent_requirement + + """ + pass + + def test_get_agent_requirements(self): + """Test case for get_agent_requirements + + """ + pass + + def test_get_aliases(self): + """Test case for get_aliases + + """ + pass + + def test_get_artifact_dep(self): + """Test case for get_artifact_dep + + """ + pass + + def test_get_artifact_dep_setting(self): + """Test case for get_artifact_dep_setting + + """ + pass + + def test_get_artifact_deps(self): + """Test case for get_artifact_deps + + """ + pass + + def test_get_build_types(self): + """Test case for get_build_types + + """ + pass + + def test_get_children(self): + """Test case for get_children + + """ + pass + + def test_get_children_alias(self): + """Test case for get_children_alias + + """ + pass + + def test_get_content(self): + """Test case for get_content + + """ + pass + + def test_get_content_alias(self): + """Test case for get_content_alias + + """ + pass + + def test_get_current_vcs_instances(self): + """Test case for get_current_vcs_instances + + """ + pass + + def test_get_example_new_project_description(self): + """Test case for get_example_new_project_description + + """ + pass + + def test_get_example_new_project_description_compatibility_version1(self): + """Test case for get_example_new_project_description_compatibility_version1 + + """ + pass + + def test_get_feature(self): + """Test case for get_feature + + """ + pass + + def test_get_feature_parameter(self): + """Test case for get_feature_parameter + + """ + pass + + def test_get_feature_parameters(self): + """Test case for get_feature_parameters + + """ + pass + + def test_get_feature_setting(self): + """Test case for get_feature_setting + + """ + pass + + def test_get_features(self): + """Test case for get_features + + """ + pass + + def test_get_investigations(self): + """Test case for get_investigations + + """ + pass + + def test_get_metadata(self): + """Test case for get_metadata + + """ + pass + + def test_get_parameter(self): + """Test case for get_parameter + + """ + pass + + def test_get_parameter_0(self): + """Test case for get_parameter_0 + + """ + pass + + def test_get_parameter_type(self): + """Test case for get_parameter_type + + """ + pass + + def test_get_parameter_type_raw_value(self): + """Test case for get_parameter_type_raw_value + + """ + pass + + def test_get_parameter_value_long(self): + """Test case for get_parameter_value_long + + """ + pass + + def test_get_parameter_value_long_0(self): + """Test case for get_parameter_value_long_0 + + """ + pass + + def test_get_parameters(self): + """Test case for get_parameters + + """ + pass + + def test_get_parameters_0(self): + """Test case for get_parameters_0 + + """ + pass + + def test_get_requirement_setting(self): + """Test case for get_requirement_setting + + """ + pass + + def test_get_root(self): + """Test case for get_root + + """ + pass + + def test_get_settings_file(self): + """Test case for get_settings_file + + """ + pass + + def test_get_snapshot_dep(self): + """Test case for get_snapshot_dep + + """ + pass + + def test_get_snapshot_deps(self): + """Test case for get_snapshot_deps + + """ + pass + + def test_get_step(self): + """Test case for get_step + + """ + pass + + def test_get_step_parameter(self): + """Test case for get_step_parameter + + """ + pass + + def test_get_step_parameters(self): + """Test case for get_step_parameters + + """ + pass + + def test_get_step_setting(self): + """Test case for get_step_setting + + """ + pass + + def test_get_steps(self): + """Test case for get_steps + + """ + pass + + def test_get_template_association(self): + """Test case for get_template_association + + """ + pass + + def test_get_trigger(self): + """Test case for get_trigger + + """ + pass + + def test_get_trigger_setting(self): + """Test case for get_trigger_setting + + """ + pass + + def test_get_triggers(self): + """Test case for get_triggers + + """ + pass + + def test_get_vcs_labeling_options(self): + """Test case for get_vcs_labeling_options + + """ + pass + + def test_get_vcs_root_entries(self): + """Test case for get_vcs_root_entries + + """ + pass + + def test_get_vcs_root_entry(self): + """Test case for get_vcs_root_entry + + """ + pass + + def test_get_vcs_root_entry_checkout_rules(self): + """Test case for get_vcs_root_entry_checkout_rules + + """ + pass + + def test_get_zipped(self): + """Test case for get_zipped + + """ + pass + + def test_replace_agent_requirement(self): + """Test case for replace_agent_requirement + + """ + pass + + def test_replace_agent_requirements(self): + """Test case for replace_agent_requirements + + """ + pass + + def test_replace_artifact_dep(self): + """Test case for replace_artifact_dep + + """ + pass + + def test_replace_artifact_deps(self): + """Test case for replace_artifact_deps + + """ + pass + + def test_replace_feature(self): + """Test case for replace_feature + + """ + pass + + def test_replace_feature_parameters(self): + """Test case for replace_feature_parameters + + """ + pass + + def test_replace_features(self): + """Test case for replace_features + + """ + pass + + def test_replace_snapshot_dep(self): + """Test case for replace_snapshot_dep + + """ + pass + + def test_replace_snapshot_deps(self): + """Test case for replace_snapshot_deps + + """ + pass + + def test_replace_step(self): + """Test case for replace_step + + """ + pass + + def test_replace_step_parameters(self): + """Test case for replace_step_parameters + + """ + pass + + def test_replace_steps(self): + """Test case for replace_steps + + """ + pass + + def test_replace_trigger(self): + """Test case for replace_trigger + + """ + pass + + def test_replace_triggers(self): + """Test case for replace_triggers + + """ + pass + + def test_replace_vcs_root_entries(self): + """Test case for replace_vcs_root_entries + + """ + pass + + def test_serve_branches(self): + """Test case for serve_branches + + """ + pass + + def test_serve_build_field(self): + """Test case for serve_build_field + + """ + pass + + def test_serve_build_type_builds_tags(self): + """Test case for serve_build_type_builds_tags + + """ + pass + + def test_serve_build_type_field(self): + """Test case for serve_build_type_field + + """ + pass + + def test_serve_build_type_template(self): + """Test case for serve_build_type_template + + """ + pass + + def test_serve_build_type_xml(self): + """Test case for serve_build_type_xml + + """ + pass + + def test_serve_build_with_project(self): + """Test case for serve_build_with_project + + """ + pass + + def test_serve_builds(self): + """Test case for serve_builds + + """ + pass + + def test_set_build_type_field(self): + """Test case for set_build_type_field + + """ + pass + + def test_set_parameter(self): + """Test case for set_parameter + + """ + pass + + def test_set_parameter_0(self): + """Test case for set_parameter_0 + + """ + pass + + def test_set_parameter_1(self): + """Test case for set_parameter_1 + + """ + pass + + def test_set_parameter_2(self): + """Test case for set_parameter_2 + + """ + pass + + def test_set_parameter_type(self): + """Test case for set_parameter_type + + """ + pass + + def test_set_parameter_type_raw_value(self): + """Test case for set_parameter_type_raw_value + + """ + pass + + def test_set_parameter_value_long(self): + """Test case for set_parameter_value_long + + """ + pass + + def test_set_parameter_value_long_0(self): + """Test case for set_parameter_value_long_0 + + """ + pass + + def test_set_parameters(self): + """Test case for set_parameters + + """ + pass + + def test_set_parameters_0(self): + """Test case for set_parameters_0 + + """ + pass + + def test_set_vcs_labeling_options(self): + """Test case for set_vcs_labeling_options + + """ + pass + + def test_update_vcs_root_entry(self): + """Test case for update_vcs_root_entry + + """ + pass + + def test_update_vcs_root_entry_checkout_rules(self): + """Test case for update_vcs_root_entry_checkout_rules + + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_build_types.py b/test/test_build_types.py new file mode 100644 index 0000000..0db6220 --- /dev/null +++ b/test/test_build_types.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.build_types import BuildTypes # noqa: E501 +from swagger_client.rest import ApiException + + +class TestBuildTypes(unittest.TestCase): + """BuildTypes unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testBuildTypes(self): + """Test BuildTypes""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.build_types.BuildTypes() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_builds.py b/test/test_builds.py new file mode 100644 index 0000000..1c6129f --- /dev/null +++ b/test/test_builds.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.builds import Builds # noqa: E501 +from swagger_client.rest import ApiException + + +class TestBuilds(unittest.TestCase): + """Builds unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testBuilds(self): + """Test Builds""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.builds.Builds() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_change.py b/test/test_change.py new file mode 100644 index 0000000..d60a01d --- /dev/null +++ b/test/test_change.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.change import Change # noqa: E501 +from swagger_client.rest import ApiException + + +class TestChange(unittest.TestCase): + """Change unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testChange(self): + """Test Change""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.change.Change() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_change_api.py b/test/test_change_api.py new file mode 100644 index 0000000..f50ccc2 --- /dev/null +++ b/test/test_change_api.py @@ -0,0 +1,106 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.api.change_api import ChangeApi # noqa: E501 +from swagger_client.rest import ApiException + + +class TestChangeApi(unittest.TestCase): + """ChangeApi unit test stubs""" + + def setUp(self): + self.api = swagger_client.api.change_api.ChangeApi() # noqa: E501 + + def tearDown(self): + pass + + def test_get_change_attributes(self): + """Test case for get_change_attributes + + """ + pass + + def test_get_change_duplicates(self): + """Test case for get_change_duplicates + + """ + pass + + def test_get_change_field(self): + """Test case for get_change_field + + """ + pass + + def test_get_change_first_builds(self): + """Test case for get_change_first_builds + + """ + pass + + def test_get_change_issue(self): + """Test case for get_change_issue + + """ + pass + + def test_get_change_parent_revisions(self): + """Test case for get_change_parent_revisions + + """ + pass + + def test_get_change_vcs_root(self): + """Test case for get_change_vcs_root + + """ + pass + + def test_get_change_vcs_root_instance(self): + """Test case for get_change_vcs_root_instance + + """ + pass + + def test_get_parent_changes(self): + """Test case for get_parent_changes + + """ + pass + + def test_get_related_build_types(self): + """Test case for get_related_build_types + + """ + pass + + def test_serve_change(self): + """Test case for serve_change + + """ + pass + + def test_serve_changes(self): + """Test case for serve_changes + + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_changes.py b/test/test_changes.py new file mode 100644 index 0000000..ea2e92f --- /dev/null +++ b/test/test_changes.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.changes import Changes # noqa: E501 +from swagger_client.rest import ApiException + + +class TestChanges(unittest.TestCase): + """Changes unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testChanges(self): + """Test Changes""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.changes.Changes() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_comment.py b/test/test_comment.py new file mode 100644 index 0000000..2ef288d --- /dev/null +++ b/test/test_comment.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.comment import Comment # noqa: E501 +from swagger_client.rest import ApiException + + +class TestComment(unittest.TestCase): + """Comment unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testComment(self): + """Test Comment""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.comment.Comment() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_compatibilities.py b/test/test_compatibilities.py new file mode 100644 index 0000000..6586aaa --- /dev/null +++ b/test/test_compatibilities.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.compatibilities import Compatibilities # noqa: E501 +from swagger_client.rest import ApiException + + +class TestCompatibilities(unittest.TestCase): + """Compatibilities unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCompatibilities(self): + """Test Compatibilities""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.compatibilities.Compatibilities() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_compatibility.py b/test/test_compatibility.py new file mode 100644 index 0000000..a0fbc98 --- /dev/null +++ b/test/test_compatibility.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.compatibility import Compatibility # noqa: E501 +from swagger_client.rest import ApiException + + +class TestCompatibility(unittest.TestCase): + """Compatibility unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCompatibility(self): + """Test Compatibility""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.compatibility.Compatibility() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_datas.py b/test/test_datas.py new file mode 100644 index 0000000..a2b7817 --- /dev/null +++ b/test/test_datas.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.datas import Datas # noqa: E501 +from swagger_client.rest import ApiException + + +class TestDatas(unittest.TestCase): + """Datas unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDatas(self): + """Test Datas""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.datas.Datas() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_debug_api.py b/test/test_debug_api.py new file mode 100644 index 0000000..34ddf68 --- /dev/null +++ b/test/test_debug_api.py @@ -0,0 +1,160 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.api.debug_api import DebugApi # noqa: E501 +from swagger_client.rest import ApiException + + +class TestDebugApi(unittest.TestCase): + """DebugApi unit test stubs""" + + def setUp(self): + self.api = swagger_client.api.debug_api.DebugApi() # noqa: E501 + + def tearDown(self): + pass + + def test_delete_current_remember_me(self): + """Test case for delete_current_remember_me + + """ + pass + + def test_empty_task(self): + """Test case for empty_task + + """ + pass + + def test_execute_db_query(self): + """Test case for execute_db_query + + """ + pass + + def test_get_current_session(self): + """Test case for get_current_session + + """ + pass + + def test_get_current_session_max_inactive_interval(self): + """Test case for get_current_session_max_inactive_interval + + """ + pass + + def test_get_current_user_permissions(self): + """Test case for get_current_user_permissions + + """ + pass + + def test_get_date(self): + """Test case for get_date + + """ + pass + + def test_get_environment_variables(self): + """Test case for get_environment_variables + + """ + pass + + def test_get_hashed(self): + """Test case for get_hashed + + """ + pass + + def test_get_request_details(self): + """Test case for get_request_details + + """ + pass + + def test_get_scrambled(self): + """Test case for get_scrambled + + """ + pass + + def test_get_sessions(self): + """Test case for get_sessions + + """ + pass + + def test_get_system_properties(self): + """Test case for get_system_properties + + """ + pass + + def test_get_thread_dump(self): + """Test case for get_thread_dump + + """ + pass + + def test_get_unscrambled(self): + """Test case for get_unscrambled + + """ + pass + + def test_invalidate_current_session(self): + """Test case for invalidate_current_session + + """ + pass + + def test_list_db_tables(self): + """Test case for list_db_tables + + """ + pass + + def test_new_remember_me(self): + """Test case for new_remember_me + + """ + pass + + def test_save_memory_dump(self): + """Test case for save_memory_dump + + """ + pass + + def test_schedule_checking_for_changes(self): + """Test case for schedule_checking_for_changes + + """ + pass + + def test_set_current_session_max_inactive_interval(self): + """Test case for set_current_session_max_inactive_interval + + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_default_api.py b/test/test_default_api.py new file mode 100644 index 0000000..01633e8 --- /dev/null +++ b/test/test_default_api.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.api.default_api import DefaultApi # noqa: E501 +from swagger_client.rest import ApiException + + +class TestDefaultApi(unittest.TestCase): + """DefaultApi unit test stubs""" + + def setUp(self): + self.api = swagger_client.api.default_api.DefaultApi() # noqa: E501 + + def tearDown(self): + pass + + def test_serve_api_version(self): + """Test case for serve_api_version + + """ + pass + + def test_serve_build_field_short(self): + """Test case for serve_build_field_short + + """ + pass + + def test_serve_plugin_info(self): + """Test case for serve_plugin_info + + """ + pass + + def test_serve_root(self): + """Test case for serve_root + + """ + pass + + def test_serve_version(self): + """Test case for serve_version + + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_enabled_info.py b/test/test_enabled_info.py new file mode 100644 index 0000000..b3b279f --- /dev/null +++ b/test/test_enabled_info.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.enabled_info import EnabledInfo # noqa: E501 +from swagger_client.rest import ApiException + + +class TestEnabledInfo(unittest.TestCase): + """EnabledInfo unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testEnabledInfo(self): + """Test EnabledInfo""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.enabled_info.EnabledInfo() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_entries.py b/test/test_entries.py new file mode 100644 index 0000000..220dff7 --- /dev/null +++ b/test/test_entries.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.entries import Entries # noqa: E501 +from swagger_client.rest import ApiException + + +class TestEntries(unittest.TestCase): + """Entries unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testEntries(self): + """Test Entries""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.entries.Entries() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_entry.py b/test/test_entry.py new file mode 100644 index 0000000..5bc621c --- /dev/null +++ b/test/test_entry.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.entry import Entry # noqa: E501 +from swagger_client.rest import ApiException + + +class TestEntry(unittest.TestCase): + """Entry unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testEntry(self): + """Test Entry""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.entry.Entry() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_exception.py b/test/test_exception.py new file mode 100644 index 0000000..4e8b49d --- /dev/null +++ b/test/test_exception.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.exception import Exception # noqa: E501 +from swagger_client.rest import ApiException + + +class TestException(unittest.TestCase): + """Exception unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testException(self): + """Test Exception""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.exception.Exception() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_feature.py b/test/test_feature.py new file mode 100644 index 0000000..af49094 --- /dev/null +++ b/test/test_feature.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.feature import Feature # noqa: E501 +from swagger_client.rest import ApiException + + +class TestFeature(unittest.TestCase): + """Feature unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testFeature(self): + """Test Feature""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.feature.Feature() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_features.py b/test/test_features.py new file mode 100644 index 0000000..cc465e6 --- /dev/null +++ b/test/test_features.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.features import Features # noqa: E501 +from swagger_client.rest import ApiException + + +class TestFeatures(unittest.TestCase): + """Features unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testFeatures(self): + """Test Features""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.features.Features() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_federation_api.py b/test/test_federation_api.py new file mode 100644 index 0000000..527af35 --- /dev/null +++ b/test/test_federation_api.py @@ -0,0 +1,46 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.api.federation_api import FederationApi # noqa: E501 +from swagger_client.rest import ApiException + + +class TestFederationApi(unittest.TestCase): + """FederationApi unit test stubs""" + + def setUp(self): + self.api = swagger_client.api.federation_api.FederationApi() # noqa: E501 + + def tearDown(self): + pass + + def test_add_server(self): + """Test case for add_server + + """ + pass + + def test_servers(self): + """Test case for servers + + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_federation_server.py b/test/test_federation_server.py new file mode 100644 index 0000000..27f8671 --- /dev/null +++ b/test/test_federation_server.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.federation_server import FederationServer # noqa: E501 +from swagger_client.rest import ApiException + + +class TestFederationServer(unittest.TestCase): + """FederationServer unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testFederationServer(self): + """Test FederationServer""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.federation_server.FederationServer() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_file.py b/test/test_file.py new file mode 100644 index 0000000..16a8721 --- /dev/null +++ b/test/test_file.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.file import File # noqa: E501 +from swagger_client.rest import ApiException + + +class TestFile(unittest.TestCase): + """File unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testFile(self): + """Test File""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.file.File() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_file_change.py b/test/test_file_change.py new file mode 100644 index 0000000..874e2fb --- /dev/null +++ b/test/test_file_change.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.file_change import FileChange # noqa: E501 +from swagger_client.rest import ApiException + + +class TestFileChange(unittest.TestCase): + """FileChange unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testFileChange(self): + """Test FileChange""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.file_change.FileChange() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_file_changes.py b/test/test_file_changes.py new file mode 100644 index 0000000..e2f11eb --- /dev/null +++ b/test/test_file_changes.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.file_changes import FileChanges # noqa: E501 +from swagger_client.rest import ApiException + + +class TestFileChanges(unittest.TestCase): + """FileChanges unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testFileChanges(self): + """Test FileChanges""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.file_changes.FileChanges() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_files.py b/test/test_files.py new file mode 100644 index 0000000..c972ca0 --- /dev/null +++ b/test/test_files.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.files import Files # noqa: E501 +from swagger_client.rest import ApiException + + +class TestFiles(unittest.TestCase): + """Files unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testFiles(self): + """Test Files""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.files.Files() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_group.py b/test/test_group.py new file mode 100644 index 0000000..66849ca --- /dev/null +++ b/test/test_group.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.group import Group # noqa: E501 +from swagger_client.rest import ApiException + + +class TestGroup(unittest.TestCase): + """Group unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testGroup(self): + """Test Group""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.group.Group() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_group_api.py b/test/test_group_api.py new file mode 100644 index 0000000..b8635b0 --- /dev/null +++ b/test/test_group_api.py @@ -0,0 +1,124 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.api.group_api import GroupApi # noqa: E501 +from swagger_client.rest import ApiException + + +class TestGroupApi(unittest.TestCase): + """GroupApi unit test stubs""" + + def setUp(self): + self.api = swagger_client.api.group_api.GroupApi() # noqa: E501 + + def tearDown(self): + pass + + def test_add_group(self): + """Test case for add_group + + """ + pass + + def test_add_role(self): + """Test case for add_role + + """ + pass + + def test_add_role_put(self): + """Test case for add_role_put + + """ + pass + + def test_add_role_simple(self): + """Test case for add_role_simple + + """ + pass + + def test_delete_group(self): + """Test case for delete_group + + """ + pass + + def test_delete_role(self): + """Test case for delete_role + + """ + pass + + def test_get_permissions(self): + """Test case for get_permissions + + """ + pass + + def test_get_properties(self): + """Test case for get_properties + + """ + pass + + def test_list_role(self): + """Test case for list_role + + """ + pass + + def test_list_roles(self): + """Test case for list_roles + + """ + pass + + def test_put_user_property(self): + """Test case for put_user_property + + """ + pass + + def test_remove_user_property(self): + """Test case for remove_user_property + + """ + pass + + def test_serve_group(self): + """Test case for serve_group + + """ + pass + + def test_serve_groups(self): + """Test case for serve_groups + + """ + pass + + def test_serve_user_properties(self): + """Test case for serve_user_properties + + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_groups.py b/test/test_groups.py new file mode 100644 index 0000000..942a8fd --- /dev/null +++ b/test/test_groups.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.groups import Groups # noqa: E501 +from swagger_client.rest import ApiException + + +class TestGroups(unittest.TestCase): + """Groups unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testGroups(self): + """Test Groups""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.groups.Groups() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_href.py b/test/test_href.py new file mode 100644 index 0000000..7b8451b --- /dev/null +++ b/test/test_href.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.href import Href # noqa: E501 +from swagger_client.rest import ApiException + + +class TestHref(unittest.TestCase): + """Href unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testHref(self): + """Test Href""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.href.Href() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_investigation.py b/test/test_investigation.py new file mode 100644 index 0000000..e2716fb --- /dev/null +++ b/test/test_investigation.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.investigation import Investigation # noqa: E501 +from swagger_client.rest import ApiException + + +class TestInvestigation(unittest.TestCase): + """Investigation unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testInvestigation(self): + """Test Investigation""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.investigation.Investigation() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_investigation_api.py b/test/test_investigation_api.py new file mode 100644 index 0000000..0d9a308 --- /dev/null +++ b/test/test_investigation_api.py @@ -0,0 +1,46 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.api.investigation_api import InvestigationApi # noqa: E501 +from swagger_client.rest import ApiException + + +class TestInvestigationApi(unittest.TestCase): + """InvestigationApi unit test stubs""" + + def setUp(self): + self.api = swagger_client.api.investigation_api.InvestigationApi() # noqa: E501 + + def tearDown(self): + pass + + def test_get_investigations(self): + """Test case for get_investigations + + """ + pass + + def test_serve_instance(self): + """Test case for serve_instance + + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_investigations.py b/test/test_investigations.py new file mode 100644 index 0000000..8e1b48a --- /dev/null +++ b/test/test_investigations.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.investigations import Investigations # noqa: E501 +from swagger_client.rest import ApiException + + +class TestInvestigations(unittest.TestCase): + """Investigations unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testInvestigations(self): + """Test Investigations""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.investigations.Investigations() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_issue.py b/test/test_issue.py new file mode 100644 index 0000000..8d044bf --- /dev/null +++ b/test/test_issue.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.issue import Issue # noqa: E501 +from swagger_client.rest import ApiException + + +class TestIssue(unittest.TestCase): + """Issue unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testIssue(self): + """Test Issue""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.issue.Issue() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_issue_usage.py b/test/test_issue_usage.py new file mode 100644 index 0000000..7d77f6d --- /dev/null +++ b/test/test_issue_usage.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.issue_usage import IssueUsage # noqa: E501 +from swagger_client.rest import ApiException + + +class TestIssueUsage(unittest.TestCase): + """IssueUsage unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testIssueUsage(self): + """Test IssueUsage""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.issue_usage.IssueUsage() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_issues.py b/test/test_issues.py new file mode 100644 index 0000000..4288067 --- /dev/null +++ b/test/test_issues.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.issues import Issues # noqa: E501 +from swagger_client.rest import ApiException + + +class TestIssues(unittest.TestCase): + """Issues unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testIssues(self): + """Test Issues""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.issues.Issues() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_issues_usages.py b/test/test_issues_usages.py new file mode 100644 index 0000000..7ebce29 --- /dev/null +++ b/test/test_issues_usages.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.issues_usages import IssuesUsages # noqa: E501 +from swagger_client.rest import ApiException + + +class TestIssuesUsages(unittest.TestCase): + """IssuesUsages unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testIssuesUsages(self): + """Test IssuesUsages""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.issues_usages.IssuesUsages() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_items.py b/test/test_items.py new file mode 100644 index 0000000..ceb8750 --- /dev/null +++ b/test/test_items.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.items import Items # noqa: E501 +from swagger_client.rest import ApiException + + +class TestItems(unittest.TestCase): + """Items unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testItems(self): + """Test Items""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.items.Items() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_license_key.py b/test/test_license_key.py new file mode 100644 index 0000000..2fa1caa --- /dev/null +++ b/test/test_license_key.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.license_key import LicenseKey # noqa: E501 +from swagger_client.rest import ApiException + + +class TestLicenseKey(unittest.TestCase): + """LicenseKey unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testLicenseKey(self): + """Test LicenseKey""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.license_key.LicenseKey() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_license_keys.py b/test/test_license_keys.py new file mode 100644 index 0000000..76a899d --- /dev/null +++ b/test/test_license_keys.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.license_keys import LicenseKeys # noqa: E501 +from swagger_client.rest import ApiException + + +class TestLicenseKeys(unittest.TestCase): + """LicenseKeys unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testLicenseKeys(self): + """Test LicenseKeys""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.license_keys.LicenseKeys() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_licensing_data.py b/test/test_licensing_data.py new file mode 100644 index 0000000..92c72d1 --- /dev/null +++ b/test/test_licensing_data.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.licensing_data import LicensingData # noqa: E501 +from swagger_client.rest import ApiException + + +class TestLicensingData(unittest.TestCase): + """LicensingData unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testLicensingData(self): + """Test LicensingData""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.licensing_data.LicensingData() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_link.py b/test/test_link.py new file mode 100644 index 0000000..b05a697 --- /dev/null +++ b/test/test_link.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.link import Link # noqa: E501 +from swagger_client.rest import ApiException + + +class TestLink(unittest.TestCase): + """Link unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testLink(self): + """Test Link""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.link.Link() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_links.py b/test/test_links.py new file mode 100644 index 0000000..8b11b1c --- /dev/null +++ b/test/test_links.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.links import Links # noqa: E501 +from swagger_client.rest import ApiException + + +class TestLinks(unittest.TestCase): + """Links unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testLinks(self): + """Test Links""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.links.Links() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_meta_data.py b/test/test_meta_data.py new file mode 100644 index 0000000..3aed52c --- /dev/null +++ b/test/test_meta_data.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.meta_data import MetaData # noqa: E501 +from swagger_client.rest import ApiException + + +class TestMetaData(unittest.TestCase): + """MetaData unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testMetaData(self): + """Test MetaData""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.meta_data.MetaData() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_model_property.py b/test/test_model_property.py new file mode 100644 index 0000000..eaffe3a --- /dev/null +++ b/test/test_model_property.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.model_property import ModelProperty # noqa: E501 +from swagger_client.rest import ApiException + + +class TestModelProperty(unittest.TestCase): + """ModelProperty unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testModelProperty(self): + """Test ModelProperty""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.model_property.ModelProperty() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_mute.py b/test/test_mute.py new file mode 100644 index 0000000..25c6af3 --- /dev/null +++ b/test/test_mute.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.mute import Mute # noqa: E501 +from swagger_client.rest import ApiException + + +class TestMute(unittest.TestCase): + """Mute unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testMute(self): + """Test Mute""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.mute.Mute() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_mutes.py b/test/test_mutes.py new file mode 100644 index 0000000..aa3438e --- /dev/null +++ b/test/test_mutes.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.mutes import Mutes # noqa: E501 +from swagger_client.rest import ApiException + + +class TestMutes(unittest.TestCase): + """Mutes unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testMutes(self): + """Test Mutes""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.mutes.Mutes() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_new_build_type_description.py b/test/test_new_build_type_description.py new file mode 100644 index 0000000..8c008dc --- /dev/null +++ b/test/test_new_build_type_description.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.new_build_type_description import NewBuildTypeDescription # noqa: E501 +from swagger_client.rest import ApiException + + +class TestNewBuildTypeDescription(unittest.TestCase): + """NewBuildTypeDescription unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNewBuildTypeDescription(self): + """Test NewBuildTypeDescription""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.new_build_type_description.NewBuildTypeDescription() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_new_project_description.py b/test/test_new_project_description.py new file mode 100644 index 0000000..8b00a6c --- /dev/null +++ b/test/test_new_project_description.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.new_project_description import NewProjectDescription # noqa: E501 +from swagger_client.rest import ApiException + + +class TestNewProjectDescription(unittest.TestCase): + """NewProjectDescription unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNewProjectDescription(self): + """Test NewProjectDescription""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.new_project_description.NewProjectDescription() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_plugin.py b/test/test_plugin.py new file mode 100644 index 0000000..58293e0 --- /dev/null +++ b/test/test_plugin.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.plugin import Plugin # noqa: E501 +from swagger_client.rest import ApiException + + +class TestPlugin(unittest.TestCase): + """Plugin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPlugin(self): + """Test Plugin""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.plugin.Plugin() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_plugins.py b/test/test_plugins.py new file mode 100644 index 0000000..4ea379d --- /dev/null +++ b/test/test_plugins.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.plugins import Plugins # noqa: E501 +from swagger_client.rest import ApiException + + +class TestPlugins(unittest.TestCase): + """Plugins unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPlugins(self): + """Test Plugins""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.plugins.Plugins() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_problem.py b/test/test_problem.py new file mode 100644 index 0000000..dacbd07 --- /dev/null +++ b/test/test_problem.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.problem import Problem # noqa: E501 +from swagger_client.rest import ApiException + + +class TestProblem(unittest.TestCase): + """Problem unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testProblem(self): + """Test Problem""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.problem.Problem() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_problem_api.py b/test/test_problem_api.py new file mode 100644 index 0000000..d306695 --- /dev/null +++ b/test/test_problem_api.py @@ -0,0 +1,46 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.api.problem_api import ProblemApi # noqa: E501 +from swagger_client.rest import ApiException + + +class TestProblemApi(unittest.TestCase): + """ProblemApi unit test stubs""" + + def setUp(self): + self.api = swagger_client.api.problem_api.ProblemApi() # noqa: E501 + + def tearDown(self): + pass + + def test_get_problems(self): + """Test case for get_problems + + """ + pass + + def test_serve_instance(self): + """Test case for serve_instance + + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_problem_occurrence.py b/test/test_problem_occurrence.py new file mode 100644 index 0000000..71e86e8 --- /dev/null +++ b/test/test_problem_occurrence.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.problem_occurrence import ProblemOccurrence # noqa: E501 +from swagger_client.rest import ApiException + + +class TestProblemOccurrence(unittest.TestCase): + """ProblemOccurrence unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testProblemOccurrence(self): + """Test ProblemOccurrence""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.problem_occurrence.ProblemOccurrence() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_problem_occurrence_api.py b/test/test_problem_occurrence_api.py new file mode 100644 index 0000000..89cb327 --- /dev/null +++ b/test/test_problem_occurrence_api.py @@ -0,0 +1,46 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.api.problem_occurrence_api import ProblemOccurrenceApi # noqa: E501 +from swagger_client.rest import ApiException + + +class TestProblemOccurrenceApi(unittest.TestCase): + """ProblemOccurrenceApi unit test stubs""" + + def setUp(self): + self.api = swagger_client.api.problem_occurrence_api.ProblemOccurrenceApi() # noqa: E501 + + def tearDown(self): + pass + + def test_get_problems(self): + """Test case for get_problems + + """ + pass + + def test_serve_instance(self): + """Test case for serve_instance + + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_problem_occurrences.py b/test/test_problem_occurrences.py new file mode 100644 index 0000000..f62b11a --- /dev/null +++ b/test/test_problem_occurrences.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.problem_occurrences import ProblemOccurrences # noqa: E501 +from swagger_client.rest import ApiException + + +class TestProblemOccurrences(unittest.TestCase): + """ProblemOccurrences unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testProblemOccurrences(self): + """Test ProblemOccurrences""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.problem_occurrences.ProblemOccurrences() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_problem_scope.py b/test/test_problem_scope.py new file mode 100644 index 0000000..bc45b2a --- /dev/null +++ b/test/test_problem_scope.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.problem_scope import ProblemScope # noqa: E501 +from swagger_client.rest import ApiException + + +class TestProblemScope(unittest.TestCase): + """ProblemScope unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testProblemScope(self): + """Test ProblemScope""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.problem_scope.ProblemScope() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_problem_target.py b/test/test_problem_target.py new file mode 100644 index 0000000..34e1829 --- /dev/null +++ b/test/test_problem_target.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.problem_target import ProblemTarget # noqa: E501 +from swagger_client.rest import ApiException + + +class TestProblemTarget(unittest.TestCase): + """ProblemTarget unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testProblemTarget(self): + """Test ProblemTarget""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.problem_target.ProblemTarget() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_problems.py b/test/test_problems.py new file mode 100644 index 0000000..2d29ebf --- /dev/null +++ b/test/test_problems.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.problems import Problems # noqa: E501 +from swagger_client.rest import ApiException + + +class TestProblems(unittest.TestCase): + """Problems unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testProblems(self): + """Test Problems""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.problems.Problems() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_progress_info.py b/test/test_progress_info.py new file mode 100644 index 0000000..0b41bc4 --- /dev/null +++ b/test/test_progress_info.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.progress_info import ProgressInfo # noqa: E501 +from swagger_client.rest import ApiException + + +class TestProgressInfo(unittest.TestCase): + """ProgressInfo unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testProgressInfo(self): + """Test ProgressInfo""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.progress_info.ProgressInfo() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_project.py b/test/test_project.py new file mode 100644 index 0000000..2d328d6 --- /dev/null +++ b/test/test_project.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.project import Project # noqa: E501 +from swagger_client.rest import ApiException + + +class TestProject(unittest.TestCase): + """Project unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testProject(self): + """Test Project""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.project.Project() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_project_api.py b/test/test_project_api.py new file mode 100644 index 0000000..234aa06 --- /dev/null +++ b/test/test_project_api.py @@ -0,0 +1,382 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.api.project_api import ProjectApi # noqa: E501 +from swagger_client.rest import ApiException + + +class TestProjectApi(unittest.TestCase): + """ProjectApi unit test stubs""" + + def setUp(self): + self.api = swagger_client.api.project_api.ProjectApi() # noqa: E501 + + def tearDown(self): + pass + + def test_add(self): + """Test case for add + + """ + pass + + def test_create_build_type(self): + """Test case for create_build_type + + """ + pass + + def test_create_build_type_template(self): + """Test case for create_build_type_template + + """ + pass + + def test_create_project(self): + """Test case for create_project + + """ + pass + + def test_delete(self): + """Test case for delete + + """ + pass + + def test_delete_all_parameters(self): + """Test case for delete_all_parameters + + """ + pass + + def test_delete_all_parameters_0(self): + """Test case for delete_all_parameters_0 + + """ + pass + + def test_delete_parameter(self): + """Test case for delete_parameter + + """ + pass + + def test_delete_parameter_0(self): + """Test case for delete_parameter_0 + + """ + pass + + def test_delete_project(self): + """Test case for delete_project + + """ + pass + + def test_delete_project_agent_pools(self): + """Test case for delete_project_agent_pools + + """ + pass + + def test_get(self): + """Test case for get + + """ + pass + + def test_get_build_types_order(self): + """Test case for get_build_types_order + + """ + pass + + def test_get_example_new_project_description(self): + """Test case for get_example_new_project_description + + """ + pass + + def test_get_example_new_project_description_compatibility_version1(self): + """Test case for get_example_new_project_description_compatibility_version1 + + """ + pass + + def test_get_parameter(self): + """Test case for get_parameter + + """ + pass + + def test_get_parameter_0(self): + """Test case for get_parameter_0 + + """ + pass + + def test_get_parameter_type(self): + """Test case for get_parameter_type + + """ + pass + + def test_get_parameter_type_raw_value(self): + """Test case for get_parameter_type_raw_value + + """ + pass + + def test_get_parameter_value_long(self): + """Test case for get_parameter_value_long + + """ + pass + + def test_get_parameter_value_long_0(self): + """Test case for get_parameter_value_long_0 + + """ + pass + + def test_get_parameters(self): + """Test case for get_parameters + + """ + pass + + def test_get_parameters_0(self): + """Test case for get_parameters_0 + + """ + pass + + def test_get_parent_project(self): + """Test case for get_parent_project + + """ + pass + + def test_get_project_agent_pools(self): + """Test case for get_project_agent_pools + + """ + pass + + def test_get_projects_order(self): + """Test case for get_projects_order + + """ + pass + + def test_get_settings_file(self): + """Test case for get_settings_file + + """ + pass + + def test_get_single(self): + """Test case for get_single + + """ + pass + + def test_reload_settings_file(self): + """Test case for reload_settings_file + + """ + pass + + def test_replace(self): + """Test case for replace + + """ + pass + + def test_replace_all(self): + """Test case for replace_all + + """ + pass + + def test_serve_build_field_with_project(self): + """Test case for serve_build_field_with_project + + """ + pass + + def test_serve_build_type(self): + """Test case for serve_build_type + + """ + pass + + def test_serve_build_type_field_with_project(self): + """Test case for serve_build_type_field_with_project + + """ + pass + + def test_serve_build_type_templates(self): + """Test case for serve_build_type_templates + + """ + pass + + def test_serve_build_types_in_project(self): + """Test case for serve_build_types_in_project + + """ + pass + + def test_serve_build_with_project(self): + """Test case for serve_build_with_project + + """ + pass + + def test_serve_builds(self): + """Test case for serve_builds + + """ + pass + + def test_serve_project(self): + """Test case for serve_project + + """ + pass + + def test_serve_project_field(self): + """Test case for serve_project_field + + """ + pass + + def test_serve_projects(self): + """Test case for serve_projects + + """ + pass + + def test_serve_templates_in_project(self): + """Test case for serve_templates_in_project + + """ + pass + + def test_set_build_types_order(self): + """Test case for set_build_types_order + + """ + pass + + def test_set_parameter(self): + """Test case for set_parameter + + """ + pass + + def test_set_parameter_0(self): + """Test case for set_parameter_0 + + """ + pass + + def test_set_parameter_1(self): + """Test case for set_parameter_1 + + """ + pass + + def test_set_parameter_2(self): + """Test case for set_parameter_2 + + """ + pass + + def test_set_parameter_type(self): + """Test case for set_parameter_type + + """ + pass + + def test_set_parameter_type_raw_value(self): + """Test case for set_parameter_type_raw_value + + """ + pass + + def test_set_parameter_value_long(self): + """Test case for set_parameter_value_long + + """ + pass + + def test_set_parameter_value_long_0(self): + """Test case for set_parameter_value_long_0 + + """ + pass + + def test_set_parameters(self): + """Test case for set_parameters + + """ + pass + + def test_set_parameters_0(self): + """Test case for set_parameters_0 + + """ + pass + + def test_set_parent_project(self): + """Test case for set_parent_project + + """ + pass + + def test_set_project_agent_pools(self): + """Test case for set_project_agent_pools + + """ + pass + + def test_set_project_agent_pools_0(self): + """Test case for set_project_agent_pools_0 + + """ + pass + + def test_set_project_filed(self): + """Test case for set_project_filed + + """ + pass + + def test_set_projects_order(self): + """Test case for set_projects_order + + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_project_feature.py b/test/test_project_feature.py new file mode 100644 index 0000000..198d4e7 --- /dev/null +++ b/test/test_project_feature.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.project_feature import ProjectFeature # noqa: E501 +from swagger_client.rest import ApiException + + +class TestProjectFeature(unittest.TestCase): + """ProjectFeature unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testProjectFeature(self): + """Test ProjectFeature""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.project_feature.ProjectFeature() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_project_features.py b/test/test_project_features.py new file mode 100644 index 0000000..a1febdf --- /dev/null +++ b/test/test_project_features.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.project_features import ProjectFeatures # noqa: E501 +from swagger_client.rest import ApiException + + +class TestProjectFeatures(unittest.TestCase): + """ProjectFeatures unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testProjectFeatures(self): + """Test ProjectFeatures""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.project_features.ProjectFeatures() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_projects.py b/test/test_projects.py new file mode 100644 index 0000000..318e439 --- /dev/null +++ b/test/test_projects.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.projects import Projects # noqa: E501 +from swagger_client.rest import ApiException + + +class TestProjects(unittest.TestCase): + """Projects unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testProjects(self): + """Test Projects""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.projects.Projects() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_properties.py b/test/test_properties.py new file mode 100644 index 0000000..0a2fed2 --- /dev/null +++ b/test/test_properties.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.properties import Properties # noqa: E501 +from swagger_client.rest import ApiException + + +class TestProperties(unittest.TestCase): + """Properties unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testProperties(self): + """Test Properties""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.properties.Properties() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_repository_state.py b/test/test_repository_state.py new file mode 100644 index 0000000..8a3731a --- /dev/null +++ b/test/test_repository_state.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.repository_state import RepositoryState # noqa: E501 +from swagger_client.rest import ApiException + + +class TestRepositoryState(unittest.TestCase): + """RepositoryState unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testRepositoryState(self): + """Test RepositoryState""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.repository_state.RepositoryState() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_requirements.py b/test/test_requirements.py new file mode 100644 index 0000000..4ab4efa --- /dev/null +++ b/test/test_requirements.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.requirements import Requirements # noqa: E501 +from swagger_client.rest import ApiException + + +class TestRequirements(unittest.TestCase): + """Requirements unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testRequirements(self): + """Test Requirements""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.requirements.Requirements() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_resolution.py b/test/test_resolution.py new file mode 100644 index 0000000..938c886 --- /dev/null +++ b/test/test_resolution.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.resolution import Resolution # noqa: E501 +from swagger_client.rest import ApiException + + +class TestResolution(unittest.TestCase): + """Resolution unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResolution(self): + """Test Resolution""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.resolution.Resolution() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_revision.py b/test/test_revision.py new file mode 100644 index 0000000..6a0c935 --- /dev/null +++ b/test/test_revision.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.revision import Revision # noqa: E501 +from swagger_client.rest import ApiException + + +class TestRevision(unittest.TestCase): + """Revision unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testRevision(self): + """Test Revision""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.revision.Revision() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_revisions.py b/test/test_revisions.py new file mode 100644 index 0000000..f4d9944 --- /dev/null +++ b/test/test_revisions.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.revisions import Revisions # noqa: E501 +from swagger_client.rest import ApiException + + +class TestRevisions(unittest.TestCase): + """Revisions unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testRevisions(self): + """Test Revisions""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.revisions.Revisions() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_role.py b/test/test_role.py new file mode 100644 index 0000000..f523a73 --- /dev/null +++ b/test/test_role.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.role import Role # noqa: E501 +from swagger_client.rest import ApiException + + +class TestRole(unittest.TestCase): + """Role unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testRole(self): + """Test Role""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.role.Role() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_roles.py b/test/test_roles.py new file mode 100644 index 0000000..11008c8 --- /dev/null +++ b/test/test_roles.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.roles import Roles # noqa: E501 +from swagger_client.rest import ApiException + + +class TestRoles(unittest.TestCase): + """Roles unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testRoles(self): + """Test Roles""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.roles.Roles() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_server.py b/test/test_server.py new file mode 100644 index 0000000..2753f6b --- /dev/null +++ b/test/test_server.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.server import Server # noqa: E501 +from swagger_client.rest import ApiException + + +class TestServer(unittest.TestCase): + """Server unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testServer(self): + """Test Server""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.server.Server() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_server_api.py b/test/test_server_api.py new file mode 100644 index 0000000..a932ca5 --- /dev/null +++ b/test/test_server_api.py @@ -0,0 +1,136 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.api.server_api import ServerApi # noqa: E501 +from swagger_client.rest import ApiException + + +class TestServerApi(unittest.TestCase): + """ServerApi unit test stubs""" + + def setUp(self): + self.api = swagger_client.api.server_api.ServerApi() # noqa: E501 + + def tearDown(self): + pass + + def test_add_license_keys(self): + """Test case for add_license_keys + + """ + pass + + def test_delete_license_key(self): + """Test case for delete_license_key + + """ + pass + + def test_get_backup_status(self): + """Test case for get_backup_status + + """ + pass + + def test_get_children(self): + """Test case for get_children + + """ + pass + + def test_get_children_alias(self): + """Test case for get_children_alias + + """ + pass + + def test_get_content(self): + """Test case for get_content + + """ + pass + + def test_get_content_alias(self): + """Test case for get_content_alias + + """ + pass + + def test_get_license_key(self): + """Test case for get_license_key + + """ + pass + + def test_get_license_keys(self): + """Test case for get_license_keys + + """ + pass + + def test_get_licensing_data(self): + """Test case for get_licensing_data + + """ + pass + + def test_get_metadata(self): + """Test case for get_metadata + + """ + pass + + def test_get_root(self): + """Test case for get_root + + """ + pass + + def test_get_zipped(self): + """Test case for get_zipped + + """ + pass + + def test_serve_plugins(self): + """Test case for serve_plugins + + """ + pass + + def test_serve_server_info(self): + """Test case for serve_server_info + + """ + pass + + def test_serve_server_version(self): + """Test case for serve_server_version + + """ + pass + + def test_start_backup(self): + """Test case for start_backup + + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_servers.py b/test/test_servers.py new file mode 100644 index 0000000..f3778c9 --- /dev/null +++ b/test/test_servers.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.servers import Servers # noqa: E501 +from swagger_client.rest import ApiException + + +class TestServers(unittest.TestCase): + """Servers unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testServers(self): + """Test Servers""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.servers.Servers() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_session.py b/test/test_session.py new file mode 100644 index 0000000..6de9bd2 --- /dev/null +++ b/test/test_session.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.session import Session # noqa: E501 +from swagger_client.rest import ApiException + + +class TestSession(unittest.TestCase): + """Session unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSession(self): + """Test Session""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.session.Session() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_sessions.py b/test/test_sessions.py new file mode 100644 index 0000000..4b1d9e8 --- /dev/null +++ b/test/test_sessions.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.sessions import Sessions # noqa: E501 +from swagger_client.rest import ApiException + + +class TestSessions(unittest.TestCase): + """Sessions unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSessions(self): + """Test Sessions""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.sessions.Sessions() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_snapshot_dependencies.py b/test/test_snapshot_dependencies.py new file mode 100644 index 0000000..af3fa91 --- /dev/null +++ b/test/test_snapshot_dependencies.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.snapshot_dependencies import SnapshotDependencies # noqa: E501 +from swagger_client.rest import ApiException + + +class TestSnapshotDependencies(unittest.TestCase): + """SnapshotDependencies unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSnapshotDependencies(self): + """Test SnapshotDependencies""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.snapshot_dependencies.SnapshotDependencies() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_snapshot_dependency.py b/test/test_snapshot_dependency.py new file mode 100644 index 0000000..02b8a6c --- /dev/null +++ b/test/test_snapshot_dependency.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.snapshot_dependency import SnapshotDependency # noqa: E501 +from swagger_client.rest import ApiException + + +class TestSnapshotDependency(unittest.TestCase): + """SnapshotDependency unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSnapshotDependency(self): + """Test SnapshotDependency""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.snapshot_dependency.SnapshotDependency() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_stack_trace_element.py b/test/test_stack_trace_element.py new file mode 100644 index 0000000..f30119f --- /dev/null +++ b/test/test_stack_trace_element.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.stack_trace_element import StackTraceElement # noqa: E501 +from swagger_client.rest import ApiException + + +class TestStackTraceElement(unittest.TestCase): + """StackTraceElement unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testStackTraceElement(self): + """Test StackTraceElement""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.stack_trace_element.StackTraceElement() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_state_field.py b/test/test_state_field.py new file mode 100644 index 0000000..1c30545 --- /dev/null +++ b/test/test_state_field.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.state_field import StateField # noqa: E501 +from swagger_client.rest import ApiException + + +class TestStateField(unittest.TestCase): + """StateField unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testStateField(self): + """Test StateField""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.state_field.StateField() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_step.py b/test/test_step.py new file mode 100644 index 0000000..6af61b3 --- /dev/null +++ b/test/test_step.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.step import Step # noqa: E501 +from swagger_client.rest import ApiException + + +class TestStep(unittest.TestCase): + """Step unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testStep(self): + """Test Step""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.step.Step() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_steps.py b/test/test_steps.py new file mode 100644 index 0000000..25d88a0 --- /dev/null +++ b/test/test_steps.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.steps import Steps # noqa: E501 +from swagger_client.rest import ApiException + + +class TestSteps(unittest.TestCase): + """Steps unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSteps(self): + """Test Steps""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.steps.Steps() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tag.py b/test/test_tag.py new file mode 100644 index 0000000..12bf34a --- /dev/null +++ b/test/test_tag.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.tag import Tag # noqa: E501 +from swagger_client.rest import ApiException + + +class TestTag(unittest.TestCase): + """Tag unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTag(self): + """Test Tag""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.tag.Tag() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tags.py b/test/test_tags.py new file mode 100644 index 0000000..b007dfc --- /dev/null +++ b/test/test_tags.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.tags import Tags # noqa: E501 +from swagger_client.rest import ApiException + + +class TestTags(unittest.TestCase): + """Tags unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTags(self): + """Test Tags""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.tags.Tags() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_test.py b/test/test_test.py new file mode 100644 index 0000000..497f062 --- /dev/null +++ b/test/test_test.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.test import Test # noqa: E501 +from swagger_client.rest import ApiException + + +class TestTest(unittest.TestCase): + """Test unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTest(self): + """Test Test""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.test.Test() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_test_api.py b/test/test_test_api.py new file mode 100644 index 0000000..9b5e102 --- /dev/null +++ b/test/test_test_api.py @@ -0,0 +1,46 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.api.test_api import TestApi # noqa: E501 +from swagger_client.rest import ApiException + + +class TestTestApi(unittest.TestCase): + """TestApi unit test stubs""" + + def setUp(self): + self.api = swagger_client.api.test_api.TestApi() # noqa: E501 + + def tearDown(self): + pass + + def test_get_tests(self): + """Test case for get_tests + + """ + pass + + def test_serve_instance(self): + """Test case for serve_instance + + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_test_occurrence.py b/test/test_test_occurrence.py new file mode 100644 index 0000000..c5a50ef --- /dev/null +++ b/test/test_test_occurrence.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.test_occurrence import TestOccurrence # noqa: E501 +from swagger_client.rest import ApiException + + +class TestTestOccurrence(unittest.TestCase): + """TestOccurrence unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTestOccurrence(self): + """Test TestOccurrence""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.test_occurrence.TestOccurrence() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_test_occurrence_api.py b/test/test_test_occurrence_api.py new file mode 100644 index 0000000..be89168 --- /dev/null +++ b/test/test_test_occurrence_api.py @@ -0,0 +1,46 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.api.test_occurrence_api import TestOccurrenceApi # noqa: E501 +from swagger_client.rest import ApiException + + +class TestTestOccurrenceApi(unittest.TestCase): + """TestOccurrenceApi unit test stubs""" + + def setUp(self): + self.api = swagger_client.api.test_occurrence_api.TestOccurrenceApi() # noqa: E501 + + def tearDown(self): + pass + + def test_get_test_occurrences(self): + """Test case for get_test_occurrences + + """ + pass + + def test_serve_instance(self): + """Test case for serve_instance + + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_test_occurrences.py b/test/test_test_occurrences.py new file mode 100644 index 0000000..071d9a8 --- /dev/null +++ b/test/test_test_occurrences.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.test_occurrences import TestOccurrences # noqa: E501 +from swagger_client.rest import ApiException + + +class TestTestOccurrences(unittest.TestCase): + """TestOccurrences unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTestOccurrences(self): + """Test TestOccurrences""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.test_occurrences.TestOccurrences() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tests.py b/test/test_tests.py new file mode 100644 index 0000000..a25b6a1 --- /dev/null +++ b/test/test_tests.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.tests import Tests # noqa: E501 +from swagger_client.rest import ApiException + + +class TestTests(unittest.TestCase): + """Tests unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTests(self): + """Test Tests""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.tests.Tests() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_throwable.py b/test/test_throwable.py new file mode 100644 index 0000000..f181454 --- /dev/null +++ b/test/test_throwable.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.throwable import Throwable # noqa: E501 +from swagger_client.rest import ApiException + + +class TestThrowable(unittest.TestCase): + """Throwable unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testThrowable(self): + """Test Throwable""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.throwable.Throwable() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_trigger.py b/test/test_trigger.py new file mode 100644 index 0000000..db72e1e --- /dev/null +++ b/test/test_trigger.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.trigger import Trigger # noqa: E501 +from swagger_client.rest import ApiException + + +class TestTrigger(unittest.TestCase): + """Trigger unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTrigger(self): + """Test Trigger""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.trigger.Trigger() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_triggered_by.py b/test/test_triggered_by.py new file mode 100644 index 0000000..5444ec7 --- /dev/null +++ b/test/test_triggered_by.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.triggered_by import TriggeredBy # noqa: E501 +from swagger_client.rest import ApiException + + +class TestTriggeredBy(unittest.TestCase): + """TriggeredBy unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTriggeredBy(self): + """Test TriggeredBy""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.triggered_by.TriggeredBy() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_triggers.py b/test/test_triggers.py new file mode 100644 index 0000000..0390034 --- /dev/null +++ b/test/test_triggers.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.triggers import Triggers # noqa: E501 +from swagger_client.rest import ApiException + + +class TestTriggers(unittest.TestCase): + """Triggers unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTriggers(self): + """Test Triggers""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.triggers.Triggers() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_type.py b/test/test_type.py new file mode 100644 index 0000000..639e003 --- /dev/null +++ b/test/test_type.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.type import Type # noqa: E501 +from swagger_client.rest import ApiException + + +class TestType(unittest.TestCase): + """Type unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testType(self): + """Test Type""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.type.Type() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_user.py b/test/test_user.py new file mode 100644 index 0000000..122b297 --- /dev/null +++ b/test/test_user.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.user import User # noqa: E501 +from swagger_client.rest import ApiException + + +class TestUser(unittest.TestCase): + """User unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testUser(self): + """Test User""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.user.User() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_user_api.py b/test/test_user_api.py new file mode 100644 index 0000000..8c6c503 --- /dev/null +++ b/test/test_user_api.py @@ -0,0 +1,178 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.api.user_api import UserApi # noqa: E501 +from swagger_client.rest import ApiException + + +class TestUserApi(unittest.TestCase): + """UserApi unit test stubs""" + + def setUp(self): + self.api = swagger_client.api.user_api.UserApi() # noqa: E501 + + def tearDown(self): + pass + + def test_add_group(self): + """Test case for add_group + + """ + pass + + def test_add_role(self): + """Test case for add_role + + """ + pass + + def test_add_role_simple(self): + """Test case for add_role_simple + + """ + pass + + def test_add_role_simple_post(self): + """Test case for add_role_simple_post + + """ + pass + + def test_create_user(self): + """Test case for create_user + + """ + pass + + def test_delete_remember_me(self): + """Test case for delete_remember_me + + """ + pass + + def test_delete_role(self): + """Test case for delete_role + + """ + pass + + def test_delete_user(self): + """Test case for delete_user + + """ + pass + + def test_delete_user_field(self): + """Test case for delete_user_field + + """ + pass + + def test_get_groups(self): + """Test case for get_groups + + """ + pass + + def test_get_permissions(self): + """Test case for get_permissions + + """ + pass + + def test_list_role(self): + """Test case for list_role + + """ + pass + + def test_list_roles(self): + """Test case for list_roles + + """ + pass + + def test_put_user_property(self): + """Test case for put_user_property + + """ + pass + + def test_remove_user_property(self): + """Test case for remove_user_property + + """ + pass + + def test_replace_groups(self): + """Test case for replace_groups + + """ + pass + + def test_replace_roles(self): + """Test case for replace_roles + + """ + pass + + def test_serve_user(self): + """Test case for serve_user + + """ + pass + + def test_serve_user_field(self): + """Test case for serve_user_field + + """ + pass + + def test_serve_user_properties(self): + """Test case for serve_user_properties + + """ + pass + + def test_serve_user_property(self): + """Test case for serve_user_property + + """ + pass + + def test_serve_users(self): + """Test case for serve_users + + """ + pass + + def test_set_user_field(self): + """Test case for set_user_field + + """ + pass + + def test_update_user(self): + """Test case for update_user + + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_users.py b/test/test_users.py new file mode 100644 index 0000000..944dc6c --- /dev/null +++ b/test/test_users.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.users import Users # noqa: E501 +from swagger_client.rest import ApiException + + +class TestUsers(unittest.TestCase): + """Users unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testUsers(self): + """Test Users""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.users.Users() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_vcs_check_status.py b/test/test_vcs_check_status.py new file mode 100644 index 0000000..a6fa470 --- /dev/null +++ b/test/test_vcs_check_status.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.vcs_check_status import VcsCheckStatus # noqa: E501 +from swagger_client.rest import ApiException + + +class TestVcsCheckStatus(unittest.TestCase): + """VcsCheckStatus unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testVcsCheckStatus(self): + """Test VcsCheckStatus""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.vcs_check_status.VcsCheckStatus() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_vcs_labeling.py b/test/test_vcs_labeling.py new file mode 100644 index 0000000..607288d --- /dev/null +++ b/test/test_vcs_labeling.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.vcs_labeling import VcsLabeling # noqa: E501 +from swagger_client.rest import ApiException + + +class TestVcsLabeling(unittest.TestCase): + """VcsLabeling unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testVcsLabeling(self): + """Test VcsLabeling""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.vcs_labeling.VcsLabeling() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_vcs_root.py b/test/test_vcs_root.py new file mode 100644 index 0000000..2c75ac0 --- /dev/null +++ b/test/test_vcs_root.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.vcs_root import VcsRoot # noqa: E501 +from swagger_client.rest import ApiException + + +class TestVcsRoot(unittest.TestCase): + """VcsRoot unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testVcsRoot(self): + """Test VcsRoot""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.vcs_root.VcsRoot() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_vcs_root_api.py b/test/test_vcs_root_api.py new file mode 100644 index 0000000..51ee92f --- /dev/null +++ b/test/test_vcs_root_api.py @@ -0,0 +1,142 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.api.vcs_root_api import VcsRootApi # noqa: E501 +from swagger_client.rest import ApiException + + +class TestVcsRootApi(unittest.TestCase): + """VcsRootApi unit test stubs""" + + def setUp(self): + self.api = swagger_client.api.vcs_root_api.VcsRootApi() # noqa: E501 + + def tearDown(self): + pass + + def test_add_root(self): + """Test case for add_root + + """ + pass + + def test_change_properties(self): + """Test case for change_properties + + """ + pass + + def test_delete_all_properties(self): + """Test case for delete_all_properties + + """ + pass + + def test_delete_parameter(self): + """Test case for delete_parameter + + """ + pass + + def test_delete_root(self): + """Test case for delete_root + + """ + pass + + def test_get_settings_file(self): + """Test case for get_settings_file + + """ + pass + + def test_put_parameter(self): + """Test case for put_parameter + + """ + pass + + def test_serve_field(self): + """Test case for serve_field + + """ + pass + + def test_serve_instance_field(self): + """Test case for serve_instance_field + + """ + pass + + def test_serve_properties(self): + """Test case for serve_properties + + """ + pass + + def test_serve_property(self): + """Test case for serve_property + + """ + pass + + def test_serve_root(self): + """Test case for serve_root + + """ + pass + + def test_serve_root_instance(self): + """Test case for serve_root_instance + + """ + pass + + def test_serve_root_instance_properties(self): + """Test case for serve_root_instance_properties + + """ + pass + + def test_serve_root_instances(self): + """Test case for serve_root_instances + + """ + pass + + def test_serve_roots(self): + """Test case for serve_roots + + """ + pass + + def test_set_field(self): + """Test case for set_field + + """ + pass + + def test_set_instance_field(self): + """Test case for set_instance_field + + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_vcs_root_entries.py b/test/test_vcs_root_entries.py new file mode 100644 index 0000000..c2c8242 --- /dev/null +++ b/test/test_vcs_root_entries.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.vcs_root_entries import VcsRootEntries # noqa: E501 +from swagger_client.rest import ApiException + + +class TestVcsRootEntries(unittest.TestCase): + """VcsRootEntries unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testVcsRootEntries(self): + """Test VcsRootEntries""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.vcs_root_entries.VcsRootEntries() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_vcs_root_entry.py b/test/test_vcs_root_entry.py new file mode 100644 index 0000000..9a93a7a --- /dev/null +++ b/test/test_vcs_root_entry.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.vcs_root_entry import VcsRootEntry # noqa: E501 +from swagger_client.rest import ApiException + + +class TestVcsRootEntry(unittest.TestCase): + """VcsRootEntry unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testVcsRootEntry(self): + """Test VcsRootEntry""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.vcs_root_entry.VcsRootEntry() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_vcs_root_instance.py b/test/test_vcs_root_instance.py new file mode 100644 index 0000000..94b2c03 --- /dev/null +++ b/test/test_vcs_root_instance.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.vcs_root_instance import VcsRootInstance # noqa: E501 +from swagger_client.rest import ApiException + + +class TestVcsRootInstance(unittest.TestCase): + """VcsRootInstance unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testVcsRootInstance(self): + """Test VcsRootInstance""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.vcs_root_instance.VcsRootInstance() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_vcs_root_instance_api.py b/test/test_vcs_root_instance_api.py new file mode 100644 index 0000000..c65ee5a --- /dev/null +++ b/test/test_vcs_root_instance_api.py @@ -0,0 +1,148 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.api.vcs_root_instance_api import VcsRootInstanceApi # noqa: E501 +from swagger_client.rest import ApiException + + +class TestVcsRootInstanceApi(unittest.TestCase): + """VcsRootInstanceApi unit test stubs""" + + def setUp(self): + self.api = swagger_client.api.vcs_root_instance_api.VcsRootInstanceApi() # noqa: E501 + + def tearDown(self): + pass + + def test_delete_instance_field(self): + """Test case for delete_instance_field + + """ + pass + + def test_delete_repository_state(self): + """Test case for delete_repository_state + + """ + pass + + def test_get_children(self): + """Test case for get_children + + """ + pass + + def test_get_children_alias(self): + """Test case for get_children_alias + + """ + pass + + def test_get_content(self): + """Test case for get_content + + """ + pass + + def test_get_content_alias(self): + """Test case for get_content_alias + + """ + pass + + def test_get_metadata(self): + """Test case for get_metadata + + """ + pass + + def test_get_repository_state(self): + """Test case for get_repository_state + + """ + pass + + def test_get_repository_state_creation_date(self): + """Test case for get_repository_state_creation_date + + """ + pass + + def test_get_root(self): + """Test case for get_root + + """ + pass + + def test_get_zipped(self): + """Test case for get_zipped + + """ + pass + + def test_schedule_checking_for_changes(self): + """Test case for schedule_checking_for_changes + + """ + pass + + def test_schedule_checking_for_changes_0(self): + """Test case for schedule_checking_for_changes_0 + + """ + pass + + def test_serve_instance(self): + """Test case for serve_instance + + """ + pass + + def test_serve_instance_field(self): + """Test case for serve_instance_field + + """ + pass + + def test_serve_instances(self): + """Test case for serve_instances + + """ + pass + + def test_serve_root_instance_properties(self): + """Test case for serve_root_instance_properties + + """ + pass + + def test_set_instance_field(self): + """Test case for set_instance_field + + """ + pass + + def test_set_repository_state(self): + """Test case for set_repository_state + + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_vcs_root_instances.py b/test/test_vcs_root_instances.py new file mode 100644 index 0000000..6498f31 --- /dev/null +++ b/test/test_vcs_root_instances.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.vcs_root_instances import VcsRootInstances # noqa: E501 +from swagger_client.rest import ApiException + + +class TestVcsRootInstances(unittest.TestCase): + """VcsRootInstances unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testVcsRootInstances(self): + """Test VcsRootInstances""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.vcs_root_instances.VcsRootInstances() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_vcs_roots.py b/test/test_vcs_roots.py new file mode 100644 index 0000000..b22264c --- /dev/null +++ b/test/test_vcs_roots.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.vcs_roots import VcsRoots # noqa: E501 +from swagger_client.rest import ApiException + + +class TestVcsRoots(unittest.TestCase): + """VcsRoots unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testVcsRoots(self): + """Test VcsRoots""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.vcs_roots.VcsRoots() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_vcs_status.py b/test/test_vcs_status.py new file mode 100644 index 0000000..9acbc98 --- /dev/null +++ b/test/test_vcs_status.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + TeamCity REST API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 10.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import swagger_client +from swagger_client.models.vcs_status import VcsStatus # noqa: E501 +from swagger_client.rest import ApiException + + +class TestVcsStatus(unittest.TestCase): + """VcsStatus unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testVcsStatus(self): + """Test VcsStatus""" + # FIXME: construct object with mandatory attributes with example values + # model = swagger_client.models.vcs_status.VcsStatus() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..3d0be61 --- /dev/null +++ b/tox.ini @@ -0,0 +1,10 @@ +[tox] +envlist = py27, py3 + +[testenv] +deps=-r{toxinidir}/requirements.txt + -r{toxinidir}/test-requirements.txt + +commands= + nosetests \ + []