-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #955 from gdbranco/feat/ocm-8260
OCM-8260 | feat: bump model to v0.0.374 and include access transparency examples
- Loading branch information
Showing
78 changed files
with
11,629 additions
and
1,487 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,7 @@ | |
|
||
run: | ||
skip-dirs: | ||
- accesstransparency | ||
- accountsmgmt | ||
- addonsmgmt | ||
- authorizations | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
/* | ||
Copyright (c) 2020 Red Hat, Inc. | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/ | ||
|
||
// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all | ||
// your changes will be lost when the file is generated again. | ||
|
||
package accesstransparency // github.com/openshift-online/ocm-sdk-go/accesstransparency | ||
|
||
import ( | ||
"net/http" | ||
"path" | ||
|
||
v1 "github.com/openshift-online/ocm-sdk-go/accesstransparency/v1" | ||
) | ||
|
||
// Client is the client for service 'access_transparency'. | ||
type Client struct { | ||
transport http.RoundTripper | ||
path string | ||
} | ||
|
||
// NewClient creates a new client for the service 'access_transparency' using the | ||
// given transport to send the requests and receive the responses. | ||
func NewClient(transport http.RoundTripper, path string) *Client { | ||
client := new(Client) | ||
client.transport = transport | ||
client.path = path | ||
return client | ||
} | ||
|
||
// V1 returns a reference to a client for version 'v1'. | ||
func (c *Client) V1() *v1.Client { | ||
return v1.NewClient( | ||
c.transport, | ||
path.Join(c.path, "v1"), | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
/* | ||
Copyright (c) 2020 Red Hat, Inc. | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/ | ||
|
||
// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all | ||
// your changes will be lost when the file is generated again. | ||
|
||
package v1 // github.com/openshift-online/ocm-sdk-go/accesstransparency/v1 | ||
|
||
// AccessProtectionBuilder contains the data and logic needed to build 'access_protection' objects. | ||
// | ||
// Representation of an access protection. | ||
type AccessProtectionBuilder struct { | ||
bitmap_ uint32 | ||
enabled bool | ||
} | ||
|
||
// NewAccessProtection creates a new builder of 'access_protection' objects. | ||
func NewAccessProtection() *AccessProtectionBuilder { | ||
return &AccessProtectionBuilder{} | ||
} | ||
|
||
// Empty returns true if the builder is empty, i.e. no attribute has a value. | ||
func (b *AccessProtectionBuilder) Empty() bool { | ||
return b == nil || b.bitmap_ == 0 | ||
} | ||
|
||
// Enabled sets the value of the 'enabled' attribute to the given value. | ||
func (b *AccessProtectionBuilder) Enabled(value bool) *AccessProtectionBuilder { | ||
b.enabled = value | ||
b.bitmap_ |= 1 | ||
return b | ||
} | ||
|
||
// Copy copies the attributes of the given object into this builder, discarding any previous values. | ||
func (b *AccessProtectionBuilder) Copy(object *AccessProtection) *AccessProtectionBuilder { | ||
if object == nil { | ||
return b | ||
} | ||
b.bitmap_ = object.bitmap_ | ||
b.enabled = object.enabled | ||
return b | ||
} | ||
|
||
// Build creates a 'access_protection' object using the configuration stored in the builder. | ||
func (b *AccessProtectionBuilder) Build() (object *AccessProtection, err error) { | ||
object = new(AccessProtection) | ||
object.bitmap_ = b.bitmap_ | ||
object.enabled = b.enabled | ||
return | ||
} |
Oops, something went wrong.