From 9897bb545a86a91e02bf2d23ca4bc40c4d9a6d29 Mon Sep 17 00:00:00 2001 From: siddhuvarma1997 <49102413+siddhuvarma1997@users.noreply.github.com> Date: Fri, 5 Jul 2024 20:56:45 +0530 Subject: [PATCH] fix(IAM Policy Management): remove `options` property from PolicyAssignment (#248) Signed-off-by: Alluri-Varma --- .../v1/IamPolicyManagementExamples.java | 10 ----- .../v1/IamPolicyManagement.java | 3 +- .../v1/model/AssignmentResourceCreated.java | 1 + .../v1/model/AssignmentTargetDetails.java | 1 + .../v1/model/AssignmentTemplateDetails.java | 1 + .../v1/model/CommitPolicyTemplateOptions.java | 1 + .../v1/model/ConflictsWith.java | 1 + .../v1/model/Control.java | 1 + .../v1/model/ControlResponse.java | 1 + .../v1/model/ControlResponseControl.java | 1 + ...ntrolResponseControlWithEnrichedRoles.java | 1 + .../v1/model/CreatePolicyOptions.java | 1 + ...CreatePolicyTemplateAssignmentOptions.java | 33 +------------- .../v1/model/CreatePolicyTemplateOptions.java | 1 + .../CreatePolicyTemplateVersionOptions.java | 1 + .../v1/model/CreateRoleOptions.java | 1 + .../v1/model/CreateV2PolicyOptions.java | 1 + .../v1/model/CustomRole.java | 1 + .../model/DeletePolicyAssignmentOptions.java | 3 +- .../v1/model/DeletePolicyOptions.java | 1 + .../v1/model/DeletePolicyTemplateOptions.java | 1 + .../DeletePolicyTemplateVersionOptions.java | 1 + .../v1/model/DeleteRoleOptions.java | 1 + .../v1/model/DeleteV2PolicyOptions.java | 1 + .../v1/model/EnrichedRoles.java | 1 + .../v1/model/ErrorDetails.java | 1 + .../v1/model/ErrorObject.java | 1 + .../v1/model/ErrorResponse.java | 1 + .../v1/model/GetPolicyAssignmentOptions.java | 1 + .../v1/model/GetPolicyOptions.java | 1 + .../v1/model/GetPolicyTemplateOptions.java | 1 + .../GetPolicyTemplateVersionOptions.java | 1 + .../v1/model/GetRoleOptions.java | 1 + .../v1/model/GetV2PolicyOptions.java | 1 + .../iam_policy_management/v1/model/Grant.java | 1 + .../v1/model/GrantWithEnrichedRoles.java | 1 + .../v1/model/LimitData.java | 1 + .../v1/model/ListPoliciesOptions.java | 1 + .../model/ListPolicyAssignmentsOptions.java | 1 + .../ListPolicyTemplateVersionsOptions.java | 1 + .../v1/model/ListPolicyTemplatesOptions.java | 1 + .../v1/model/ListRolesOptions.java | 1 + .../v1/model/ListV2PoliciesOptions.java | 1 + .../v1/model/NestedCondition.java | 1 + .../model/NestedConditionRuleAttribute.java | 1 + .../NestedConditionRuleWithConditions.java | 1 + .../v1/model/Policy.java | 1 + .../model/PolicyAssignmentResourcePolicy.java | 1 + .../v1/model/PolicyAssignmentV1.java | 13 +----- .../model/PolicyAssignmentV1Collection.java | 1 + .../v1/model/PolicyAssignmentV1Resources.java | 7 +-- .../v1/model/PolicyAssignmentV1Subject.java | 1 + .../v1/model/PolicyCollection.java | 1 + .../v1/model/PolicyResource.java | 1 + .../v1/model/PolicyRole.java | 1 + .../v1/model/PolicySubject.java | 1 + .../v1/model/PolicyTemplate.java | 1 + .../v1/model/PolicyTemplateCollection.java | 1 + .../v1/model/PolicyTemplateLimitData.java | 1 + .../v1/model/PolicyTemplateMetaData.java | 1 + .../PolicyTemplateVersionsCollection.java | 1 + .../v1/model/ReplacePolicyOptions.java | 1 + .../model/ReplacePolicyTemplateOptions.java | 1 + .../v1/model/ReplaceRoleOptions.java | 1 + .../v1/model/ReplaceV2PolicyOptions.java | 1 + .../v1/model/ResourceAttribute.java | 1 + .../v1/model/ResourceTag.java | 1 + .../iam_policy_management/v1/model/Role.java | 1 + .../v1/model/RoleAction.java | 1 + .../v1/model/RoleCollection.java | 1 + .../iam_policy_management/v1/model/Roles.java | 1 + .../v1/model/RuleAttribute.java | 1 + .../v1/model/SubjectAttribute.java | 1 + .../v1/model/TemplateCountData.java | 1 + .../v1/model/TemplateMetadata.java | 1 + .../v1/model/TemplatePolicy.java | 11 +---- .../model/UpdatePolicyAssignmentOptions.java | 1 + .../v1/model/UpdatePolicyStateOptions.java | 1 + .../v1/model/V2Policy.java | 1 + .../v1/model/V2PolicyCollection.java | 1 + .../v1/model/V2PolicyResource.java | 1 + .../v1/model/V2PolicyResourceAttribute.java | 1 + .../v1/model/V2PolicyResourceTag.java | 1 + .../v1/model/V2PolicyRule.java | 1 + .../v1/model/V2PolicyRuleRuleAttribute.java | 1 + .../V2PolicyRuleRuleWithNestedConditions.java | 1 + .../v1/model/V2PolicySubject.java | 1 + .../v1/model/V2PolicySubjectAttribute.java | 1 + .../v1/model/V2PolicyTemplateMetaData.java | 1 + .../v1/package-info.java | 1 + .../v1/IamPolicyManagementIT.java | 43 ++++++++++++++----- .../v1/IamPolicyManagementTest.java | 31 +++---------- ...tePolicyTemplateAssignmentOptionsTest.java | 26 ----------- .../DeletePolicyAssignmentOptionsTest.java | 4 +- .../PolicyAssignmentV1CollectionTest.java | 3 -- .../PolicyAssignmentV1ResourcesTest.java | 2 +- .../v1/model/PolicyAssignmentV1Test.java | 4 -- .../v1/utils/TestUtilities.java | 6 ++- 98 files changed, 139 insertions(+), 143 deletions(-) diff --git a/modules/examples/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/IamPolicyManagementExamples.java b/modules/examples/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/IamPolicyManagementExamples.java index d32a377a7f..e8957e5445 100644 --- a/modules/examples/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/IamPolicyManagementExamples.java +++ b/modules/examples/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/IamPolicyManagementExamples.java @@ -78,8 +78,6 @@ import com.ibm.cloud.platform_services.iam_policy_management.v1.model.ListPolicyAssignmentsOptions; import com.ibm.cloud.platform_services.iam_policy_management.v1.model.AssignmentTargetDetails; import com.ibm.cloud.platform_services.iam_policy_management.v1.model.AssignmentTemplateDetails; -import com.ibm.cloud.platform_services.iam_policy_management.v1.model.PolicyAssignmentV1OptionsRoot; -import com.ibm.cloud.platform_services.iam_policy_management.v1.model.PolicyAssignmentV1Options; import com.ibm.cloud.platform_services.iam_policy_management.v1.model.CreatePolicyTemplateAssignmentOptions; import com.ibm.cloud.platform_services.iam_policy_management.v1.model.UpdatePolicyAssignmentOptions; import com.ibm.cloud.platform_services.iam_policy_management.v1.model.DeletePolicyAssignmentOptions; @@ -986,19 +984,11 @@ public static void main(String[] args) throws Exception { .id(exampleTemplateId) .version(exampleBaseTemplateVersion) .build(); - PolicyAssignmentV1OptionsRoot rootAssignmentDetails = new PolicyAssignmentV1OptionsRoot.Builder() - .requesterId("test_sdk") - .assignmentId("test") - .build(); - PolicyAssignmentV1Options assignmentV1Options = new PolicyAssignmentV1Options.Builder() - .root(rootAssignmentDetails) - .build(); CreatePolicyTemplateAssignmentOptions createPolicyAssignmentOptions = new CreatePolicyTemplateAssignmentOptions.Builder() .version("1.0") .target(assignmentTargetDetails) .templates(new ArrayList(Arrays.asList(assignmentTemplateDetails))) - .options(assignmentV1Options) .build(); Response response = service.createPolicyTemplateAssignment(createPolicyAssignmentOptions).execute(); diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/IamPolicyManagement.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/IamPolicyManagement.java index 6d89901a55..6ea2ae8d8f 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/IamPolicyManagement.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/IamPolicyManagement.java @@ -12,7 +12,7 @@ */ /* - * IBM OpenAPI SDK Code Generator Version: 3.88.0-b0b4c159-20240402-205910 + * IBM OpenAPI SDK Code Generator Version: 3.90.1-64fd3296-20240515-180710 */ package com.ibm.cloud.platform_services.iam_policy_management.v1; @@ -1388,7 +1388,6 @@ public ServiceCall createPolicyTemplateAssignment( builder.query("version", String.valueOf(createPolicyTemplateAssignmentOptions.version())); final JsonObject contentJson = new JsonObject(); contentJson.add("target", com.ibm.cloud.sdk.core.util.GsonSingleton.getGson().toJsonTree(createPolicyTemplateAssignmentOptions.target())); - contentJson.add("options", com.ibm.cloud.sdk.core.util.GsonSingleton.getGson().toJsonTree(createPolicyTemplateAssignmentOptions.options())); contentJson.add("templates", com.ibm.cloud.sdk.core.util.GsonSingleton.getGson().toJsonTree(createPolicyTemplateAssignmentOptions.templates())); builder.bodyJson(contentJson); ResponseConverter responseConverter = diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/AssignmentResourceCreated.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/AssignmentResourceCreated.java index fa0291d9e4..9ab95dfaab 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/AssignmentResourceCreated.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/AssignmentResourceCreated.java @@ -10,6 +10,7 @@ * 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_policy_management.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/AssignmentTargetDetails.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/AssignmentTargetDetails.java index 643a04672a..801a69ff63 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/AssignmentTargetDetails.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/AssignmentTargetDetails.java @@ -10,6 +10,7 @@ * 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_policy_management.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/AssignmentTemplateDetails.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/AssignmentTemplateDetails.java index 77067162aa..111f201aee 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/AssignmentTemplateDetails.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/AssignmentTemplateDetails.java @@ -10,6 +10,7 @@ * 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_policy_management.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/CommitPolicyTemplateOptions.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/CommitPolicyTemplateOptions.java index 86a7781452..086e3ce1d2 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/CommitPolicyTemplateOptions.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/CommitPolicyTemplateOptions.java @@ -10,6 +10,7 @@ * 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_policy_management.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/ConflictsWith.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/ConflictsWith.java index 7e4be83781..77538287d2 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/ConflictsWith.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/ConflictsWith.java @@ -10,6 +10,7 @@ * 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_policy_management.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/Control.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/Control.java index f2a3ff01fa..38a7361dd7 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/Control.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/Control.java @@ -10,6 +10,7 @@ * 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_policy_management.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/ControlResponse.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/ControlResponse.java index 792bde94b1..15ec5fe880 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/ControlResponse.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/ControlResponse.java @@ -10,6 +10,7 @@ * 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_policy_management.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/ControlResponseControl.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/ControlResponseControl.java index 099712aae1..d12c759742 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/ControlResponseControl.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/ControlResponseControl.java @@ -10,6 +10,7 @@ * 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_policy_management.v1.model; /** diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/ControlResponseControlWithEnrichedRoles.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/ControlResponseControlWithEnrichedRoles.java index 3f06b5551a..580986a5e0 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/ControlResponseControlWithEnrichedRoles.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/ControlResponseControlWithEnrichedRoles.java @@ -10,6 +10,7 @@ * 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_policy_management.v1.model; /** diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/CreatePolicyOptions.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/CreatePolicyOptions.java index ce595033c7..b0d6d9ecc6 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/CreatePolicyOptions.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/CreatePolicyOptions.java @@ -10,6 +10,7 @@ * 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_policy_management.v1.model; import java.util.ArrayList; diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/CreatePolicyTemplateAssignmentOptions.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/CreatePolicyTemplateAssignmentOptions.java index 03a571f08e..ed6c899a25 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/CreatePolicyTemplateAssignmentOptions.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/CreatePolicyTemplateAssignmentOptions.java @@ -10,6 +10,7 @@ * 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_policy_management.v1.model; import java.util.ArrayList; @@ -24,7 +25,6 @@ public class CreatePolicyTemplateAssignmentOptions extends GenericModel { protected String version; protected AssignmentTargetDetails target; - protected PolicyAssignmentV1Options options; protected List templates; protected String acceptLanguage; @@ -34,7 +34,6 @@ public class CreatePolicyTemplateAssignmentOptions extends GenericModel { public static class Builder { private String version; private AssignmentTargetDetails target; - private PolicyAssignmentV1Options options; private List templates; private String acceptLanguage; @@ -46,7 +45,6 @@ public static class Builder { private Builder(CreatePolicyTemplateAssignmentOptions createPolicyTemplateAssignmentOptions) { this.version = createPolicyTemplateAssignmentOptions.version; this.target = createPolicyTemplateAssignmentOptions.target; - this.options = createPolicyTemplateAssignmentOptions.options; this.templates = createPolicyTemplateAssignmentOptions.templates; this.acceptLanguage = createPolicyTemplateAssignmentOptions.acceptLanguage; } @@ -62,13 +60,11 @@ public Builder() { * * @param version the version * @param target the target - * @param options the options * @param templates the templates */ - public Builder(String version, AssignmentTargetDetails target, PolicyAssignmentV1Options options, List templates) { + public Builder(String version, AssignmentTargetDetails target, List templates) { this.version = version; this.target = target; - this.options = options; this.templates = templates; } @@ -119,17 +115,6 @@ public Builder target(AssignmentTargetDetails target) { return this; } - /** - * Set the options. - * - * @param options the options - * @return the CreatePolicyTemplateAssignmentOptions builder - */ - public Builder options(PolicyAssignmentV1Options options) { - this.options = options; - return this; - } - /** * Set the templates. * Existing templates will be replaced. @@ -161,13 +146,10 @@ protected CreatePolicyTemplateAssignmentOptions(Builder builder) { "version cannot be null"); com.ibm.cloud.sdk.core.util.Validator.notNull(builder.target, "target cannot be null"); - com.ibm.cloud.sdk.core.util.Validator.notNull(builder.options, - "options cannot be null"); com.ibm.cloud.sdk.core.util.Validator.notNull(builder.templates, "templates cannot be null"); version = builder.version; target = builder.target; - options = builder.options; templates = builder.templates; acceptLanguage = builder.acceptLanguage; } @@ -203,17 +185,6 @@ public AssignmentTargetDetails target() { return target; } - /** - * Gets the options. - * - * The set of properties required for a policy assignment. - * - * @return the options - */ - public PolicyAssignmentV1Options options() { - return options; - } - /** * Gets the templates. * diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/CreatePolicyTemplateOptions.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/CreatePolicyTemplateOptions.java index 8d788ae93f..7920ad6fc9 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/CreatePolicyTemplateOptions.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/CreatePolicyTemplateOptions.java @@ -10,6 +10,7 @@ * 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_policy_management.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/CreatePolicyTemplateVersionOptions.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/CreatePolicyTemplateVersionOptions.java index 8a9d27d28b..dae5a98d7d 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/CreatePolicyTemplateVersionOptions.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/CreatePolicyTemplateVersionOptions.java @@ -10,6 +10,7 @@ * 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_policy_management.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/CreateRoleOptions.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/CreateRoleOptions.java index 5e825a646d..2ccddd12b2 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/CreateRoleOptions.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/CreateRoleOptions.java @@ -10,6 +10,7 @@ * 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_policy_management.v1.model; import java.util.ArrayList; diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/CreateV2PolicyOptions.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/CreateV2PolicyOptions.java index 9a27cafdf8..d7c03ab2d8 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/CreateV2PolicyOptions.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/CreateV2PolicyOptions.java @@ -10,6 +10,7 @@ * 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_policy_management.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/CustomRole.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/CustomRole.java index 762ad53898..8c4d59217d 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/CustomRole.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/CustomRole.java @@ -10,6 +10,7 @@ * 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_policy_management.v1.model; import java.util.Date; diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/DeletePolicyAssignmentOptions.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/DeletePolicyAssignmentOptions.java index b32c64c9b5..dd2a33ba19 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/DeletePolicyAssignmentOptions.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/DeletePolicyAssignmentOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * 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 @@ -10,6 +10,7 @@ * 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_policy_management.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/DeletePolicyOptions.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/DeletePolicyOptions.java index 8e6de4d437..8c283790bf 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/DeletePolicyOptions.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/DeletePolicyOptions.java @@ -10,6 +10,7 @@ * 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_policy_management.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/DeletePolicyTemplateOptions.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/DeletePolicyTemplateOptions.java index 191035640d..7815fc96c5 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/DeletePolicyTemplateOptions.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/DeletePolicyTemplateOptions.java @@ -10,6 +10,7 @@ * 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_policy_management.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/DeletePolicyTemplateVersionOptions.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/DeletePolicyTemplateVersionOptions.java index 3238d8ca81..c0d84fbccd 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/DeletePolicyTemplateVersionOptions.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/DeletePolicyTemplateVersionOptions.java @@ -10,6 +10,7 @@ * 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_policy_management.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/DeleteRoleOptions.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/DeleteRoleOptions.java index 8a308917b0..8099a5c01a 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/DeleteRoleOptions.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/DeleteRoleOptions.java @@ -10,6 +10,7 @@ * 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_policy_management.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/DeleteV2PolicyOptions.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/DeleteV2PolicyOptions.java index 356756a756..0646ddda22 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/DeleteV2PolicyOptions.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/DeleteV2PolicyOptions.java @@ -10,6 +10,7 @@ * 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_policy_management.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/EnrichedRoles.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/EnrichedRoles.java index f50b0b8de3..154d56edbf 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/EnrichedRoles.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/EnrichedRoles.java @@ -10,6 +10,7 @@ * 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_policy_management.v1.model; import java.util.List; diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/ErrorDetails.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/ErrorDetails.java index a8ffa47634..84f3afe3e6 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/ErrorDetails.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/ErrorDetails.java @@ -10,6 +10,7 @@ * 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_policy_management.v1.model; import com.google.gson.annotations.SerializedName; diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/ErrorObject.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/ErrorObject.java index 4a97aaca9f..d199851dd2 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/ErrorObject.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/ErrorObject.java @@ -10,6 +10,7 @@ * 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_policy_management.v1.model; import com.google.gson.annotations.SerializedName; diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/ErrorResponse.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/ErrorResponse.java index 9e5578eb94..2d081e1c24 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/ErrorResponse.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/ErrorResponse.java @@ -10,6 +10,7 @@ * 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_policy_management.v1.model; import java.util.List; diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/GetPolicyAssignmentOptions.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/GetPolicyAssignmentOptions.java index da1f0e5dbe..c81d69a75c 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/GetPolicyAssignmentOptions.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/GetPolicyAssignmentOptions.java @@ -10,6 +10,7 @@ * 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_policy_management.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/GetPolicyOptions.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/GetPolicyOptions.java index 9c1e31b618..307cb80566 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/GetPolicyOptions.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/GetPolicyOptions.java @@ -10,6 +10,7 @@ * 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_policy_management.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/GetPolicyTemplateOptions.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/GetPolicyTemplateOptions.java index f7bb31216e..231dfdb2fb 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/GetPolicyTemplateOptions.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/GetPolicyTemplateOptions.java @@ -10,6 +10,7 @@ * 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_policy_management.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/GetPolicyTemplateVersionOptions.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/GetPolicyTemplateVersionOptions.java index 481750cc31..5e51ad101e 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/GetPolicyTemplateVersionOptions.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/GetPolicyTemplateVersionOptions.java @@ -10,6 +10,7 @@ * 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_policy_management.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/GetRoleOptions.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/GetRoleOptions.java index 2a50da8741..449d436d82 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/GetRoleOptions.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/GetRoleOptions.java @@ -10,6 +10,7 @@ * 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_policy_management.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/GetV2PolicyOptions.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/GetV2PolicyOptions.java index b65cfa97bf..830eb6c7f8 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/GetV2PolicyOptions.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/GetV2PolicyOptions.java @@ -10,6 +10,7 @@ * 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_policy_management.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/Grant.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/Grant.java index f7a6acc4c0..30a0e9edf5 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/Grant.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/Grant.java @@ -10,6 +10,7 @@ * 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_policy_management.v1.model; import java.util.ArrayList; diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/GrantWithEnrichedRoles.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/GrantWithEnrichedRoles.java index 2bb0ffbfde..300602d139 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/GrantWithEnrichedRoles.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/GrantWithEnrichedRoles.java @@ -10,6 +10,7 @@ * 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_policy_management.v1.model; import java.util.List; diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/LimitData.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/LimitData.java index a310ad6e3e..035c0d83d7 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/LimitData.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/LimitData.java @@ -10,6 +10,7 @@ * 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_policy_management.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/ListPoliciesOptions.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/ListPoliciesOptions.java index d2da6a331c..8e9bf8eece 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/ListPoliciesOptions.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/ListPoliciesOptions.java @@ -10,6 +10,7 @@ * 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_policy_management.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/ListPolicyAssignmentsOptions.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/ListPolicyAssignmentsOptions.java index 96b939cc1d..6c9db59380 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/ListPolicyAssignmentsOptions.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/ListPolicyAssignmentsOptions.java @@ -10,6 +10,7 @@ * 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_policy_management.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/ListPolicyTemplateVersionsOptions.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/ListPolicyTemplateVersionsOptions.java index 54ff33bacd..2d12cf9641 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/ListPolicyTemplateVersionsOptions.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/ListPolicyTemplateVersionsOptions.java @@ -10,6 +10,7 @@ * 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_policy_management.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/ListPolicyTemplatesOptions.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/ListPolicyTemplatesOptions.java index 5110a43c1d..80b279f08d 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/ListPolicyTemplatesOptions.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/ListPolicyTemplatesOptions.java @@ -10,6 +10,7 @@ * 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_policy_management.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/ListRolesOptions.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/ListRolesOptions.java index f6f949a621..51aceedef4 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/ListRolesOptions.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/ListRolesOptions.java @@ -10,6 +10,7 @@ * 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_policy_management.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/ListV2PoliciesOptions.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/ListV2PoliciesOptions.java index bf0cca8b6e..1477a3de63 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/ListV2PoliciesOptions.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/ListV2PoliciesOptions.java @@ -10,6 +10,7 @@ * 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_policy_management.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/NestedCondition.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/NestedCondition.java index 9399820d43..475838a580 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/NestedCondition.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/NestedCondition.java @@ -10,6 +10,7 @@ * 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_policy_management.v1.model; import java.util.List; diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/NestedConditionRuleAttribute.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/NestedConditionRuleAttribute.java index 8418304e2b..ee6338f5d8 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/NestedConditionRuleAttribute.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/NestedConditionRuleAttribute.java @@ -10,6 +10,7 @@ * 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_policy_management.v1.model; /** diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/NestedConditionRuleWithConditions.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/NestedConditionRuleWithConditions.java index 6d584c81a1..f05494e8de 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/NestedConditionRuleWithConditions.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/NestedConditionRuleWithConditions.java @@ -10,6 +10,7 @@ * 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_policy_management.v1.model; import java.util.ArrayList; diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/Policy.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/Policy.java index a75c5f54ad..84d1740584 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/Policy.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/Policy.java @@ -10,6 +10,7 @@ * 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_policy_management.v1.model; import java.util.Date; diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/PolicyAssignmentResourcePolicy.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/PolicyAssignmentResourcePolicy.java index c5a4ea3803..2651e8d1b2 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/PolicyAssignmentResourcePolicy.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/PolicyAssignmentResourcePolicy.java @@ -10,6 +10,7 @@ * 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_policy_management.v1.model; import com.google.gson.annotations.SerializedName; diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/PolicyAssignmentV1.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/PolicyAssignmentV1.java index 7002beeae5..ef0f5b3d41 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/PolicyAssignmentV1.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/PolicyAssignmentV1.java @@ -10,6 +10,7 @@ * 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_policy_management.v1.model; import java.util.Date; @@ -38,7 +39,6 @@ public interface Status { } protected AssignmentTargetDetails target; - protected PolicyAssignmentV1Options options; protected String id; @SerializedName("account_id") protected String accountId; @@ -69,17 +69,6 @@ public AssignmentTargetDetails getTarget() { return target; } - /** - * Gets the options. - * - * The set of properties required for a policy assignment. - * - * @return the options - */ - public PolicyAssignmentV1Options getOptions() { - return options; - } - /** * Gets the id. * diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/PolicyAssignmentV1Collection.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/PolicyAssignmentV1Collection.java index 8fb223003f..c241f9c4ce 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/PolicyAssignmentV1Collection.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/PolicyAssignmentV1Collection.java @@ -10,6 +10,7 @@ * 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_policy_management.v1.model; import java.util.List; diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/PolicyAssignmentV1Resources.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/PolicyAssignmentV1Resources.java index 734f85d7f9..fc5daaf7c1 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/PolicyAssignmentV1Resources.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/PolicyAssignmentV1Resources.java @@ -10,6 +10,7 @@ * 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_policy_management.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; @@ -19,7 +20,7 @@ */ public class PolicyAssignmentV1Resources extends GenericModel { - protected AssignmentTemplateDetails target; + protected AssignmentTargetDetails target; protected PolicyAssignmentResourcePolicy policy; protected PolicyAssignmentV1Resources() { } @@ -27,11 +28,11 @@ protected PolicyAssignmentV1Resources() { } /** * Gets the target. * - * policy template details. + * assignment target account and type. * * @return the target */ - public AssignmentTemplateDetails getTarget() { + public AssignmentTargetDetails getTarget() { return target; } diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/PolicyAssignmentV1Subject.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/PolicyAssignmentV1Subject.java index ef10e05a55..66cd278fa3 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/PolicyAssignmentV1Subject.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/PolicyAssignmentV1Subject.java @@ -10,6 +10,7 @@ * 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_policy_management.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/PolicyCollection.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/PolicyCollection.java index 28fdfd5743..3053e031ad 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/PolicyCollection.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/PolicyCollection.java @@ -10,6 +10,7 @@ * 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_policy_management.v1.model; import java.util.List; diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/PolicyResource.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/PolicyResource.java index 1158623750..3e5c6f7963 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/PolicyResource.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/PolicyResource.java @@ -10,6 +10,7 @@ * 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_policy_management.v1.model; import java.util.ArrayList; diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/PolicyRole.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/PolicyRole.java index ee08a0cd94..6b283723fb 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/PolicyRole.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/PolicyRole.java @@ -10,6 +10,7 @@ * 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_policy_management.v1.model; import com.google.gson.annotations.SerializedName; diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/PolicySubject.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/PolicySubject.java index f4d186f8c4..ecc3b90c91 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/PolicySubject.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/PolicySubject.java @@ -10,6 +10,7 @@ * 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_policy_management.v1.model; import java.util.ArrayList; diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/PolicyTemplate.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/PolicyTemplate.java index e00f188eab..b01059e2b4 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/PolicyTemplate.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/PolicyTemplate.java @@ -10,6 +10,7 @@ * 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_policy_management.v1.model; import java.util.Date; diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/PolicyTemplateCollection.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/PolicyTemplateCollection.java index 8fc7038704..d8a689dd7d 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/PolicyTemplateCollection.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/PolicyTemplateCollection.java @@ -10,6 +10,7 @@ * 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_policy_management.v1.model; import java.util.List; diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/PolicyTemplateLimitData.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/PolicyTemplateLimitData.java index 34a40ab8e5..18420947f7 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/PolicyTemplateLimitData.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/PolicyTemplateLimitData.java @@ -10,6 +10,7 @@ * 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_policy_management.v1.model; import java.util.Date; diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/PolicyTemplateMetaData.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/PolicyTemplateMetaData.java index ec53ebe4fe..ccf0e4909f 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/PolicyTemplateMetaData.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/PolicyTemplateMetaData.java @@ -10,6 +10,7 @@ * 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_policy_management.v1.model; import java.util.Date; diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/PolicyTemplateVersionsCollection.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/PolicyTemplateVersionsCollection.java index 7668671746..dcc812bdbd 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/PolicyTemplateVersionsCollection.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/PolicyTemplateVersionsCollection.java @@ -10,6 +10,7 @@ * 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_policy_management.v1.model; import java.util.List; diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/ReplacePolicyOptions.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/ReplacePolicyOptions.java index 90aaeb2dad..608a38dd67 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/ReplacePolicyOptions.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/ReplacePolicyOptions.java @@ -10,6 +10,7 @@ * 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_policy_management.v1.model; import java.util.ArrayList; diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/ReplacePolicyTemplateOptions.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/ReplacePolicyTemplateOptions.java index 7a77215607..4523bc9d82 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/ReplacePolicyTemplateOptions.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/ReplacePolicyTemplateOptions.java @@ -10,6 +10,7 @@ * 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_policy_management.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/ReplaceRoleOptions.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/ReplaceRoleOptions.java index 0bbdfe21e0..4ddc5a8877 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/ReplaceRoleOptions.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/ReplaceRoleOptions.java @@ -10,6 +10,7 @@ * 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_policy_management.v1.model; import java.util.ArrayList; diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/ReplaceV2PolicyOptions.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/ReplaceV2PolicyOptions.java index c0e0e59a5e..46bcb34a11 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/ReplaceV2PolicyOptions.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/ReplaceV2PolicyOptions.java @@ -10,6 +10,7 @@ * 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_policy_management.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/ResourceAttribute.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/ResourceAttribute.java index cd9f1973a8..bb7d0af638 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/ResourceAttribute.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/ResourceAttribute.java @@ -10,6 +10,7 @@ * 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_policy_management.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/ResourceTag.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/ResourceTag.java index 0652d5e73b..be2380b9d7 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/ResourceTag.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/ResourceTag.java @@ -10,6 +10,7 @@ * 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_policy_management.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/Role.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/Role.java index 54455af7b6..aad02c367e 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/Role.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/Role.java @@ -10,6 +10,7 @@ * 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_policy_management.v1.model; import java.util.ArrayList; diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/RoleAction.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/RoleAction.java index 9a44eeef66..73b04314f3 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/RoleAction.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/RoleAction.java @@ -10,6 +10,7 @@ * 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_policy_management.v1.model; import com.google.gson.annotations.SerializedName; diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/RoleCollection.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/RoleCollection.java index f84cf8447f..2ad030b05a 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/RoleCollection.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/RoleCollection.java @@ -10,6 +10,7 @@ * 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_policy_management.v1.model; import java.util.List; diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/Roles.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/Roles.java index 98a9eca469..e9e18a5c52 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/Roles.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/Roles.java @@ -10,6 +10,7 @@ * 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_policy_management.v1.model; import com.google.gson.annotations.SerializedName; diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/RuleAttribute.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/RuleAttribute.java index e1be29c71c..87e8512659 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/RuleAttribute.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/RuleAttribute.java @@ -10,6 +10,7 @@ * 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_policy_management.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/SubjectAttribute.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/SubjectAttribute.java index a8f9f00ad9..22a68a0173 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/SubjectAttribute.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/SubjectAttribute.java @@ -10,6 +10,7 @@ * 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_policy_management.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/TemplateCountData.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/TemplateCountData.java index 53624168cb..b8dda6e599 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/TemplateCountData.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/TemplateCountData.java @@ -10,6 +10,7 @@ * 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_policy_management.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/TemplateMetadata.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/TemplateMetadata.java index 87ddd8dfc1..76f28eb5c9 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/TemplateMetadata.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/TemplateMetadata.java @@ -10,6 +10,7 @@ * 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_policy_management.v1.model; import com.google.gson.annotations.SerializedName; diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/TemplatePolicy.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/TemplatePolicy.java index fd157a06a3..f5a0c01cf6 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/TemplatePolicy.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/TemplatePolicy.java @@ -10,6 +10,7 @@ * 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_policy_management.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; @@ -74,13 +75,9 @@ public Builder() { * Instantiates a new builder with required properties. * * @param type the type - * @param resource the resource - * @param control the control */ - public Builder(String type, V2PolicyResource resource, Control control) { + public Builder(String type) { this.type = type; - this.resource = resource; - this.control = control; } /** @@ -175,10 +172,6 @@ protected TemplatePolicy() { } protected TemplatePolicy(Builder builder) { com.ibm.cloud.sdk.core.util.Validator.notNull(builder.type, "type cannot be null"); - com.ibm.cloud.sdk.core.util.Validator.notNull(builder.resource, - "resource cannot be null"); - com.ibm.cloud.sdk.core.util.Validator.notNull(builder.control, - "control cannot be null"); type = builder.type; description = builder.description; resource = builder.resource; diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/UpdatePolicyAssignmentOptions.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/UpdatePolicyAssignmentOptions.java index 31ea91defb..2f6075eba2 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/UpdatePolicyAssignmentOptions.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/UpdatePolicyAssignmentOptions.java @@ -10,6 +10,7 @@ * 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_policy_management.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/UpdatePolicyStateOptions.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/UpdatePolicyStateOptions.java index 17277d3fff..6159230826 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/UpdatePolicyStateOptions.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/UpdatePolicyStateOptions.java @@ -10,6 +10,7 @@ * 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_policy_management.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/V2Policy.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/V2Policy.java index 1fe584d666..9f090ad3c9 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/V2Policy.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/V2Policy.java @@ -10,6 +10,7 @@ * 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_policy_management.v1.model; import java.util.Date; diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/V2PolicyCollection.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/V2PolicyCollection.java index 873bfa5e9d..4228ef5306 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/V2PolicyCollection.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/V2PolicyCollection.java @@ -10,6 +10,7 @@ * 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_policy_management.v1.model; import java.util.List; diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/V2PolicyResource.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/V2PolicyResource.java index 2942c66438..67489890d4 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/V2PolicyResource.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/V2PolicyResource.java @@ -10,6 +10,7 @@ * 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_policy_management.v1.model; import java.util.ArrayList; diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/V2PolicyResourceAttribute.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/V2PolicyResourceAttribute.java index ef4a5463ba..c2c3f435a8 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/V2PolicyResourceAttribute.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/V2PolicyResourceAttribute.java @@ -10,6 +10,7 @@ * 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_policy_management.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/V2PolicyResourceTag.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/V2PolicyResourceTag.java index f35cf6e090..d3d00b125c 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/V2PolicyResourceTag.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/V2PolicyResourceTag.java @@ -10,6 +10,7 @@ * 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_policy_management.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/V2PolicyRule.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/V2PolicyRule.java index 3437d2b297..784dcf49f9 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/V2PolicyRule.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/V2PolicyRule.java @@ -10,6 +10,7 @@ * 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_policy_management.v1.model; import java.util.List; diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/V2PolicyRuleRuleAttribute.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/V2PolicyRuleRuleAttribute.java index 2fd8e998b4..9fccafab1d 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/V2PolicyRuleRuleAttribute.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/V2PolicyRuleRuleAttribute.java @@ -10,6 +10,7 @@ * 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_policy_management.v1.model; /** diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/V2PolicyRuleRuleWithNestedConditions.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/V2PolicyRuleRuleWithNestedConditions.java index 1015871ed1..766fa55c7b 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/V2PolicyRuleRuleWithNestedConditions.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/V2PolicyRuleRuleWithNestedConditions.java @@ -10,6 +10,7 @@ * 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_policy_management.v1.model; import java.util.ArrayList; diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/V2PolicySubject.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/V2PolicySubject.java index af98cf4198..c0c7a5a56c 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/V2PolicySubject.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/V2PolicySubject.java @@ -10,6 +10,7 @@ * 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_policy_management.v1.model; import java.util.ArrayList; diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/V2PolicySubjectAttribute.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/V2PolicySubjectAttribute.java index 71441f9efe..6b5ba793fe 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/V2PolicySubjectAttribute.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/V2PolicySubjectAttribute.java @@ -10,6 +10,7 @@ * 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_policy_management.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/V2PolicyTemplateMetaData.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/V2PolicyTemplateMetaData.java index 5aae15c113..bb449d495a 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/V2PolicyTemplateMetaData.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/V2PolicyTemplateMetaData.java @@ -10,6 +10,7 @@ * 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_policy_management.v1.model; import java.util.Date; diff --git a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/package-info.java b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/package-info.java index 20aa897939..7e1cba8bc8 100644 --- a/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/package-info.java +++ b/modules/iam-policy-management/src/main/java/com/ibm/cloud/platform_services/iam_policy_management/v1/package-info.java @@ -10,6 +10,7 @@ * 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. */ + /** * IAM Policy Management v1. */ diff --git a/modules/iam-policy-management/src/test/java/com/ibm/cloud/platform_services/iam_policy_management/v1/IamPolicyManagementIT.java b/modules/iam-policy-management/src/test/java/com/ibm/cloud/platform_services/iam_policy_management/v1/IamPolicyManagementIT.java index 07d5683622..d81aac05fd 100644 --- a/modules/iam-policy-management/src/test/java/com/ibm/cloud/platform_services/iam_policy_management/v1/IamPolicyManagementIT.java +++ b/modules/iam-policy-management/src/test/java/com/ibm/cloud/platform_services/iam_policy_management/v1/IamPolicyManagementIT.java @@ -34,6 +34,7 @@ import com.ibm.cloud.platform_services.test.SdkIntegrationTestBase; import com.ibm.cloud.sdk.core.http.Response; import com.ibm.cloud.sdk.core.service.exception.ServiceResponseException; +import com.ibm.cloud.sdk.core.service.exception.BadRequestException; import com.ibm.cloud.sdk.core.util.CredentialUtils; /** @@ -57,6 +58,7 @@ public class IamPolicyManagementIT extends SdkIntegrationTestBase { String testAccountId = null; String testTargetAccountId = null; + String testTargetEnterpriseAccountId = null; String testPolicyId = null; String testPolicyEtag = null; String testV2PolicyId = null; @@ -116,6 +118,9 @@ public void constructService() { testTargetAccountId = config.get("TEST_TARGET_ACCOUNT_ID"); assertNotNull(testTargetAccountId); + testTargetEnterpriseAccountId = config.get("TEST_TARGET_ENTERPRISE_ACCOUNT_ID"); + assertNotNull(testTargetEnterpriseAccountId); + // Construct the service from our external configuration. service = IamPolicyManagement.newInstance(); assertNotNull(service); @@ -124,6 +129,7 @@ public void constructService() { log("Using Account Id: " + testAccountId); log("Using Service URL: " + service.getServiceUrl()); log("Using Child Account in Enterprise" + testTargetAccountId); + log("Using Enterprise Account" + testTargetEnterpriseAccountId); } @Test @@ -1194,6 +1200,32 @@ public void testListPolicyAssignments() throws Exception { assertNotNull(assignments); } + @Test(dependsOnMethods = { "testCreateS2SPolicyTemplate" }) + public void testCreatePolicyAssignmentError() throws Exception { + try { + AssignmentTargetDetails assignmentTargetDetails = new AssignmentTargetDetails.Builder() + .type("Enterprise") + .id(testTargetEnterpriseAccountId) + .build(); + + AssignmentTemplateDetails assignmentTemplateDetails = new AssignmentTemplateDetails.Builder() + .id(testS2STemplateId) + .version(testS2SBaseTemplateVersion) + .build(); + + CreatePolicyTemplateAssignmentOptions createPolicyAssignmentOptions = new CreatePolicyTemplateAssignmentOptions.Builder() + .version("1.0") + .target(assignmentTargetDetails) + .templates(new ArrayList(Arrays.asList(assignmentTemplateDetails))) + .build(); + service.createPolicyTemplateAssignment(createPolicyAssignmentOptions).execute(); + } catch (BadRequestException e) { + assertEquals(e.getStatusCode(), 400); + assertEquals(e.getMessage(), + "Invalid body format. Check the input parameters. instance.target.type is not one of enum values: Account"); + } + } + @Test(dependsOnMethods = { "testCreateS2SPolicyTemplate" }) public void testCreatePolicyAssignment() throws Exception { @@ -1206,22 +1238,11 @@ public void testCreatePolicyAssignment() throws Exception { .id(testS2STemplateId) .version(testS2SBaseTemplateVersion) .build(); - - - PolicyAssignmentV1OptionsRoot rootAssignmentDetails = new PolicyAssignmentV1OptionsRoot.Builder() - .requesterId("test_sdk") - .assignmentId("test") - .build(); - - PolicyAssignmentV1Options assignmentV1Options = new PolicyAssignmentV1Options.Builder() - .root(rootAssignmentDetails) - .build(); CreatePolicyTemplateAssignmentOptions createPolicyAssignmentOptions = new CreatePolicyTemplateAssignmentOptions.Builder() .version("1.0") .target(assignmentTargetDetails) .templates(new ArrayList(Arrays.asList(assignmentTemplateDetails))) - .options(assignmentV1Options) .build(); Response response = service.createPolicyTemplateAssignment(createPolicyAssignmentOptions).execute(); diff --git a/modules/iam-policy-management/src/test/java/com/ibm/cloud/platform_services/iam_policy_management/v1/IamPolicyManagementTest.java b/modules/iam-policy-management/src/test/java/com/ibm/cloud/platform_services/iam_policy_management/v1/IamPolicyManagementTest.java index 5deb6a6178..9d260bc88b 100644 --- a/modules/iam-policy-management/src/test/java/com/ibm/cloud/platform_services/iam_policy_management/v1/IamPolicyManagementTest.java +++ b/modules/iam-policy-management/src/test/java/com/ibm/cloud/platform_services/iam_policy_management/v1/IamPolicyManagementTest.java @@ -10,6 +10,7 @@ * 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_policy_management.v1; import com.ibm.cloud.platform_services.iam_policy_management.v1.IamPolicyManagement; @@ -61,9 +62,6 @@ import com.ibm.cloud.platform_services.iam_policy_management.v1.model.PolicyAssignmentResourcePolicy; import com.ibm.cloud.platform_services.iam_policy_management.v1.model.PolicyAssignmentV1; import com.ibm.cloud.platform_services.iam_policy_management.v1.model.PolicyAssignmentV1Collection; -import com.ibm.cloud.platform_services.iam_policy_management.v1.model.PolicyAssignmentV1Options; -import com.ibm.cloud.platform_services.iam_policy_management.v1.model.PolicyAssignmentV1OptionsRoot; -import com.ibm.cloud.platform_services.iam_policy_management.v1.model.PolicyAssignmentV1OptionsRootTemplate; import com.ibm.cloud.platform_services.iam_policy_management.v1.model.PolicyAssignmentV1Resources; import com.ibm.cloud.platform_services.iam_policy_management.v1.model.PolicyAssignmentV1Subject; import com.ibm.cloud.platform_services.iam_policy_management.v1.model.PolicyCollection; @@ -1967,7 +1965,7 @@ public void testCommitPolicyTemplateNoOptions() throws Throwable { @Test public void testListPolicyAssignmentsWOptions() throws Throwable { // Register a mock response - String mockResponseBody = "{\"assignments\": [{\"target\": {\"type\": \"Account\", \"id\": \"id\"}, \"options\": {\"root\": {\"requester_id\": \"requesterId\", \"assignment_id\": \"assignmentId\", \"template\": {\"id\": \"id\", \"version\": \"version\"}}}, \"id\": \"id\", \"account_id\": \"accountId\", \"href\": \"href\", \"created_at\": \"2019-01-01T12:00:00.000Z\", \"created_by_id\": \"createdById\", \"last_modified_at\": \"2019-01-01T12:00:00.000Z\", \"last_modified_by_id\": \"lastModifiedById\", \"resources\": [{\"target\": {\"id\": \"id\", \"version\": \"version\"}, \"policy\": {\"resource_created\": {\"id\": \"id\"}, \"status\": \"status\", \"error_message\": {\"trace\": \"trace\", \"errors\": [{\"code\": \"insufficent_permissions\", \"message\": \"message\", \"details\": {\"conflicts_with\": {\"etag\": \"etag\", \"role\": \"role\", \"policy\": \"policy\"}}, \"more_info\": \"moreInfo\"}], \"status_code\": 10}}}], \"subject\": {\"id\": \"id\", \"type\": \"iam_id\"}, \"template\": {\"id\": \"id\", \"version\": \"version\"}, \"status\": \"in_progress\"}]}"; + String mockResponseBody = "{\"assignments\": [{\"target\": {\"type\": \"Account\", \"id\": \"id\"}, \"id\": \"id\", \"account_id\": \"accountId\", \"href\": \"href\", \"created_at\": \"2019-01-01T12:00:00.000Z\", \"created_by_id\": \"createdById\", \"last_modified_at\": \"2019-01-01T12:00:00.000Z\", \"last_modified_by_id\": \"lastModifiedById\", \"resources\": [{\"target\": {\"type\": \"Account\", \"id\": \"id\"}, \"policy\": {\"resource_created\": {\"id\": \"id\"}, \"status\": \"status\", \"error_message\": {\"trace\": \"trace\", \"errors\": [{\"code\": \"insufficent_permissions\", \"message\": \"message\", \"details\": {\"conflicts_with\": {\"etag\": \"etag\", \"role\": \"role\", \"policy\": \"policy\"}}, \"more_info\": \"moreInfo\"}], \"status_code\": 10}}}], \"subject\": {\"id\": \"id\", \"type\": \"iam_id\"}, \"template\": {\"id\": \"id\", \"version\": \"version\"}, \"status\": \"in_progress\"}]}"; String listPolicyAssignmentsPath = "/v1/policy_assignments"; server.enqueue(new MockResponse() .setHeader("Content-type", "application/json") @@ -2026,7 +2024,7 @@ public void testListPolicyAssignmentsNoOptions() throws Throwable { @Test public void testCreatePolicyTemplateAssignmentWOptions() throws Throwable { // Register a mock response - String mockResponseBody = "{\"assignments\": [{\"target\": {\"type\": \"Account\", \"id\": \"id\"}, \"options\": {\"root\": {\"requester_id\": \"requesterId\", \"assignment_id\": \"assignmentId\", \"template\": {\"id\": \"id\", \"version\": \"version\"}}}, \"id\": \"id\", \"account_id\": \"accountId\", \"href\": \"href\", \"created_at\": \"2019-01-01T12:00:00.000Z\", \"created_by_id\": \"createdById\", \"last_modified_at\": \"2019-01-01T12:00:00.000Z\", \"last_modified_by_id\": \"lastModifiedById\", \"resources\": [{\"target\": {\"id\": \"id\", \"version\": \"version\"}, \"policy\": {\"resource_created\": {\"id\": \"id\"}, \"status\": \"status\", \"error_message\": {\"trace\": \"trace\", \"errors\": [{\"code\": \"insufficent_permissions\", \"message\": \"message\", \"details\": {\"conflicts_with\": {\"etag\": \"etag\", \"role\": \"role\", \"policy\": \"policy\"}}, \"more_info\": \"moreInfo\"}], \"status_code\": 10}}}], \"subject\": {\"id\": \"id\", \"type\": \"iam_id\"}, \"template\": {\"id\": \"id\", \"version\": \"version\"}, \"status\": \"in_progress\"}]}"; + String mockResponseBody = "{\"assignments\": [{\"target\": {\"type\": \"Account\", \"id\": \"id\"}, \"id\": \"id\", \"account_id\": \"accountId\", \"href\": \"href\", \"created_at\": \"2019-01-01T12:00:00.000Z\", \"created_by_id\": \"createdById\", \"last_modified_at\": \"2019-01-01T12:00:00.000Z\", \"last_modified_by_id\": \"lastModifiedById\", \"resources\": [{\"target\": {\"type\": \"Account\", \"id\": \"id\"}, \"policy\": {\"resource_created\": {\"id\": \"id\"}, \"status\": \"status\", \"error_message\": {\"trace\": \"trace\", \"errors\": [{\"code\": \"insufficent_permissions\", \"message\": \"message\", \"details\": {\"conflicts_with\": {\"etag\": \"etag\", \"role\": \"role\", \"policy\": \"policy\"}}, \"more_info\": \"moreInfo\"}], \"status_code\": 10}}}], \"subject\": {\"id\": \"id\", \"type\": \"iam_id\"}, \"template\": {\"id\": \"id\", \"version\": \"version\"}, \"status\": \"in_progress\"}]}"; String createPolicyTemplateAssignmentPath = "/v1/policy_assignments"; server.enqueue(new MockResponse() .setHeader("Content-type", "application/json") @@ -2039,24 +2037,6 @@ public void testCreatePolicyTemplateAssignmentWOptions() throws Throwable { .id("testString") .build(); - // Construct an instance of the PolicyAssignmentV1OptionsRootTemplate model - PolicyAssignmentV1OptionsRootTemplate policyAssignmentV1OptionsRootTemplateModel = new PolicyAssignmentV1OptionsRootTemplate.Builder() - .id("testString") - .version("testString") - .build(); - - // Construct an instance of the PolicyAssignmentV1OptionsRoot model - PolicyAssignmentV1OptionsRoot policyAssignmentV1OptionsRootModel = new PolicyAssignmentV1OptionsRoot.Builder() - .requesterId("testString") - .assignmentId("testString") - .template(policyAssignmentV1OptionsRootTemplateModel) - .build(); - - // Construct an instance of the PolicyAssignmentV1Options model - PolicyAssignmentV1Options policyAssignmentV1OptionsModel = new PolicyAssignmentV1Options.Builder() - .root(policyAssignmentV1OptionsRootModel) - .build(); - // Construct an instance of the AssignmentTemplateDetails model AssignmentTemplateDetails assignmentTemplateDetailsModel = new AssignmentTemplateDetails.Builder() .id("testString") @@ -2067,7 +2047,6 @@ public void testCreatePolicyTemplateAssignmentWOptions() throws Throwable { CreatePolicyTemplateAssignmentOptions createPolicyTemplateAssignmentOptionsModel = new CreatePolicyTemplateAssignmentOptions.Builder() .version("1.0") .target(assignmentTargetDetailsModel) - .options(policyAssignmentV1OptionsModel) .templates(java.util.Arrays.asList(assignmentTemplateDetailsModel)) .acceptLanguage("default") .build(); @@ -2112,7 +2091,7 @@ public void testCreatePolicyTemplateAssignmentNoOptions() throws Throwable { @Test public void testGetPolicyAssignmentWOptions() throws Throwable { // Register a mock response - String mockResponseBody = "{\"target\": {\"type\": \"Account\", \"id\": \"id\"}, \"options\": {\"root\": {\"requester_id\": \"requesterId\", \"assignment_id\": \"assignmentId\", \"template\": {\"id\": \"id\", \"version\": \"version\"}}}, \"id\": \"id\", \"account_id\": \"accountId\", \"href\": \"href\", \"created_at\": \"2019-01-01T12:00:00.000Z\", \"created_by_id\": \"createdById\", \"last_modified_at\": \"2019-01-01T12:00:00.000Z\", \"last_modified_by_id\": \"lastModifiedById\", \"resources\": [{\"target\": {\"id\": \"id\", \"version\": \"version\"}, \"policy\": {\"resource_created\": {\"id\": \"id\"}, \"status\": \"status\", \"error_message\": {\"trace\": \"trace\", \"errors\": [{\"code\": \"insufficent_permissions\", \"message\": \"message\", \"details\": {\"conflicts_with\": {\"etag\": \"etag\", \"role\": \"role\", \"policy\": \"policy\"}}, \"more_info\": \"moreInfo\"}], \"status_code\": 10}}}], \"subject\": {\"id\": \"id\", \"type\": \"iam_id\"}, \"template\": {\"id\": \"id\", \"version\": \"version\"}, \"status\": \"in_progress\"}"; + String mockResponseBody = "{\"target\": {\"type\": \"Account\", \"id\": \"id\"}, \"id\": \"id\", \"account_id\": \"accountId\", \"href\": \"href\", \"created_at\": \"2019-01-01T12:00:00.000Z\", \"created_by_id\": \"createdById\", \"last_modified_at\": \"2019-01-01T12:00:00.000Z\", \"last_modified_by_id\": \"lastModifiedById\", \"resources\": [{\"target\": {\"type\": \"Account\", \"id\": \"id\"}, \"policy\": {\"resource_created\": {\"id\": \"id\"}, \"status\": \"status\", \"error_message\": {\"trace\": \"trace\", \"errors\": [{\"code\": \"insufficent_permissions\", \"message\": \"message\", \"details\": {\"conflicts_with\": {\"etag\": \"etag\", \"role\": \"role\", \"policy\": \"policy\"}}, \"more_info\": \"moreInfo\"}], \"status_code\": 10}}}], \"subject\": {\"id\": \"id\", \"type\": \"iam_id\"}, \"template\": {\"id\": \"id\", \"version\": \"version\"}, \"status\": \"in_progress\"}"; String getPolicyAssignmentPath = "/v1/policy_assignments/testString"; server.enqueue(new MockResponse() .setHeader("Content-type", "application/json") @@ -2165,7 +2144,7 @@ public void testGetPolicyAssignmentNoOptions() throws Throwable { @Test public void testUpdatePolicyAssignmentWOptions() throws Throwable { // Register a mock response - String mockResponseBody = "{\"target\": {\"type\": \"Account\", \"id\": \"id\"}, \"options\": {\"root\": {\"requester_id\": \"requesterId\", \"assignment_id\": \"assignmentId\", \"template\": {\"id\": \"id\", \"version\": \"version\"}}}, \"id\": \"id\", \"account_id\": \"accountId\", \"href\": \"href\", \"created_at\": \"2019-01-01T12:00:00.000Z\", \"created_by_id\": \"createdById\", \"last_modified_at\": \"2019-01-01T12:00:00.000Z\", \"last_modified_by_id\": \"lastModifiedById\", \"resources\": [{\"target\": {\"id\": \"id\", \"version\": \"version\"}, \"policy\": {\"resource_created\": {\"id\": \"id\"}, \"status\": \"status\", \"error_message\": {\"trace\": \"trace\", \"errors\": [{\"code\": \"insufficent_permissions\", \"message\": \"message\", \"details\": {\"conflicts_with\": {\"etag\": \"etag\", \"role\": \"role\", \"policy\": \"policy\"}}, \"more_info\": \"moreInfo\"}], \"status_code\": 10}}}], \"subject\": {\"id\": \"id\", \"type\": \"iam_id\"}, \"template\": {\"id\": \"id\", \"version\": \"version\"}, \"status\": \"in_progress\"}"; + String mockResponseBody = "{\"target\": {\"type\": \"Account\", \"id\": \"id\"}, \"id\": \"id\", \"account_id\": \"accountId\", \"href\": \"href\", \"created_at\": \"2019-01-01T12:00:00.000Z\", \"created_by_id\": \"createdById\", \"last_modified_at\": \"2019-01-01T12:00:00.000Z\", \"last_modified_by_id\": \"lastModifiedById\", \"resources\": [{\"target\": {\"type\": \"Account\", \"id\": \"id\"}, \"policy\": {\"resource_created\": {\"id\": \"id\"}, \"status\": \"status\", \"error_message\": {\"trace\": \"trace\", \"errors\": [{\"code\": \"insufficent_permissions\", \"message\": \"message\", \"details\": {\"conflicts_with\": {\"etag\": \"etag\", \"role\": \"role\", \"policy\": \"policy\"}}, \"more_info\": \"moreInfo\"}], \"status_code\": 10}}}], \"subject\": {\"id\": \"id\", \"type\": \"iam_id\"}, \"template\": {\"id\": \"id\", \"version\": \"version\"}, \"status\": \"in_progress\"}"; String updatePolicyAssignmentPath = "/v1/policy_assignments/testString"; server.enqueue(new MockResponse() .setHeader("Content-type", "application/json") diff --git a/modules/iam-policy-management/src/test/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/CreatePolicyTemplateAssignmentOptionsTest.java b/modules/iam-policy-management/src/test/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/CreatePolicyTemplateAssignmentOptionsTest.java index dd2e2a68cf..43cb6a5337 100644 --- a/modules/iam-policy-management/src/test/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/CreatePolicyTemplateAssignmentOptionsTest.java +++ b/modules/iam-policy-management/src/test/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/CreatePolicyTemplateAssignmentOptionsTest.java @@ -16,9 +16,6 @@ import com.ibm.cloud.platform_services.iam_policy_management.v1.model.AssignmentTargetDetails; import com.ibm.cloud.platform_services.iam_policy_management.v1.model.AssignmentTemplateDetails; import com.ibm.cloud.platform_services.iam_policy_management.v1.model.CreatePolicyTemplateAssignmentOptions; -import com.ibm.cloud.platform_services.iam_policy_management.v1.model.PolicyAssignmentV1Options; -import com.ibm.cloud.platform_services.iam_policy_management.v1.model.PolicyAssignmentV1OptionsRoot; -import com.ibm.cloud.platform_services.iam_policy_management.v1.model.PolicyAssignmentV1OptionsRootTemplate; import com.ibm.cloud.platform_services.iam_policy_management.v1.utils.TestUtilities; import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; @@ -43,27 +40,6 @@ public void testCreatePolicyTemplateAssignmentOptions() throws Throwable { assertEquals(assignmentTargetDetailsModel.type(), "Account"); assertEquals(assignmentTargetDetailsModel.id(), "testString"); - PolicyAssignmentV1OptionsRootTemplate policyAssignmentV1OptionsRootTemplateModel = new PolicyAssignmentV1OptionsRootTemplate.Builder() - .id("testString") - .version("testString") - .build(); - assertEquals(policyAssignmentV1OptionsRootTemplateModel.id(), "testString"); - assertEquals(policyAssignmentV1OptionsRootTemplateModel.version(), "testString"); - - PolicyAssignmentV1OptionsRoot policyAssignmentV1OptionsRootModel = new PolicyAssignmentV1OptionsRoot.Builder() - .requesterId("testString") - .assignmentId("testString") - .template(policyAssignmentV1OptionsRootTemplateModel) - .build(); - assertEquals(policyAssignmentV1OptionsRootModel.requesterId(), "testString"); - assertEquals(policyAssignmentV1OptionsRootModel.assignmentId(), "testString"); - assertEquals(policyAssignmentV1OptionsRootModel.template(), policyAssignmentV1OptionsRootTemplateModel); - - PolicyAssignmentV1Options policyAssignmentV1OptionsModel = new PolicyAssignmentV1Options.Builder() - .root(policyAssignmentV1OptionsRootModel) - .build(); - assertEquals(policyAssignmentV1OptionsModel.root(), policyAssignmentV1OptionsRootModel); - AssignmentTemplateDetails assignmentTemplateDetailsModel = new AssignmentTemplateDetails.Builder() .id("testString") .version("testString") @@ -74,13 +50,11 @@ public void testCreatePolicyTemplateAssignmentOptions() throws Throwable { CreatePolicyTemplateAssignmentOptions createPolicyTemplateAssignmentOptionsModel = new CreatePolicyTemplateAssignmentOptions.Builder() .version("1.0") .target(assignmentTargetDetailsModel) - .options(policyAssignmentV1OptionsModel) .templates(java.util.Arrays.asList(assignmentTemplateDetailsModel)) .acceptLanguage("default") .build(); assertEquals(createPolicyTemplateAssignmentOptionsModel.version(), "1.0"); assertEquals(createPolicyTemplateAssignmentOptionsModel.target(), assignmentTargetDetailsModel); - assertEquals(createPolicyTemplateAssignmentOptionsModel.options(), policyAssignmentV1OptionsModel); assertEquals(createPolicyTemplateAssignmentOptionsModel.templates(), java.util.Arrays.asList(assignmentTemplateDetailsModel)); assertEquals(createPolicyTemplateAssignmentOptionsModel.acceptLanguage(), "default"); } diff --git a/modules/iam-policy-management/src/test/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/DeletePolicyAssignmentOptionsTest.java b/modules/iam-policy-management/src/test/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/DeletePolicyAssignmentOptionsTest.java index bffda0b79e..5a44652601 100644 --- a/modules/iam-policy-management/src/test/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/DeletePolicyAssignmentOptionsTest.java +++ b/modules/iam-policy-management/src/test/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/DeletePolicyAssignmentOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * 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 @@ -42,4 +42,4 @@ public void testDeletePolicyAssignmentOptionsError() throws Throwable { new DeletePolicyAssignmentOptions.Builder().build(); } -} +} \ No newline at end of file diff --git a/modules/iam-policy-management/src/test/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/PolicyAssignmentV1CollectionTest.java b/modules/iam-policy-management/src/test/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/PolicyAssignmentV1CollectionTest.java index 788c86434a..9a90872219 100644 --- a/modules/iam-policy-management/src/test/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/PolicyAssignmentV1CollectionTest.java +++ b/modules/iam-policy-management/src/test/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/PolicyAssignmentV1CollectionTest.java @@ -23,9 +23,6 @@ import com.ibm.cloud.platform_services.iam_policy_management.v1.model.PolicyAssignmentResourcePolicy; import com.ibm.cloud.platform_services.iam_policy_management.v1.model.PolicyAssignmentV1; import com.ibm.cloud.platform_services.iam_policy_management.v1.model.PolicyAssignmentV1Collection; -import com.ibm.cloud.platform_services.iam_policy_management.v1.model.PolicyAssignmentV1Options; -import com.ibm.cloud.platform_services.iam_policy_management.v1.model.PolicyAssignmentV1OptionsRoot; -import com.ibm.cloud.platform_services.iam_policy_management.v1.model.PolicyAssignmentV1OptionsRootTemplate; import com.ibm.cloud.platform_services.iam_policy_management.v1.model.PolicyAssignmentV1Resources; import com.ibm.cloud.platform_services.iam_policy_management.v1.model.PolicyAssignmentV1Subject; import com.ibm.cloud.platform_services.iam_policy_management.v1.utils.TestUtilities; diff --git a/modules/iam-policy-management/src/test/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/PolicyAssignmentV1ResourcesTest.java b/modules/iam-policy-management/src/test/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/PolicyAssignmentV1ResourcesTest.java index 9c8b8f802d..4908018f21 100644 --- a/modules/iam-policy-management/src/test/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/PolicyAssignmentV1ResourcesTest.java +++ b/modules/iam-policy-management/src/test/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/PolicyAssignmentV1ResourcesTest.java @@ -14,7 +14,7 @@ package com.ibm.cloud.platform_services.iam_policy_management.v1.model; import com.ibm.cloud.platform_services.iam_policy_management.v1.model.AssignmentResourceCreated; -import com.ibm.cloud.platform_services.iam_policy_management.v1.model.AssignmentTemplateDetails; +import com.ibm.cloud.platform_services.iam_policy_management.v1.model.AssignmentTargetDetails; import com.ibm.cloud.platform_services.iam_policy_management.v1.model.ConflictsWith; import com.ibm.cloud.platform_services.iam_policy_management.v1.model.ErrorDetails; import com.ibm.cloud.platform_services.iam_policy_management.v1.model.ErrorObject; diff --git a/modules/iam-policy-management/src/test/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/PolicyAssignmentV1Test.java b/modules/iam-policy-management/src/test/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/PolicyAssignmentV1Test.java index f402cf3165..4663914851 100644 --- a/modules/iam-policy-management/src/test/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/PolicyAssignmentV1Test.java +++ b/modules/iam-policy-management/src/test/java/com/ibm/cloud/platform_services/iam_policy_management/v1/model/PolicyAssignmentV1Test.java @@ -22,9 +22,6 @@ import com.ibm.cloud.platform_services.iam_policy_management.v1.model.ErrorResponse; import com.ibm.cloud.platform_services.iam_policy_management.v1.model.PolicyAssignmentResourcePolicy; import com.ibm.cloud.platform_services.iam_policy_management.v1.model.PolicyAssignmentV1; -import com.ibm.cloud.platform_services.iam_policy_management.v1.model.PolicyAssignmentV1Options; -import com.ibm.cloud.platform_services.iam_policy_management.v1.model.PolicyAssignmentV1OptionsRoot; -import com.ibm.cloud.platform_services.iam_policy_management.v1.model.PolicyAssignmentV1OptionsRootTemplate; import com.ibm.cloud.platform_services.iam_policy_management.v1.model.PolicyAssignmentV1Resources; import com.ibm.cloud.platform_services.iam_policy_management.v1.model.PolicyAssignmentV1Subject; import com.ibm.cloud.platform_services.iam_policy_management.v1.utils.TestUtilities; @@ -46,7 +43,6 @@ public class PolicyAssignmentV1Test { public void testPolicyAssignmentV1() throws Throwable { PolicyAssignmentV1 policyAssignmentV1Model = new PolicyAssignmentV1(); assertNull(policyAssignmentV1Model.getTarget()); - assertNull(policyAssignmentV1Model.getOptions()); assertNull(policyAssignmentV1Model.getResources()); assertNull(policyAssignmentV1Model.getSubject()); assertNull(policyAssignmentV1Model.getTemplate()); diff --git a/modules/iam-policy-management/src/test/java/com/ibm/cloud/platform_services/iam_policy_management/v1/utils/TestUtilities.java b/modules/iam-policy-management/src/test/java/com/ibm/cloud/platform_services/iam_policy_management/v1/utils/TestUtilities.java index 6d95dddcf0..e45183ad90 100644 --- a/modules/iam-policy-management/src/test/java/com/ibm/cloud/platform_services/iam_policy_management/v1/utils/TestUtilities.java +++ b/modules/iam-policy-management/src/test/java/com/ibm/cloud/platform_services/iam_policy_management/v1/utils/TestUtilities.java @@ -10,8 +10,10 @@ * 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_policy_management.v1.utils; +import java.util.Base64; import java.util.Map; import java.util.Set; import java.util.List; @@ -115,8 +117,8 @@ public static List creatMockListFileWithMetadata() { return list; } - public static byte[] createMockByteArray(String bytes) { - return bytes.getBytes(); + public static byte[] createMockByteArray(String encodedString) throws Exception { + return Base64.getDecoder().decode(encodedString); } public static Date createMockDate(String date) throws Exception {