PulpCertguardClient::ContentguardsX509Api

All URIs are relative to http://pulp

Method HTTP request Description
create POST /pulp/api/v3/contentguards/certguard/x509/ Create a x509 cert guard
delete DELETE certguard_x509_cert_guard_href Delete a x509 cert guard
list GET /pulp/api/v3/contentguards/certguard/x509/ List x509 cert guards
partial_update PATCH certguard_x509_cert_guard_href Update a x509 cert guard
read GET certguard_x509_cert_guard_href Inspect a x509 cert guard
update PUT certguard_x509_cert_guard_href Update a x509 cert guard

create

CertguardX509CertGuardResponse create(certguard_x509_cert_guard)

Create a x509 cert guard

X509CertGuard API Viewsets.

Example

# load the gem
require 'pulp_certguard_client'
# setup authorization
PulpCertguardClient.configure do |config|
  # Configure HTTP basic authorization: basicAuth
  config.username = 'YOUR USERNAME'
  config.password = 'YOUR PASSWORD'
end

api_instance = PulpCertguardClient::ContentguardsX509Api.new
certguard_x509_cert_guard = PulpCertguardClient::CertguardX509CertGuard.new # CertguardX509CertGuard | 

begin
  #Create a x509 cert guard
  result = api_instance.create(certguard_x509_cert_guard)
  p result
rescue PulpCertguardClient::ApiError => e
  puts "Exception when calling ContentguardsX509Api->create: #{e}"
end

Parameters

Name Type Description Notes
certguard_x509_cert_guard CertguardX509CertGuard

Return type

CertguardX509CertGuardResponse

Authorization

basicAuth

HTTP request headers

  • Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
  • Accept: application/json

delete

delete(certguard_x509_cert_guard_href)

Delete a x509 cert guard

X509CertGuard API Viewsets.

Example

# load the gem
require 'pulp_certguard_client'
# setup authorization
PulpCertguardClient.configure do |config|
  # Configure HTTP basic authorization: basicAuth
  config.username = 'YOUR USERNAME'
  config.password = 'YOUR PASSWORD'
end

api_instance = PulpCertguardClient::ContentguardsX509Api.new
certguard_x509_cert_guard_href = 'certguard_x509_cert_guard_href_example' # String | 

begin
  #Delete a x509 cert guard
  api_instance.delete(certguard_x509_cert_guard_href)
rescue PulpCertguardClient::ApiError => e
  puts "Exception when calling ContentguardsX509Api->delete: #{e}"
end

Parameters

Name Type Description Notes
certguard_x509_cert_guard_href String

Return type

nil (empty response body)

Authorization

basicAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

list

PaginatedcertguardX509CertGuardResponseList list(opts)

List x509 cert guards

X509CertGuard API Viewsets.

Example

# load the gem
require 'pulp_certguard_client'
# setup authorization
PulpCertguardClient.configure do |config|
  # Configure HTTP basic authorization: basicAuth
  config.username = 'YOUR USERNAME'
  config.password = 'YOUR PASSWORD'
end

api_instance = PulpCertguardClient::ContentguardsX509Api.new
opts = {
  limit: 56, # Integer | Number of results to return per page.
  name: 'name_example', # String | Filter results where name matches value
  name__contains: 'name__contains_example', # String | Filter results where name contains value
  name__icontains: 'name__icontains_example', # String | Filter results where name contains value
  name__iexact: 'name__iexact_example', # String | Filter results where name matches value
  name__in: ['name__in_example'], # Array<String> | Filter results where name is in a comma-separated list of values
  name__iregex: 'name__iregex_example', # String | Filter results where name matches regex value
  name__istartswith: 'name__istartswith_example', # String | Filter results where name starts with value
  name__regex: 'name__regex_example', # String | Filter results where name matches regex value
  name__startswith: 'name__startswith_example', # String | Filter results where name starts with value
  offset: 56, # Integer | The initial index from which to return the results.
  ordering: ['ordering_example'], # Array<String> | Ordering  * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `description` - Description * `-description` - Description (descending) * `pk` - Pk * `-pk` - Pk (descending)
  pulp_href__in: ['pulp_href__in_example'], # Array<String> | Multiple values may be separated by commas.
  pulp_id__in: ['pulp_id__in_example'], # Array<String> | Multiple values may be separated by commas.
  q: 'q_example', # String | 
  fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
  exclude_fields: ['exclude_fields_example'] # Array<String> | A list of fields to exclude from the response.
}

begin
  #List x509 cert guards
  result = api_instance.list(opts)
  p result
rescue PulpCertguardClient::ApiError => e
  puts "Exception when calling ContentguardsX509Api->list: #{e}"
end

Parameters

Name Type Description Notes
limit Integer Number of results to return per page. [optional]
name String Filter results where name matches value [optional]
name__contains String Filter results where name contains value [optional]
name__icontains String Filter results where name contains value [optional]
name__iexact String Filter results where name matches value [optional]
name__in Array<String> Filter results where name is in a comma-separated list of values [optional]
name__iregex String Filter results where name matches regex value [optional]
name__istartswith String Filter results where name starts with value [optional]
name__regex String Filter results where name matches regex value [optional]
name__startswith String Filter results where name starts with value [optional]
offset Integer The initial index from which to return the results. [optional]
ordering Array<String> Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `description` - Description * `-description` - Description (descending) * `pk` - Pk * `-pk` - Pk (descending) [optional]
pulp_href__in Array<String> Multiple values may be separated by commas. [optional]
pulp_id__in Array<String> Multiple values may be separated by commas. [optional]
q String [optional]
fields Array<String> A list of fields to include in the response. [optional]
exclude_fields Array<String> A list of fields to exclude from the response. [optional]

Return type

PaginatedcertguardX509CertGuardResponseList

Authorization

basicAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

partial_update

CertguardX509CertGuardResponse partial_update(certguard_x509_cert_guard_href, patchedcertguard_x509_cert_guard)

Update a x509 cert guard

X509CertGuard API Viewsets.

Example

# load the gem
require 'pulp_certguard_client'
# setup authorization
PulpCertguardClient.configure do |config|
  # Configure HTTP basic authorization: basicAuth
  config.username = 'YOUR USERNAME'
  config.password = 'YOUR PASSWORD'
end

api_instance = PulpCertguardClient::ContentguardsX509Api.new
certguard_x509_cert_guard_href = 'certguard_x509_cert_guard_href_example' # String | 
patchedcertguard_x509_cert_guard = PulpCertguardClient::PatchedcertguardX509CertGuard.new # PatchedcertguardX509CertGuard | 

begin
  #Update a x509 cert guard
  result = api_instance.partial_update(certguard_x509_cert_guard_href, patchedcertguard_x509_cert_guard)
  p result
rescue PulpCertguardClient::ApiError => e
  puts "Exception when calling ContentguardsX509Api->partial_update: #{e}"
end

Parameters

Name Type Description Notes
certguard_x509_cert_guard_href String
patchedcertguard_x509_cert_guard PatchedcertguardX509CertGuard

Return type

CertguardX509CertGuardResponse

Authorization

basicAuth

HTTP request headers

  • Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
  • Accept: application/json

read

CertguardX509CertGuardResponse read(certguard_x509_cert_guard_href, opts)

Inspect a x509 cert guard

X509CertGuard API Viewsets.

Example

# load the gem
require 'pulp_certguard_client'
# setup authorization
PulpCertguardClient.configure do |config|
  # Configure HTTP basic authorization: basicAuth
  config.username = 'YOUR USERNAME'
  config.password = 'YOUR PASSWORD'
end

api_instance = PulpCertguardClient::ContentguardsX509Api.new
certguard_x509_cert_guard_href = 'certguard_x509_cert_guard_href_example' # String | 
opts = {
  fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
  exclude_fields: ['exclude_fields_example'] # Array<String> | A list of fields to exclude from the response.
}

begin
  #Inspect a x509 cert guard
  result = api_instance.read(certguard_x509_cert_guard_href, opts)
  p result
rescue PulpCertguardClient::ApiError => e
  puts "Exception when calling ContentguardsX509Api->read: #{e}"
end

Parameters

Name Type Description Notes
certguard_x509_cert_guard_href String
fields Array<String> A list of fields to include in the response. [optional]
exclude_fields Array<String> A list of fields to exclude from the response. [optional]

Return type

CertguardX509CertGuardResponse

Authorization

basicAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

update

CertguardX509CertGuardResponse update(certguard_x509_cert_guard_href, certguard_x509_cert_guard)

Update a x509 cert guard

X509CertGuard API Viewsets.

Example

# load the gem
require 'pulp_certguard_client'
# setup authorization
PulpCertguardClient.configure do |config|
  # Configure HTTP basic authorization: basicAuth
  config.username = 'YOUR USERNAME'
  config.password = 'YOUR PASSWORD'
end

api_instance = PulpCertguardClient::ContentguardsX509Api.new
certguard_x509_cert_guard_href = 'certguard_x509_cert_guard_href_example' # String | 
certguard_x509_cert_guard = PulpCertguardClient::CertguardX509CertGuard.new # CertguardX509CertGuard | 

begin
  #Update a x509 cert guard
  result = api_instance.update(certguard_x509_cert_guard_href, certguard_x509_cert_guard)
  p result
rescue PulpCertguardClient::ApiError => e
  puts "Exception when calling ContentguardsX509Api->update: #{e}"
end

Parameters

Name Type Description Notes
certguard_x509_cert_guard_href String
certguard_x509_cert_guard CertguardX509CertGuard

Return type

CertguardX509CertGuardResponse

Authorization

basicAuth

HTTP request headers

  • Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
  • Accept: application/json