Skip to content

Ruby ArgoCD HTTP client generated with swagger-codegen

Notifications You must be signed in to change notification settings

releasehub-com/argocd-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

argocd-client

ArgoCD - the Ruby gem for the Consolidate Services

Description of all APIs

This SDK is automatically generated by the Swagger Codegen project:

  • API version: version not set
  • Package version: 1.0.0
  • Build package: io.swagger.codegen.languages.RubyClientCodegen

Installation

Build a gem

To build the Ruby code into a gem:

gem build argocd-client.gemspec

Then either install the gem locally:

gem install ./argocd-client-1.0.0.gem

(for development, run gem install --dev ./argocd-client-1.0.0.gem to install the development dependencies)

or publish the gem to a gem hosting service, e.g. RubyGems.

Finally add this to the Gemfile:

gem 'argocd-client', '~> 1.0.0'

Install from Git

If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:

gem 'argocd-client', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'

Include the Ruby code directly

Include the Ruby code directly using -I as follows:

ruby -Ilib script.rb

Getting Started

Please follow the installation procedure and then run the following code:

# Load the gem
require 'argocd-client'

api_instance = ArgoCD::AccountServiceApi.new

resource = 'resource_example' # String | 

action = 'action_example' # String | 

subresource = 'subresource_example' # String | 


begin
  #CanI checks if the current account has permission to perform an action
  result = api_instance.account_service_can_i(resource, action, subresource)
  p result
rescue ArgoCD::ApiError => e
  puts "Exception when calling AccountServiceApi->account_service_can_i: #{e}"
end

Documentation for API Endpoints

All URIs are relative to https://localhost

Class Method HTTP request Description
ArgoCD::AccountServiceApi account_service_can_i GET /api/v1/account/can-i/{resource}/{action}/{subresource} CanI checks if the current account has permission to perform an action
ArgoCD::AccountServiceApi account_service_create_token POST /api/v1/account/{name}/token CreateToken creates a token
ArgoCD::AccountServiceApi account_service_delete_token DELETE /api/v1/account/{name}/token/{id} DeleteToken deletes a token
ArgoCD::AccountServiceApi account_service_get_account GET /api/v1/account/{name} GetAccount returns an account
ArgoCD::AccountServiceApi account_service_list_accounts GET /api/v1/account ListAccounts returns the list of accounts
ArgoCD::AccountServiceApi account_service_update_password PUT /api/v1/account/password UpdatePassword updates an account's password to a new value
ArgoCD::ApplicationServiceApi application_service_create POST /api/v1/applications Create creates an application
ArgoCD::ApplicationServiceApi application_service_delete DELETE /api/v1/applications/{name} Delete deletes an application
ArgoCD::ApplicationServiceApi application_service_delete_resource DELETE /api/v1/applications/{name}/resource DeleteResource deletes a single application resource
ArgoCD::ApplicationServiceApi application_service_get GET /api/v1/applications/{name} Get returns an application by name
ArgoCD::ApplicationServiceApi application_service_get_application_sync_windows GET /api/v1/applications/{name}/syncwindows Get returns sync windows of the application
ArgoCD::ApplicationServiceApi application_service_get_manifests GET /api/v1/applications/{name}/manifests GetManifests returns application manifests
ArgoCD::ApplicationServiceApi application_service_get_manifests_with_files POST /api/v1/applications/manifestsWithFiles GetManifestsWithFiles returns application manifests using provided files to generate them
ArgoCD::ApplicationServiceApi application_service_get_resource GET /api/v1/applications/{name}/resource GetResource returns single application resource
ArgoCD::ApplicationServiceApi application_service_list GET /api/v1/applications List returns list of applications
ArgoCD::ApplicationServiceApi application_service_list_links GET /api/v1/applications/{name}/links ListLinks returns the list of all application deep links
ArgoCD::ApplicationServiceApi application_service_list_resource_actions GET /api/v1/applications/{name}/resource/actions ListResourceActions returns list of resource actions
ArgoCD::ApplicationServiceApi application_service_list_resource_events GET /api/v1/applications/{name}/events ListResourceEvents returns a list of event resources
ArgoCD::ApplicationServiceApi application_service_list_resource_links GET /api/v1/applications/{name}/resource/links ListResourceLinks returns the list of all resource deep links
ArgoCD::ApplicationServiceApi application_service_managed_resources GET /api/v1/applications/{applicationName}/managed-resources ManagedResources returns list of managed resources
ArgoCD::ApplicationServiceApi application_service_patch PATCH /api/v1/applications/{name} Patch patch an application
ArgoCD::ApplicationServiceApi application_service_patch_resource POST /api/v1/applications/{name}/resource PatchResource patch single application resource
ArgoCD::ApplicationServiceApi application_service_pod_logs GET /api/v1/applications/{name}/pods/{podName}/logs PodLogs returns stream of log entries for the specified pod. Pod
ArgoCD::ApplicationServiceApi application_service_pod_logs2 GET /api/v1/applications/{name}/logs PodLogs returns stream of log entries for the specified pod. Pod
ArgoCD::ApplicationServiceApi application_service_resource_tree GET /api/v1/applications/{applicationName}/resource-tree ResourceTree returns resource tree
ArgoCD::ApplicationServiceApi application_service_revision_metadata GET /api/v1/applications/{name}/revisions/{revision}/metadata Get the meta-data (author, date, tags, message) for a specific revision of the application
ArgoCD::ApplicationServiceApi application_service_rollback POST /api/v1/applications/{name}/rollback Rollback syncs an application to its target state
ArgoCD::ApplicationServiceApi application_service_run_resource_action POST /api/v1/applications/{name}/resource/actions RunResourceAction run resource action
ArgoCD::ApplicationServiceApi application_service_sync POST /api/v1/applications/{name}/sync Sync syncs an application to its target state
ArgoCD::ApplicationServiceApi application_service_terminate_operation DELETE /api/v1/applications/{name}/operation TerminateOperation terminates the currently running operation
ArgoCD::ApplicationServiceApi application_service_update PUT /api/v1/applications/{application.metadata.name} Update updates an application
ArgoCD::ApplicationServiceApi application_service_update_spec PUT /api/v1/applications/{name}/spec UpdateSpec updates an application spec
ArgoCD::ApplicationServiceApi application_service_watch GET /api/v1/stream/applications Watch returns stream of application change events
ArgoCD::ApplicationServiceApi application_service_watch_resource_tree GET /api/v1/stream/applications/{applicationName}/resource-tree Watch returns stream of application resource tree
ArgoCD::ApplicationSetServiceApi application_set_service_create POST /api/v1/applicationsets Create creates an applicationset
ArgoCD::ApplicationSetServiceApi application_set_service_delete DELETE /api/v1/applicationsets/{name} Delete deletes an application set
ArgoCD::ApplicationSetServiceApi application_set_service_get GET /api/v1/applicationsets/{name} Get returns an applicationset by name
ArgoCD::ApplicationSetServiceApi application_set_service_list GET /api/v1/applicationsets List returns list of applicationset
ArgoCD::CertificateServiceApi certificate_service_create_certificate POST /api/v1/certificates Creates repository certificates on the server
ArgoCD::CertificateServiceApi certificate_service_delete_certificate DELETE /api/v1/certificates Delete the certificates that match the RepositoryCertificateQuery
ArgoCD::CertificateServiceApi certificate_service_list_certificates GET /api/v1/certificates List all available repository certificates
ArgoCD::ClusterServiceApi cluster_service_create POST /api/v1/clusters Create creates a cluster
ArgoCD::ClusterServiceApi cluster_service_delete DELETE /api/v1/clusters/{id.value} Delete deletes a cluster
ArgoCD::ClusterServiceApi cluster_service_get GET /api/v1/clusters/{id.value} Get returns a cluster by server address
ArgoCD::ClusterServiceApi cluster_service_invalidate_cache POST /api/v1/clusters/{id.value}/invalidate-cache InvalidateCache invalidates cluster cache
ArgoCD::ClusterServiceApi cluster_service_list GET /api/v1/clusters List returns list of clusters
ArgoCD::ClusterServiceApi cluster_service_rotate_auth POST /api/v1/clusters/{id.value}/rotate-auth RotateAuth rotates the bearer token used for a cluster
ArgoCD::ClusterServiceApi cluster_service_update PUT /api/v1/clusters/{id.value} Update updates a cluster
ArgoCD::GPGKeyServiceApi g_pg_key_service_create POST /api/v1/gpgkeys Create one or more GPG public keys in the server's configuration
ArgoCD::GPGKeyServiceApi g_pg_key_service_delete DELETE /api/v1/gpgkeys Delete specified GPG public key from the server's configuration
ArgoCD::GPGKeyServiceApi g_pg_key_service_get GET /api/v1/gpgkeys/{keyID} Get information about specified GPG public key from the server
ArgoCD::GPGKeyServiceApi g_pg_key_service_list GET /api/v1/gpgkeys List all available repository certificates
ArgoCD::NotificationServiceApi notification_service_list_services GET /api/v1/notifications/services List returns list of services
ArgoCD::NotificationServiceApi notification_service_list_templates GET /api/v1/notifications/templates List returns list of templates
ArgoCD::NotificationServiceApi notification_service_list_triggers GET /api/v1/notifications/triggers List returns list of triggers
ArgoCD::ProjectServiceApi project_service_create POST /api/v1/projects Create a new project
ArgoCD::ProjectServiceApi project_service_create_token POST /api/v1/projects/{project}/roles/{role}/token Create a new project token
ArgoCD::ProjectServiceApi project_service_delete DELETE /api/v1/projects/{name} Delete deletes a project
ArgoCD::ProjectServiceApi project_service_delete_token DELETE /api/v1/projects/{project}/roles/{role}/token/{iat} Delete a new project token
ArgoCD::ProjectServiceApi project_service_get GET /api/v1/projects/{name} Get returns a project by name
ArgoCD::ProjectServiceApi project_service_get_detailed_project GET /api/v1/projects/{name}/detailed GetDetailedProject returns a project that include project, global project and scoped resources by name
ArgoCD::ProjectServiceApi project_service_get_global_projects GET /api/v1/projects/{name}/globalprojects Get returns a virtual project by name
ArgoCD::ProjectServiceApi project_service_get_sync_windows_state GET /api/v1/projects/{name}/syncwindows GetSchedulesState returns true if there are any active sync syncWindows
ArgoCD::ProjectServiceApi project_service_list GET /api/v1/projects List returns list of projects
ArgoCD::ProjectServiceApi project_service_list_events GET /api/v1/projects/{name}/events ListEvents returns a list of project events
ArgoCD::ProjectServiceApi project_service_list_links GET /api/v1/projects/{name}/links ListLinks returns all deep links for the particular project
ArgoCD::ProjectServiceApi project_service_update PUT /api/v1/projects/{project.metadata.name} Update updates a project
ArgoCD::RepoCredsServiceApi repo_creds_service_create_repository_credentials POST /api/v1/repocreds CreateRepositoryCredentials creates a new repository credential set
ArgoCD::RepoCredsServiceApi repo_creds_service_delete_repository_credentials DELETE /api/v1/repocreds/{url} DeleteRepositoryCredentials deletes a repository credential set from the configuration
ArgoCD::RepoCredsServiceApi repo_creds_service_list_repository_credentials GET /api/v1/repocreds ListRepositoryCredentials gets a list of all configured repository credential sets
ArgoCD::RepoCredsServiceApi repo_creds_service_update_repository_credentials PUT /api/v1/repocreds/{creds.url} UpdateRepositoryCredentials updates a repository credential set
ArgoCD::RepositoryServiceApi repository_service_create_repository POST /api/v1/repositories CreateRepository creates a new repository configuration
ArgoCD::RepositoryServiceApi repository_service_delete_repository DELETE /api/v1/repositories/{repo} DeleteRepository deletes a repository from the configuration
ArgoCD::RepositoryServiceApi repository_service_get GET /api/v1/repositories/{repo} Get returns a repository or its credentials
ArgoCD::RepositoryServiceApi repository_service_get_app_details POST /api/v1/repositories/{source.repoURL}/appdetails GetAppDetails returns application details by given path
ArgoCD::RepositoryServiceApi repository_service_get_helm_charts GET /api/v1/repositories/{repo}/helmcharts GetHelmCharts returns list of helm charts in the specified repository
ArgoCD::RepositoryServiceApi repository_service_list_apps GET /api/v1/repositories/{repo}/apps ListApps returns list of apps in the repo
ArgoCD::RepositoryServiceApi repository_service_list_refs GET /api/v1/repositories/{repo}/refs
ArgoCD::RepositoryServiceApi repository_service_list_repositories GET /api/v1/repositories ListRepositories gets a list of all configured repositories
ArgoCD::RepositoryServiceApi repository_service_update_repository PUT /api/v1/repositories/{repo.repo} UpdateRepository updates a repository configuration
ArgoCD::RepositoryServiceApi repository_service_validate_access POST /api/v1/repositories/{repo}/validate ValidateAccess validates access to a repository with given parameters
ArgoCD::SessionServiceApi session_service_create POST /api/v1/session Create a new JWT for authentication and set a cookie if using HTTP
ArgoCD::SessionServiceApi session_service_delete DELETE /api/v1/session Delete an existing JWT cookie if using HTTP
ArgoCD::SessionServiceApi session_service_get_user_info GET /api/v1/session/userinfo Get the current user's info
ArgoCD::SettingsServiceApi settings_service_get GET /api/v1/settings Get returns Argo CD settings
ArgoCD::SettingsServiceApi settings_service_get_plugins GET /api/v1/settings/plugins Get returns Argo CD plugins
ArgoCD::VersionServiceApi version_service_version GET /api/version Version returns version information of the API server

Documentation for Models

Documentation for Authorization

All endpoints do not require authorization.

About

Ruby ArgoCD HTTP client generated with swagger-codegen

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published