Skip to content

Latest commit

 

History

History
454 lines (296 loc) · 14.8 KB

RepositoriesApi.md

File metadata and controls

454 lines (296 loc) · 14.8 KB

\RepositoriesApi

All URIs are relative to http://121.37.218.63:24817

Method HTTP request Description
RepositoriesCreate Post /pulp/api/v3/repositories/ Create a repository
RepositoriesDelete Delete /pulp/api/v3/repositories/{pulp_id}/ Delete a repository
RepositoriesList Get /pulp/api/v3/repositories/ List repositories
RepositoriesPartialUpdate Patch /pulp/api/v3/repositories/{pulp_id}/ Update a repository
RepositoriesRead Get /pulp/api/v3/repositories/{pulp_id}/ Inspect a repository
RepositoriesUpdate Put /pulp/api/v3/repositories/{pulp_id}/ Update a repository

RepositoriesCreate

RepositoryResponse RepositoriesCreate(ctx).Repository(repository).Execute()

Create a repository

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    repository := *openapiclient.NewRepository("Name_example") // Repository | 

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.RepositoriesApi.RepositoriesCreate(context.Background()).Repository(repository).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `RepositoriesApi.RepositoriesCreate``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `RepositoriesCreate`: RepositoryResponse
    fmt.Fprintf(os.Stdout, "Response from `RepositoriesApi.RepositoriesCreate`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiRepositoriesCreateRequest struct via the builder pattern

Name Type Description Notes
repository Repository

Return type

RepositoryResponse

Authorization

basicAuth, cookieAuth

HTTP request headers

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

[Back to top] [Back to API list] [Back to Model list] [Back to README]

RepositoriesDelete

AsyncOperationResponse RepositoriesDelete(ctx, pulpId).Execute()

Delete a repository

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    pulpId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | A UUID string identifying this repository.

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.RepositoriesApi.RepositoriesDelete(context.Background(), pulpId).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `RepositoriesApi.RepositoriesDelete``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `RepositoriesDelete`: AsyncOperationResponse
    fmt.Fprintf(os.Stdout, "Response from `RepositoriesApi.RepositoriesDelete`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
pulpId string A UUID string identifying this repository.

Other Parameters

Other parameters are passed through a pointer to a apiRepositoriesDeleteRequest struct via the builder pattern

Name Type Description Notes

Return type

AsyncOperationResponse

Authorization

basicAuth, cookieAuth

HTTP request headers

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

[Back to top] [Back to API list] [Back to Model list] [Back to README]

RepositoriesList

PaginatedRepositoryResponseList RepositoriesList(ctx).Limit(limit).Name(name).NameContains(nameContains).NameIcontains(nameIcontains).NameIn(nameIn).NameStartswith(nameStartswith).Offset(offset).Ordering(ordering).PulpLabelSelect(pulpLabelSelect).Fields(fields).ExcludeFields(excludeFields).Execute()

List repositories

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    limit := int32(56) // int32 | Number of results to return per page. (optional)
    name := "name_example" // string |  (optional)
    nameContains := "nameContains_example" // string | Filter results where name contains value (optional)
    nameIcontains := "nameIcontains_example" // string | Filter results where name contains value (optional)
    nameIn := []string{"Inner_example"} // []string | Filter results where name is in a comma-separated list of values (optional)
    nameStartswith := "nameStartswith_example" // string | Filter results where name starts with value (optional)
    offset := int32(56) // int32 | The initial index from which to return the results. (optional)
    ordering := []string{"Ordering_example"} // []string | Ordering (optional)
    pulpLabelSelect := "pulpLabelSelect_example" // string | Filter labels by search string (optional)
    fields := "fields_example" // string | A list of fields to include in the response. (optional)
    excludeFields := "excludeFields_example" // string | A list of fields to exclude from the response. (optional)

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.RepositoriesApi.RepositoriesList(context.Background()).Limit(limit).Name(name).NameContains(nameContains).NameIcontains(nameIcontains).NameIn(nameIn).NameStartswith(nameStartswith).Offset(offset).Ordering(ordering).PulpLabelSelect(pulpLabelSelect).Fields(fields).ExcludeFields(excludeFields).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `RepositoriesApi.RepositoriesList``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `RepositoriesList`: PaginatedRepositoryResponseList
    fmt.Fprintf(os.Stdout, "Response from `RepositoriesApi.RepositoriesList`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiRepositoriesListRequest struct via the builder pattern

Name Type Description Notes
limit int32 Number of results to return per page.
name string
nameContains string Filter results where name contains value
nameIcontains string Filter results where name contains value
nameIn []string Filter results where name is in a comma-separated list of values
nameStartswith string Filter results where name starts with value
offset int32 The initial index from which to return the results.
ordering []string Ordering
pulpLabelSelect string Filter labels by search string
fields string A list of fields to include in the response.
excludeFields string A list of fields to exclude from the response.

Return type

PaginatedRepositoryResponseList

Authorization

basicAuth, cookieAuth

HTTP request headers

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

[Back to top] [Back to API list] [Back to Model list] [Back to README]

RepositoriesPartialUpdate

AsyncOperationResponse RepositoriesPartialUpdate(ctx, pulpId).PatchedRepository(patchedRepository).Execute()

Update a repository

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    pulpId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | A UUID string identifying this repository.
    patchedRepository := *openapiclient.NewPatchedRepository() // PatchedRepository | 

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.RepositoriesApi.RepositoriesPartialUpdate(context.Background(), pulpId).PatchedRepository(patchedRepository).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `RepositoriesApi.RepositoriesPartialUpdate``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `RepositoriesPartialUpdate`: AsyncOperationResponse
    fmt.Fprintf(os.Stdout, "Response from `RepositoriesApi.RepositoriesPartialUpdate`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
pulpId string A UUID string identifying this repository.

Other Parameters

Other parameters are passed through a pointer to a apiRepositoriesPartialUpdateRequest struct via the builder pattern

Name Type Description Notes

patchedRepository | PatchedRepository | |

Return type

AsyncOperationResponse

Authorization

basicAuth, cookieAuth

HTTP request headers

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

[Back to top] [Back to API list] [Back to Model list] [Back to README]

RepositoriesRead

RepositoryResponse RepositoriesRead(ctx, pulpId).Fields(fields).ExcludeFields(excludeFields).Execute()

Inspect a repository

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    pulpId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | A UUID string identifying this repository.
    fields := "fields_example" // string | A list of fields to include in the response. (optional)
    excludeFields := "excludeFields_example" // string | A list of fields to exclude from the response. (optional)

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.RepositoriesApi.RepositoriesRead(context.Background(), pulpId).Fields(fields).ExcludeFields(excludeFields).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `RepositoriesApi.RepositoriesRead``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `RepositoriesRead`: RepositoryResponse
    fmt.Fprintf(os.Stdout, "Response from `RepositoriesApi.RepositoriesRead`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
pulpId string A UUID string identifying this repository.

Other Parameters

Other parameters are passed through a pointer to a apiRepositoriesReadRequest struct via the builder pattern

Name Type Description Notes

fields | string | A list of fields to include in the response. | excludeFields | string | A list of fields to exclude from the response. |

Return type

RepositoryResponse

Authorization

basicAuth, cookieAuth

HTTP request headers

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

[Back to top] [Back to API list] [Back to Model list] [Back to README]

RepositoriesUpdate

AsyncOperationResponse RepositoriesUpdate(ctx, pulpId).Repository(repository).Execute()

Update a repository

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    pulpId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | A UUID string identifying this repository.
    repository := *openapiclient.NewRepository("Name_example") // Repository | 

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.RepositoriesApi.RepositoriesUpdate(context.Background(), pulpId).Repository(repository).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `RepositoriesApi.RepositoriesUpdate``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `RepositoriesUpdate`: AsyncOperationResponse
    fmt.Fprintf(os.Stdout, "Response from `RepositoriesApi.RepositoriesUpdate`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
pulpId string A UUID string identifying this repository.

Other Parameters

Other parameters are passed through a pointer to a apiRepositoriesUpdateRequest struct via the builder pattern

Name Type Description Notes

repository | Repository | |

Return type

AsyncOperationResponse

Authorization

basicAuth, cookieAuth

HTTP request headers

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

[Back to top] [Back to API list] [Back to Model list] [Back to README]