All URIs are relative to https://localhost
Method | HTTP request | Description |
---|---|---|
project_service_create | POST /api/v1/projects | Create a new project |
project_service_create_token | POST /api/v1/projects/{project}/roles/{role}/token | Create a new project token |
project_service_delete | DELETE /api/v1/projects/{name} | Delete deletes a project |
project_service_delete_token | DELETE /api/v1/projects/{project}/roles/{role}/token/{iat} | Delete a new project token |
project_service_get | GET /api/v1/projects/{name} | Get returns a project by name |
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 |
project_service_get_global_projects | GET /api/v1/projects/{name}/globalprojects | Get returns a virtual project by name |
project_service_get_sync_windows_state | GET /api/v1/projects/{name}/syncwindows | GetSchedulesState returns true if there are any active sync syncWindows |
project_service_list | GET /api/v1/projects | List returns list of projects |
project_service_list_events | GET /api/v1/projects/{name}/events | ListEvents returns a list of project events |
project_service_list_links | GET /api/v1/projects/{name}/links | ListLinks returns all deep links for the particular project |
project_service_update | PUT /api/v1/projects/{project.metadata.name} | Update updates a project |
V1alpha1AppProject project_service_create(body)
Create a new project
# load the gem
require 'argocd-client'
api_instance = ArgoCD::ProjectServiceApi.new
body = ArgoCD::ProjectProjectCreateRequest.new # ProjectProjectCreateRequest |
begin
#Create a new project
result = api_instance.project_service_create(body)
p result
rescue ArgoCD::ApiError => e
puts "Exception when calling ProjectServiceApi->project_service_create: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
body | ProjectProjectCreateRequest |
No authorization required
- Content-Type: application/json
- Accept: application/json
ProjectProjectTokenResponse project_service_create_token(project, role, body)
Create a new project token
# load the gem
require 'argocd-client'
api_instance = ArgoCD::ProjectServiceApi.new
project = 'project_example' # String |
role = 'role_example' # String |
body = ArgoCD::ProjectProjectTokenCreateRequest.new # ProjectProjectTokenCreateRequest |
begin
#Create a new project token
result = api_instance.project_service_create_token(project, role, body)
p result
rescue ArgoCD::ApiError => e
puts "Exception when calling ProjectServiceApi->project_service_create_token: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
project | String | ||
role | String | ||
body | ProjectProjectTokenCreateRequest |
No authorization required
- Content-Type: application/json
- Accept: application/json
ProjectEmptyResponse project_service_delete(name)
Delete deletes a project
# load the gem
require 'argocd-client'
api_instance = ArgoCD::ProjectServiceApi.new
name = 'name_example' # String |
begin
#Delete deletes a project
result = api_instance.project_service_delete(name)
p result
rescue ArgoCD::ApiError => e
puts "Exception when calling ProjectServiceApi->project_service_delete: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
name | String |
No authorization required
- Content-Type: application/json
- Accept: application/json
ProjectEmptyResponse project_service_delete_token(project, role, iat, opts)
Delete a new project token
# load the gem
require 'argocd-client'
api_instance = ArgoCD::ProjectServiceApi.new
project = 'project_example' # String |
role = 'role_example' # String |
iat = 'iat_example' # String |
opts = {
id: 'id_example' # String |
}
begin
#Delete a new project token
result = api_instance.project_service_delete_token(project, role, iat, opts)
p result
rescue ArgoCD::ApiError => e
puts "Exception when calling ProjectServiceApi->project_service_delete_token: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
project | String | ||
role | String | ||
iat | String | ||
id | String | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
V1alpha1AppProject project_service_get(name)
Get returns a project by name
# load the gem
require 'argocd-client'
api_instance = ArgoCD::ProjectServiceApi.new
name = 'name_example' # String |
begin
#Get returns a project by name
result = api_instance.project_service_get(name)
p result
rescue ArgoCD::ApiError => e
puts "Exception when calling ProjectServiceApi->project_service_get: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
name | String |
No authorization required
- Content-Type: application/json
- Accept: application/json
ProjectDetailedProjectsResponse project_service_get_detailed_project(name)
GetDetailedProject returns a project that include project, global project and scoped resources by name
# load the gem
require 'argocd-client'
api_instance = ArgoCD::ProjectServiceApi.new
name = 'name_example' # String |
begin
#GetDetailedProject returns a project that include project, global project and scoped resources by name
result = api_instance.project_service_get_detailed_project(name)
p result
rescue ArgoCD::ApiError => e
puts "Exception when calling ProjectServiceApi->project_service_get_detailed_project: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
name | String |
ProjectDetailedProjectsResponse
No authorization required
- Content-Type: application/json
- Accept: application/json
ProjectGlobalProjectsResponse project_service_get_global_projects(name)
Get returns a virtual project by name
# load the gem
require 'argocd-client'
api_instance = ArgoCD::ProjectServiceApi.new
name = 'name_example' # String |
begin
#Get returns a virtual project by name
result = api_instance.project_service_get_global_projects(name)
p result
rescue ArgoCD::ApiError => e
puts "Exception when calling ProjectServiceApi->project_service_get_global_projects: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
name | String |
No authorization required
- Content-Type: application/json
- Accept: application/json
ProjectSyncWindowsResponse project_service_get_sync_windows_state(name)
GetSchedulesState returns true if there are any active sync syncWindows
# load the gem
require 'argocd-client'
api_instance = ArgoCD::ProjectServiceApi.new
name = 'name_example' # String |
begin
#GetSchedulesState returns true if there are any active sync syncWindows
result = api_instance.project_service_get_sync_windows_state(name)
p result
rescue ArgoCD::ApiError => e
puts "Exception when calling ProjectServiceApi->project_service_get_sync_windows_state: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
name | String |
No authorization required
- Content-Type: application/json
- Accept: application/json
V1alpha1AppProjectList project_service_list(opts)
List returns list of projects
# load the gem
require 'argocd-client'
api_instance = ArgoCD::ProjectServiceApi.new
opts = {
name: 'name_example' # String |
}
begin
#List returns list of projects
result = api_instance.project_service_list(opts)
p result
rescue ArgoCD::ApiError => e
puts "Exception when calling ProjectServiceApi->project_service_list: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
name | String | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
V1EventList project_service_list_events(name)
ListEvents returns a list of project events
# load the gem
require 'argocd-client'
api_instance = ArgoCD::ProjectServiceApi.new
name = 'name_example' # String |
begin
#ListEvents returns a list of project events
result = api_instance.project_service_list_events(name)
p result
rescue ArgoCD::ApiError => e
puts "Exception when calling ProjectServiceApi->project_service_list_events: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
name | String |
No authorization required
- Content-Type: application/json
- Accept: application/json
ApplicationLinksResponse project_service_list_links(name)
ListLinks returns all deep links for the particular project
# load the gem
require 'argocd-client'
api_instance = ArgoCD::ProjectServiceApi.new
name = 'name_example' # String |
begin
#ListLinks returns all deep links for the particular project
result = api_instance.project_service_list_links(name)
p result
rescue ArgoCD::ApiError => e
puts "Exception when calling ProjectServiceApi->project_service_list_links: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
name | String |
No authorization required
- Content-Type: application/json
- Accept: application/json
V1alpha1AppProject project_service_update(project_metadata_name, body)
Update updates a project
# load the gem
require 'argocd-client'
api_instance = ArgoCD::ProjectServiceApi.new
project_metadata_name = 'project_metadata_name_example' # String | Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names +optional
body = ArgoCD::ProjectProjectUpdateRequest.new # ProjectProjectUpdateRequest |
begin
#Update updates a project
result = api_instance.project_service_update(project_metadata_name, body)
p result
rescue ArgoCD::ApiError => e
puts "Exception when calling ProjectServiceApi->project_service_update: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
project_metadata_name | String | Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names +optional | |
body | ProjectProjectUpdateRequest |
No authorization required
- Content-Type: application/json
- Accept: application/json