-
Notifications
You must be signed in to change notification settings - Fork 97
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 #706 from gdbranco/fix/sda-7890-adjust-api-oidc-co…
…nfigs [SDA-7890] Adjust resources to match /oidc_configs endpoints
- Loading branch information
Showing
5 changed files
with
70 additions
and
56 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,51 @@ | ||
/* | ||
Copyright (c) 2023 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. | ||
*/ | ||
|
||
// Contains the necessary attributes to support oidc configuration hosting under Red Hat or registering a Customer's byo oidc config. | ||
struct OidcConfig { | ||
// ARN of the AWS role to assume when installing the cluster as to reveal the secret, supplied in request. It is only to be used in Unmanaged Oidc Config. | ||
InstallerRoleArn String | ||
|
||
// Secrets Manager ARN for the OIDC private key, supplied in request. It is only to be used in Unmanaged Oidc Config. | ||
SecretArn String | ||
|
||
// ID for the oidc config, filled in response. | ||
ID String | ||
|
||
// HREF for the oidc config, filled in response. | ||
HREF String | ||
|
||
// Organization ID, filled in response respecting token provided. | ||
OrganizationId String | ||
|
||
// Issuer URL, filled in response when Managed and supplied in Unmanaged. | ||
IssuerUrl String | ||
|
||
// Creation timestamp, filled in response. | ||
CreationTimestamp Date | ||
|
||
// Last used timestamp, filled by the latest cluster that used this oidc config. | ||
LastUsedTimestamp Date | ||
|
||
// Last update timestamp, filled when patching a valid attribute of this oidc config. | ||
LastUpdateTimestamp Date | ||
|
||
// Indicates whether it is Managed or Unmanaged (Customer hosted). | ||
Managed boolean | ||
|
||
// Indicates whether the Oidc Config can be reused. | ||
Reusable boolean | ||
} |
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