Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.264.0 #3

Merged
merged 4 commits into from
May 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ docs/ExportJobResponse.md
docs/ExportResponse.md
docs/Facts.md
docs/GoldImageStatus.md
docs/ImageForVersionArch.md
docs/ImageInContentSet.md
docs/ImagesApi.md
docs/InlineObject.md
Expand All @@ -62,6 +63,7 @@ docs/InlineResponse20017.md
docs/InlineResponse20018.md
docs/InlineResponse20019.md
docs/InlineResponse2002.md
docs/InlineResponse20020.md
docs/InlineResponse2003.md
docs/InlineResponse2004.md
docs/InlineResponse2005.md
Expand Down Expand Up @@ -95,6 +97,7 @@ docs/System.md
docs/SystemApi.md
docs/SystemList.md
docs/SystemListMock.md
docs/SystemPurposeAttributes.md
git_push.sh
go.mod
go.sum
Expand Down Expand Up @@ -124,6 +127,7 @@ model_export_job_response.go
model_export_response.go
model_facts.go
model_gold_image_status.go
model_image_for_version_arch.go
model_image_in_content_set.go
model_inline_object.go
model_inline_object_1.go
Expand All @@ -144,6 +148,7 @@ model_inline_response_200_17.go
model_inline_response_200_18.go
model_inline_response_200_19.go
model_inline_response_200_2.go
model_inline_response_200_20.go
model_inline_response_200_3.go
model_inline_response_200_4.go
model_inline_response_200_5.go
Expand Down Expand Up @@ -173,5 +178,6 @@ model_show_system.go
model_system.go
model_system_list.go
model_system_list_mock.go
model_system_purpose_attributes.go
response.go
utils.go
2 changes: 1 addition & 1 deletion .openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5.2.1
5.4.0
39 changes: 22 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ API for Red Hat Subscription Management
## Overview
This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client.

- API version: 1.196.0
- API version: 1.264.0
- Package version: 1.0.0
- Build package: org.openapitools.codegen.languages.GoClientCodegen
For more information, please visit [https://access.redhat.com/support/cases/](https://access.redhat.com/support/cases/)
Expand All @@ -23,7 +23,7 @@ go get golang.org/x/net/context
Put the package under your project folder and add the following in import:

```golang
import sw "./gorhsm"
import gorhsm "github.com/GIT_USER_ID/GIT_REPO_ID"
```

To use a proxy, set the environment variable `HTTP_PROXY`:
Expand All @@ -41,15 +41,15 @@ Default configuration comes with `Servers` field that contains server objects as
For using other server than the one defined on index 0 set context value `sw.ContextServerIndex` of type `int`.

```golang
ctx := context.WithValue(context.Background(), sw.ContextServerIndex, 1)
ctx := context.WithValue(context.Background(), gorhsm.ContextServerIndex, 1)
```

### Templated Server URL

Templated server URL is formatted using default variables from configuration or from context value `sw.ContextServerVariables` of type `map[string]string`.

```golang
ctx := context.WithValue(context.Background(), sw.ContextServerVariables, map[string]string{
ctx := context.WithValue(context.Background(), gorhsm.ContextServerVariables, map[string]string{
"basePath": "v2",
})
```
Expand All @@ -59,14 +59,14 @@ Note, enum values are always validated and all unused variables are silently ign
### URLs Configuration per Operation

Each operation can use different server URL defined using `OperationServers` map in the `Configuration`.
An operation is uniquely identifield by `"{classname}Service.{nickname}"` string.
An operation is uniquely identified by `"{classname}Service.{nickname}"` string.
Similar rules for overriding default operation server index and variables applies by using `sw.ContextOperationServerIndices` and `sw.ContextOperationServerVariables` context maps.

```
ctx := context.WithValue(context.Background(), sw.ContextOperationServerIndices, map[string]int{
ctx := context.WithValue(context.Background(), gorhsm.ContextOperationServerIndices, map[string]int{
"{classname}Service.{nickname}": 2,
})
ctx = context.WithValue(context.Background(), sw.ContextOperationServerVariables, map[string]map[string]string{
ctx = context.WithValue(context.Background(), gorhsm.ContextOperationServerVariables, map[string]map[string]string{
"{classname}Service.{nickname}": {
"port": "8443",
},
Expand All @@ -79,19 +79,20 @@ All URIs are relative to *https://api.access.redhat.com/management/v1*

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*AllocationApi* | [**AttachEntitlementAllocation**](docs/AllocationApi.md#attachentitlementallocation) | **Post** /allocations/{AllocationUUID}/entitlements | Attach entitlement to allocation
*AllocationApi* | [**AttachEntitlementAllocation**](docs/AllocationApi.md#attachentitlementallocation) | **Post** /allocations/{uuid}/entitlements | Attach entitlement to allocation
*AllocationApi* | [**CreateSatellite**](docs/AllocationApi.md#createsatellite) | **Post** /allocations | Create Satellite
*AllocationApi* | [**ExportAllocation**](docs/AllocationApi.md#exportallocation) | **Get** /allocations/{AllocationUUID}/export | Trigger allocation manifest export
*AllocationApi* | [**ExportJobAllocation**](docs/AllocationApi.md#exportjoballocation) | **Get** /allocations/{AllocationUUID}/exportJob/{ExportJobID} | Check status of allocation manifest export
*AllocationApi* | [**GetExportAllocation**](docs/AllocationApi.md#getexportallocation) | **Get** /allocations/{AllocationUUID}/export/{ExportID} | Download allocation manifest
*AllocationApi* | [**ListAllocationPools**](docs/AllocationApi.md#listallocationpools) | **Get** /allocations/{AllocationUUID}/pools | List all pools for an allocation
*AllocationApi* | [**ExportAllocation**](docs/AllocationApi.md#exportallocation) | **Get** /allocations/{uuid}/export | Trigger allocation manifest export
*AllocationApi* | [**ExportJobAllocation**](docs/AllocationApi.md#exportjoballocation) | **Get** /allocations/{uuid}/exportJob/{ExportJobID} | Check status of allocation manifest export
*AllocationApi* | [**GetExportAllocation**](docs/AllocationApi.md#getexportallocation) | **Get** /allocations/{uuid}/export/{ExportID} | Download allocation manifest
*AllocationApi* | [**ListAllocationPools**](docs/AllocationApi.md#listallocationpools) | **Get** /allocations/{uuid}/pools | List all pools for an allocation
*AllocationApi* | [**ListAllocations**](docs/AllocationApi.md#listallocations) | **Get** /allocations | List all allocations for a user
*AllocationApi* | [**ListVersionsAllocation**](docs/AllocationApi.md#listversionsallocation) | **Get** /allocations/versions | List Satellite versions
*AllocationApi* | [**RemoveAllocation**](docs/AllocationApi.md#removeallocation) | **Delete** /allocations/{AllocationUUID} | Remove allocation profile
*AllocationApi* | [**RemoveAllocationEntitlement**](docs/AllocationApi.md#removeallocationentitlement) | **Delete** /allocations/{AllocationUUID}/{EntitlementID} | Remove entitlement from the allocation
*AllocationApi* | [**ShowAllocation**](docs/AllocationApi.md#showallocation) | **Get** /allocations/{AllocationUUID} | Get an allocation by UUID
*AllocationApi* | [**UpdateAllocation**](docs/AllocationApi.md#updateallocation) | **Put** /allocations/{AllocationUUID} | Update an allocation
*AllocationApi* | [**UpdateEntitlementAllocation**](docs/AllocationApi.md#updateentitlementallocation) | **Put** /allocations/{AllocationUUID}/entitlements/{EntitlementUUID} | Update attached entitlement to allocation
*AllocationApi* | [**RemoveAllocation**](docs/AllocationApi.md#removeallocation) | **Delete** /allocations/{uuid} | Remove allocation profile
*AllocationApi* | [**RemoveAllocationEntitlement**](docs/AllocationApi.md#removeallocationentitlement) | **Delete** /allocations/{uuid}/entitlements/{EntitlementID} | Remove entitlement from the allocation
*AllocationApi* | [**RemoveAllocationEntitlementDeprecated**](docs/AllocationApi.md#removeallocationentitlementdeprecated) | **Delete** /allocations/{uuid}/{EntitlementID} | Remove entitlement from the allocation
*AllocationApi* | [**ShowAllocation**](docs/AllocationApi.md#showallocation) | **Get** /allocations/{uuid} | Get an allocation by UUID
*AllocationApi* | [**UpdateAllocation**](docs/AllocationApi.md#updateallocation) | **Put** /allocations/{uuid} | Update an allocation
*AllocationApi* | [**UpdateEntitlementAllocation**](docs/AllocationApi.md#updateentitlementallocation) | **Put** /allocations/{uuid}/entitlements/{EntitlementID} | Update attached entitlement to allocation
*CloudaccessApi* | [**AddProviderAccounts**](docs/CloudaccessApi.md#addprovideraccounts) | **Post** /cloud_access_providers/{ProviderShortName}/accounts | Add accounts for a provider
*CloudaccessApi* | [**EnableGoldImages**](docs/CloudaccessApi.md#enablegoldimages) | **Post** /cloud_access_providers/{ProviderShortName}/goldimage | Enable Gold image access
*CloudaccessApi* | [**ListEnabledCloudAccessProviders**](docs/CloudaccessApi.md#listenabledcloudaccessproviders) | **Get** /cloud_access_providers/enabled | List all enabled cloud access providers for a user
Expand All @@ -105,6 +106,7 @@ Class | Method | HTTP request | Description
*ErrataApi* | [**ListErratumSystems**](docs/ErrataApi.md#listerratumsystems) | **Get** /errata/{AdvisoryID}/systems | List all systems for an advisory
*ErrataApi* | [**ShowErratum**](docs/ErrataApi.md#showerratum) | **Get** /errata/{AdvisoryID} | Get the details of an advisory
*ImagesApi* | [**DownloadImage**](docs/ImagesApi.md#downloadimage) | **Get** /images/{checksum}/download | Download an image by its SHA256 checksum
*ImagesApi* | [**ListImageDownloadsByVersionArch**](docs/ImagesApi.md#listimagedownloadsbyversionarch) | **Get** /images/rhel/{Version}/{Arch} | List RHEL image downloads by version and architecture.
*ImagesApi* | [**ListImagesByContentSet**](docs/ImagesApi.md#listimagesbycontentset) | **Get** /images/cset/{ContentSet} | List available images in a content set
*OrganizationApi* | [**CheckOrgSCACapability**](docs/OrganizationApi.md#checkorgscacapability) | **Get** /organization | Get details of the user's organization
*PackagesApi* | [**DownloadPackage**](docs/PackagesApi.md#downloadpackage) | **Get** /packages/{checksum}/download | Download a package by its SHA256 checksum
Expand Down Expand Up @@ -151,6 +153,7 @@ Class | Method | HTTP request | Description
- [ExportResponse](docs/ExportResponse.md)
- [Facts](docs/Facts.md)
- [GoldImageStatus](docs/GoldImageStatus.md)
- [ImageForVersionArch](docs/ImageForVersionArch.md)
- [ImageInContentSet](docs/ImageInContentSet.md)
- [InlineObject](docs/InlineObject.md)
- [InlineObject1](docs/InlineObject1.md)
Expand All @@ -171,6 +174,7 @@ Class | Method | HTTP request | Description
- [InlineResponse20018](docs/InlineResponse20018.md)
- [InlineResponse20019](docs/InlineResponse20019.md)
- [InlineResponse2002](docs/InlineResponse2002.md)
- [InlineResponse20020](docs/InlineResponse20020.md)
- [InlineResponse2003](docs/InlineResponse2003.md)
- [InlineResponse2004](docs/InlineResponse2004.md)
- [InlineResponse2005](docs/InlineResponse2005.md)
Expand Down Expand Up @@ -200,6 +204,7 @@ Class | Method | HTTP request | Description
- [System](docs/System.md)
- [SystemList](docs/SystemList.md)
- [SystemListMock](docs/SystemListMock.md)
- [SystemPurposeAttributes](docs/SystemPurposeAttributes.md)


## Documentation For Authorization
Expand Down
Loading