yagocd package¶
Subpackages¶
- yagocd.resources package
- Submodules
- yagocd.resources.agent module
- yagocd.resources.artifact module
- yagocd.resources.configuration module
- yagocd.resources.environment module
- yagocd.resources.feed module
- yagocd.resources.info module
- yagocd.resources.job module
- yagocd.resources.material module
- yagocd.resources.pipeline module
- yagocd.resources.pipeline_config module
- yagocd.resources.plugin_info module
- yagocd.resources.property module
- yagocd.resources.scm module
- yagocd.resources.stage module
- yagocd.resources.template module
- yagocd.resources.user module
- yagocd.resources.version module
- Module contents
Submodules¶
yagocd.client module¶
-
class
yagocd.client.Yagocd(server=None, auth=None, options=None)[source]¶ Bases:
objectMain class of the package, that gives user access to Go REST API methods.
-
DEFAULT_OPTIONS= {'headers': {'Accept': 'application/vnd.go.cd.v1+json'}, 'verify': True, 'api_path': 'api/', 'context_path': 'go/', 'server': 'http://localhost:8153'}¶
-
agents¶ Property for accessing
AgentManagerinstance, which is used to manage agents.Return type: yagocd.resources.agent.AgentManager
-
artifacts¶ Property for accessing
ArtifactManagerinstance, which is used to manage artifacts.Return type: yagocd.resources.artifact.ArtifactManager
-
configurations¶ Property for accessing
ConfigurationManagerinstance, which is used to manage configurations.Return type: yagocd.resources.configuration.ConfigurationManager
-
elastic_profiles¶ Property for accessing
ElasticAgentProfileManagerinstance, which is used to manage elastic agent profiles.Return type: yagocd.resources.elastic_profile.ElasticAgentProfileManager
-
encryption¶ Property for accessing
EncryptionManagerinstance, which is used to manage encryption.Return type: yagocd.resources.encryption.EncryptionManager
-
environments¶ Property for accessing
EnvironmentManagerinstance, which is used to manage environments.Return type: yagocd.resources.environment.EnvironmentManager
-
feeds¶ Property for accessing
FeedManagerinstance, which is used to manage feeds.Return type: yagocd.resources.feed.FeedManager
-
info¶ Property for accessing
InfoManagerinstance, which is used to general server info.Return type: yagocd.resources.info.InfoManager
-
jobs¶ Property for accessing
JobManagerinstance, which is used to manage feeds.Return type: yagocd.resources.job.JobManager
-
materials¶ Property for accessing
MaterialManagerinstance, which is used to manage materials.Return type: yagocd.resources.material.MaterialManager
-
package_repositories¶ Property for accessing
PackageRepositoryManagerinstance, which is used to manage package repos.Return type: yagocd.resources.package_repository.PackageRepositoryManager
-
packages¶ Property for accessing
PackageManagerinstance, which is used to manage packages.Return type: yagocd.resources.package.PackageManager
-
pipeline_configs¶ Property for accessing
PipelineConfigManagerinstance, which is used to manage pipeline configurations.Return type: yagocd.resources.pipeline_config.PipelineConfigManager
-
pipelines¶ Property for accessing
PipelineManagerinstance, which is used to manage pipelines.Return type: yagocd.resources.pipeline.PipelineManager
-
plugin_info¶ Property for accessing
PluginInfoManagerinstance, which is used to manage pipeline configurations.Return type: yagocd.resources.plugin_info.PluginInfoManager
-
properties¶ Property for accessing
PropertyManagerinstance, which is used to manage properties of the jobs.Return type: yagocd.resources.property.PropertyManager
-
scms¶ Property for accessing
SCMManagerinstance, which is used to manage pluggable SCM materials.Return type: yagocd.resources.scm.SCMManager
-
server_url¶ Property for getting server url.
Returns: server url for this instance.
-
stages¶ Property for accessing
StageManagerinstance, which is used to manage stages.Return type: yagocd.resources.stage.StageManager
-
templates¶ Property for accessing
TemplateManagerinstance, which is used to manage templates.Return type: yagocd.resources.template.TemplateManager
-
users¶ Property for accessing
UserManagerinstance, which is used to manage users.Return type: yagocd.resources.user.UserManager
-
versions¶ Property for accessing
VersionManagerinstance, which is used to get server info.Return type: yagocd.resources.version.VersionManager
-
yagocd.exception module¶
-
exception
yagocd.exception.RequestError(summary, response)[source]¶ Bases:
yagocd.exception.YagocdExceptionException for throwing on request errors.
Usually extended error information would be contained in response as json object.
yagocd.session module¶
-
class
yagocd.session.Session(auth, options)[source]¶ Bases:
objectClass for working with sessions. Instance of this class is created only once in the initialization of
yagocd.client.Clientand then passed as a parameter for all managers.-
server_url¶ Property for getting server url.
Returns: server url for this instance.
-
server_version¶ Special method for getting server version.
Because of different behaviour on different versions of server, we have to pass different headers to the endpoints. This method requests the version from server and caches it in internal variable, so other resources could use it.
Returns: server version parsed from about page.
-
Module contents¶
-
class
yagocd.Yagocd(server=None, auth=None, options=None)[source]¶ Bases:
objectMain class of the package, that gives user access to Go REST API methods.
-
DEFAULT_OPTIONS= {'headers': {'Accept': 'application/vnd.go.cd.v1+json'}, 'verify': True, 'api_path': 'api/', 'context_path': 'go/', 'server': 'http://localhost:8153'}¶
-
agents¶ Property for accessing
AgentManagerinstance, which is used to manage agents.Return type: yagocd.resources.agent.AgentManager
-
artifacts¶ Property for accessing
ArtifactManagerinstance, which is used to manage artifacts.Return type: yagocd.resources.artifact.ArtifactManager
-
configurations¶ Property for accessing
ConfigurationManagerinstance, which is used to manage configurations.Return type: yagocd.resources.configuration.ConfigurationManager
-
elastic_profiles¶ Property for accessing
ElasticAgentProfileManagerinstance, which is used to manage elastic agent profiles.Return type: yagocd.resources.elastic_profile.ElasticAgentProfileManager
-
encryption¶ Property for accessing
EncryptionManagerinstance, which is used to manage encryption.Return type: yagocd.resources.encryption.EncryptionManager
-
environments¶ Property for accessing
EnvironmentManagerinstance, which is used to manage environments.Return type: yagocd.resources.environment.EnvironmentManager
-
feeds¶ Property for accessing
FeedManagerinstance, which is used to manage feeds.Return type: yagocd.resources.feed.FeedManager
-
info¶ Property for accessing
InfoManagerinstance, which is used to general server info.Return type: yagocd.resources.info.InfoManager
-
jobs¶ Property for accessing
JobManagerinstance, which is used to manage feeds.Return type: yagocd.resources.job.JobManager
-
materials¶ Property for accessing
MaterialManagerinstance, which is used to manage materials.Return type: yagocd.resources.material.MaterialManager
-
package_repositories¶ Property for accessing
PackageRepositoryManagerinstance, which is used to manage package repos.Return type: yagocd.resources.package_repository.PackageRepositoryManager
-
packages¶ Property for accessing
PackageManagerinstance, which is used to manage packages.Return type: yagocd.resources.package.PackageManager
-
pipeline_configs¶ Property for accessing
PipelineConfigManagerinstance, which is used to manage pipeline configurations.Return type: yagocd.resources.pipeline_config.PipelineConfigManager
-
pipelines¶ Property for accessing
PipelineManagerinstance, which is used to manage pipelines.Return type: yagocd.resources.pipeline.PipelineManager
-
plugin_info¶ Property for accessing
PluginInfoManagerinstance, which is used to manage pipeline configurations.Return type: yagocd.resources.plugin_info.PluginInfoManager
-
properties¶ Property for accessing
PropertyManagerinstance, which is used to manage properties of the jobs.Return type: yagocd.resources.property.PropertyManager
-
scms¶ Property for accessing
SCMManagerinstance, which is used to manage pluggable SCM materials.Return type: yagocd.resources.scm.SCMManager
-
server_url¶ Property for getting server url.
Returns: server url for this instance.
-
stages¶ Property for accessing
StageManagerinstance, which is used to manage stages.Return type: yagocd.resources.stage.StageManager
-
templates¶ Property for accessing
TemplateManagerinstance, which is used to manage templates.Return type: yagocd.resources.template.TemplateManager
-
users¶ Property for accessing
UserManagerinstance, which is used to manage users.Return type: yagocd.resources.user.UserManager
-
versions¶ Property for accessing
VersionManagerinstance, which is used to get server info.Return type: yagocd.resources.version.VersionManager
-