Skip to content

Commit

Permalink
Merge pull request #588 from pvasant/release_0.1.250
Browse files Browse the repository at this point in the history
Release 0.1.250
  • Loading branch information
Irit Goihman authored Mar 14, 2022
2 parents dfecf19 + 0feffa7 commit bebb175
Show file tree
Hide file tree
Showing 19 changed files with 18,176 additions and 16,412 deletions.
7 changes: 7 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
This document describes the relevant changes between releases of the OCM API
SDK.


## 0.1.250 Mar 14 2022

- Update to model 0.0.181:
- Add aws sts policy
- Add ReleaseImage to Version

## 0.1.249 Mar 9 2022

- Update to model 0.0.180:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
export CGO_ENABLED=0

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

# Details of the metamodel to use:
Expand Down
10 changes: 10 additions & 0 deletions clustersmgmt/v1/aws_inquiries_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,16 @@ func NewAWSInquiriesClient(transport http.RoundTripper, path string) *AWSInquiri
}
}

// STSPolicies returns the target 'AWSSTS_policies_inquiry' resource.
//
// Reference to the resource that manages aws sts policies.
func (c *AWSInquiriesClient) STSPolicies() *AWSSTSPoliciesInquiryClient {
return NewAWSSTSPoliciesInquiryClient(
c.transport,
path.Join(c.path, "sts_policies"),
)
}

// Regions returns the target 'available_regions_inquiry' resource.
//
// Reference to the resource that manages a collection of regions.
Expand Down
12 changes: 12 additions & 0 deletions clustersmgmt/v1/aws_inquiries_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ import (
// AWSInquiriesServer represents the interface the manages the 'AWS_inquiries' resource.
type AWSInquiriesServer interface {

// STSPolicies returns the target 'AWSSTS_policies_inquiry' resource.
//
// Reference to the resource that manages aws sts policies.
STSPolicies() AWSSTSPoliciesInquiryServer

// Regions returns the target 'available_regions_inquiry' resource.
//
// Reference to the resource that manages a collection of regions.
Expand All @@ -51,6 +56,13 @@ func dispatchAWSInquiries(w http.ResponseWriter, r *http.Request, server AWSInqu
}
}
switch segments[0] {
case "sts_policies":
target := server.STSPolicies()
if target == nil {
errors.SendNotFound(w, r)
return
}
dispatchAWSSTSPoliciesInquiry(w, r, target, segments[1:])
case "regions":
target := server.Regions()
if target == nil {
Expand Down
Loading

0 comments on commit bebb175

Please sign in to comment.