Skip to content

Commit

Permalink
Merge pull request #522 from tzvatot/version-gates
Browse files Browse the repository at this point in the history
Bump ocm-api-model to version 0.0.160
  • Loading branch information
tzvatot authored Dec 20, 2021
2 parents 0b145fa + d91580d commit a8b5510
Show file tree
Hide file tree
Showing 7 changed files with 237 additions and 232 deletions.
6 changes: 6 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
This document describes the relevant changes between releases of the OCM API
SDK.

## 0.1.227 Dec 20 2021

- Update to model 0.0.160:
- Change version gates URL.


## 0.1.226 Dec 20 2021

- Update to model 0.0.159:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export GOPROXY=https://proxy.golang.org
export CGO_ENABLED=0

# Details of the model to use:
model_version:=v0.0.159
model_version:=v0.0.160
model_url:=https://github.com/openshift-online/ocm-api-model.git

# Details of the metamodel to use:
Expand Down
441 changes: 220 additions & 221 deletions clustersmgmt/v1/openapi.go

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions clustersmgmt/v1/version_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@ func (c *VersionClient) Get() *VersionGetRequest {
}
}

// VersionGates returns the target 'version_gates' resource.
// Gates returns the target 'version_gates' resource.
//
// Reference to version gates.
func (c *VersionClient) VersionGates() *VersionGatesClient {
func (c *VersionClient) Gates() *VersionGatesClient {
return NewVersionGatesClient(
c.transport,
path.Join(c.path, "version_gates"),
path.Join(c.path, "gates"),
)
}

Expand Down
8 changes: 4 additions & 4 deletions clustersmgmt/v1/version_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ type VersionServer interface {
// Retrieves the details of the version.
Get(ctx context.Context, request *VersionGetServerRequest, response *VersionGetServerResponse) error

// VersionGates returns the target 'version_gates' resource.
// Gates returns the target 'version_gates' resource.
//
// Reference to version gates.
VersionGates() VersionGatesServer
Gates() VersionGatesServer
}

// VersionGetServerRequest is the request for the 'get' method.
Expand Down Expand Up @@ -81,8 +81,8 @@ func dispatchVersion(w http.ResponseWriter, r *http.Request, server VersionServe
}
}
switch segments[0] {
case "version_gates":
target := server.VersionGates()
case "gates":
target := server.Gates()
if target == nil {
errors.SendNotFound(w, r)
return
Expand Down
2 changes: 1 addition & 1 deletion metrics/path_tree_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ var pathTreeData = `{
},
"versions": {
"-": {
"version_gates": {
"gates": {
"-": null
}
}
Expand Down
4 changes: 2 additions & 2 deletions openapi/clusters_mgmt/v1/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -6262,7 +6262,7 @@
}
}
},
"/api/clusters_mgmt/v1/versions/{version_id}/version_gates": {
"/api/clusters_mgmt/v1/versions/{version_id}/gates": {
"get": {
"description": "Retrieves a list of version gates.\n",
"parameters": [
Expand Down Expand Up @@ -6356,7 +6356,7 @@
}
}
},
"/api/clusters_mgmt/v1/versions/{version_id}/version_gates/{version_gate_id}": {
"/api/clusters_mgmt/v1/versions/{version_id}/gates/{version_gate_id}": {
"get": {
"description": "Retrieves the details of the version gate.\n",
"parameters": [
Expand Down

0 comments on commit a8b5510

Please sign in to comment.