Skip to content

Commit

Permalink
feat(IAM Identity): Add support for IAM enterprise
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Beck <beckm@de.ibm.com>
  • Loading branch information
michaelbeck committed Aug 2, 2023
1 parent 52cc95b commit 108978d
Show file tree
Hide file tree
Showing 226 changed files with 16,201 additions and 434 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@
public class AccountSettingsResponse extends GenericModel {

/**
* Defines whether or not creating a Service Id is access controlled. Valid values:
* * RESTRICTED - to apply access control
* * NOT_RESTRICTED - to remove access control
* Defines whether or not creating a service ID is access controlled. Valid values:
* * RESTRICTED - only users assigned the 'Service ID creator' role on the IAM Identity Service can create service
* IDs, including the account owner
* * NOT_RESTRICTED - all members of an account can create service IDs
* * NOT_SET - to 'unset' a previous set value.
*/
public interface RestrictCreateServiceId {
Expand Down Expand Up @@ -132,9 +133,10 @@ public String getAccountId() {
/**
* Gets the restrictCreateServiceId.
*
* Defines whether or not creating a Service Id is access controlled. Valid values:
* * RESTRICTED - to apply access control
* * NOT_RESTRICTED - to remove access control
* Defines whether or not creating a service ID is access controlled. Valid values:
* * RESTRICTED - only users assigned the 'Service ID creator' role on the IAM Identity Service can create service
* IDs, including the account owner
* * NOT_RESTRICTED - all members of an account can create service IDs
* * NOT_SET - to 'unset' a previous set value.
*
* @return the restrictCreateServiceId
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
/*
* (C) Copyright IBM Corp. 2023.
*
* 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.
*/
package com.ibm.cloud.platform_services.iam_identity.v1.model;

import java.util.List;

import com.google.gson.annotations.SerializedName;
import com.ibm.cloud.sdk.core.service.model.GenericModel;

/**
* AccountSettingsTemplateList.
*/
public class AccountSettingsTemplateList extends GenericModel {

protected ResponseContext context;
protected Long offset;
protected Long limit;
protected String first;
protected String previous;
protected String next;
@SerializedName("account_settings_templates")
protected List<AccountSettingsTemplateResponse> accountSettingsTemplates;

protected AccountSettingsTemplateList() { }

/**
* Gets the context.
*
* Context with key properties for problem determination.
*
* @return the context
*/
public ResponseContext getContext() {
return context;
}

/**
* Gets the offset.
*
* The offset of the current page.
*
* @return the offset
*/
public Long getOffset() {
return offset;
}

/**
* Gets the limit.
*
* Optional size of a single page.
*
* @return the limit
*/
public Long getLimit() {
return limit;
}

/**
* Gets the first.
*
* Link to the first page.
*
* @return the first
*/
public String getFirst() {
return first;
}

/**
* Gets the previous.
*
* Link to the previous available page. If 'previous' property is not part of the response no previous page is
* available.
*
* @return the previous
*/
public String getPrevious() {
return previous;
}

/**
* Gets the next.
*
* Link to the next available page. If 'next' property is not part of the response no next page is available.
*
* @return the next
*/
public String getNext() {
return next;
}

/**
* Gets the accountSettingsTemplates.
*
* List of account settings templates based on the query paramters and the page size. The account_settings_templates
* array is always part of the response but might be empty depending on the query parameter values provided.
*
* @return the accountSettingsTemplates
*/
public List<AccountSettingsTemplateResponse> getAccountSettingsTemplates() {
return accountSettingsTemplates;
}
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,201 @@
/*
* (C) Copyright IBM Corp. 2023.
*
* 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.
*/
package com.ibm.cloud.platform_services.iam_identity.v1.model;

import java.util.List;

import com.google.gson.annotations.SerializedName;
import com.ibm.cloud.sdk.core.service.model.GenericModel;

/**
* Response body format for account settings template REST requests.
*/
public class AccountSettingsTemplateResponse extends GenericModel {

protected String id;
protected Long version;
@SerializedName("account_id")
protected String accountId;
protected String name;
protected String description;
protected Boolean committed;
@SerializedName("account_settings")
protected AccountSettingsComponent accountSettings;
protected List<EnityHistoryRecord> history;
@SerializedName("entity_tag")
protected String entityTag;
protected String crn;
@SerializedName("created_at")
protected String createdAt;
@SerializedName("created_by_id")
protected String createdById;
@SerializedName("last_modified_at")
protected String lastModifiedAt;
@SerializedName("last_modified_by_id")
protected String lastModifiedById;

protected AccountSettingsTemplateResponse() { }

/**
* Gets the id.
*
* ID of the the template.
*
* @return the id
*/
public String getId() {
return id;
}

/**
* Gets the version.
*
* Version of the the template.
*
* @return the version
*/
public Long getVersion() {
return version;
}

/**
* Gets the accountId.
*
* ID of the account where the template resides.
*
* @return the accountId
*/
public String getAccountId() {
return accountId;
}

/**
* Gets the name.
*
* The name of the trusted profile template. This is visible only in the enterprise account.
*
* @return the name
*/
public String getName() {
return name;
}

/**
* Gets the description.
*
* The description of the trusted profile template. Describe the template for enterprise account users.
*
* @return the description
*/
public String getDescription() {
return description;
}

/**
* Gets the committed.
*
* Committed flag determines if the template is ready for assignment.
*
* @return the committed
*/
public Boolean isCommitted() {
return committed;
}

/**
* Gets the accountSettings.
*
* @return the accountSettings
*/
public AccountSettingsComponent getAccountSettings() {
return accountSettings;
}

/**
* Gets the history.
*
* History of the Template.
*
* @return the history
*/
public List<EnityHistoryRecord> getHistory() {
return history;
}

/**
* Gets the entityTag.
*
* Entity tag for this templateId-version combination.
*
* @return the entityTag
*/
public String getEntityTag() {
return entityTag;
}

/**
* Gets the crn.
*
* Cloud resource name.
*
* @return the crn
*/
public String getCrn() {
return crn;
}

/**
* Gets the createdAt.
*
* Template Created At.
*
* @return the createdAt
*/
public String getCreatedAt() {
return createdAt;
}

/**
* Gets the createdById.
*
* IAMid of the creator.
*
* @return the createdById
*/
public String getCreatedById() {
return createdById;
}

/**
* Gets the lastModifiedAt.
*
* Template last modified at.
*
* @return the lastModifiedAt
*/
public String getLastModifiedAt() {
return lastModifiedAt;
}

/**
* Gets the lastModifiedById.
*
* IAMid of the identity that made the latest modification.
*
* @return the lastModifiedById
*/
public String getLastModifiedById() {
return lastModifiedById;
}
}

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* (C) Copyright IBM Corp. 2022.
* (C) Copyright IBM Corp. 2023.
*
* 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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* (C) Copyright IBM Corp. 2022.
* (C) Copyright IBM Corp. 2023.
*
* 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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* (C) Copyright IBM Corp. 2022.
* (C) Copyright IBM Corp. 2023.
*
* 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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* (C) Copyright IBM Corp. 2022.
* (C) Copyright IBM Corp. 2023.
*
* 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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* (C) Copyright IBM Corp. 2022.
* (C) Copyright IBM Corp. 2023.
*
* 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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* (C) Copyright IBM Corp. 2022.
* (C) Copyright IBM Corp. 2023.
*
* 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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* (C) Copyright IBM Corp. 2022.
* (C) Copyright IBM Corp. 2023.
*
* 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
Expand Down
Loading

0 comments on commit 108978d

Please sign in to comment.