Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
c8e0616
BREAKING CHANGE: Add access control segmentation
bbosely2 Apr 16, 2025
749d03a
chore(SCC): Manual change to remove unused models
bbosely2 Apr 16, 2025
a522d4b
chore(SCC): Manual change to update SDKCommon import
bbosely2 Apr 16, 2025
c0677d2
chore(SCC): Manual change to add ProviderTypeInstanceAttributes class
bbosely2 Apr 16, 2025
368a720
chore(SCC): Manual change to fix field types
bbosely2 Apr 16, 2025
8ca4e8c
chore(SCC): Manual change to fix field types
bbosely2 Apr 16, 2025
e395660
chore(SCC): Manual change to fix field types
bbosely2 Apr 16, 2025
79986c9
chore(SCC): Manual change to fix field types
bbosely2 Apr 16, 2025
c3d51a9
chore(SCC): Manual change to fix field types
bbosely2 Apr 16, 2025
bdd5ac3
chore(SCC): Manual change to implement Builder static class
bbosely2 Apr 16, 2025
9daa6a4
chore(SCC): Manual change to update SdkIntegrationBase import
bbosely2 Apr 16, 2025
e645f58
chore(SCC): Manual change to fix incorrect method calls in assertion
bbosely2 Apr 16, 2025
6023e43
chore(SCC): Manual change to fix incorrect method calls in assertion
bbosely2 Apr 16, 2025
ef7b391
chore(SCC): Manual change integration test testUpdateSettings
bbosely2 Apr 16, 2025
1d3b1c6
chore(SCC): Manual change integration test testCreateProfileAttachment
bbosely2 Apr 16, 2025
7e6c8d3
chore(SCC): Manual change integration test testReplaceProfileAttachment
bbosely2 Apr 16, 2025
f0911fb
chore(SCC): Manual change integration test testUpgradeAttachment
bbosely2 Apr 16, 2025
faed3ff
chore(SCC): Manual change integration test testListInstanceAttachments
bbosely2 Apr 16, 2025
158d6c8
chore(SCC): Manual change integration test testCreateControlLibrary
bbosely2 Apr 16, 2025
9305a86
chore(SCC): Manual change integration test testListControlLibraries
bbosely2 Apr 16, 2025
6c8bee7
chore(SCC): Manual change integration test testReplaceCustomControlLi…
bbosely2 Apr 16, 2025
d7cefd4
chore(SCC): Manual change integration test testCreateProfile
bbosely2 Apr 16, 2025
61b3ee4
chore(SCC): Manual change integration test testListProfiles
bbosely2 Apr 16, 2025
4d25869
chore(SCC): Manual change integration test testCreateScope
bbosely2 Apr 16, 2025
d1a1da5
chore(SCC): Manual change integration test testListScopesWithPager
bbosely2 Apr 16, 2025
f92b988
chore(SCC): Manual change integration test testCreateSubscope
bbosely2 Apr 16, 2025
ec0e5af
chore(SCC): Manual change integration test testListSubscopes
bbosely2 Apr 16, 2025
36d219b
chore(SCC): Manual change integration test testListSubscopesWithPager
bbosely2 Apr 16, 2025
e2e0cc4
chore(SCC): Manual change integration test testCreateTarget
bbosely2 Apr 16, 2025
ea01833
chore(SCC): Manual change integration test testReplaceTarget
bbosely2 Apr 16, 2025
7af5cbc
chore(SCC): Manual change integration test testCreateProviderTypeInst…
bbosely2 Apr 16, 2025
b009131
chore(SCC): Manual change integration test testUpdateProviderTypeInst…
bbosely2 Apr 16, 2025
ea5fcbc
chore(SCC): Manual change integration test testGetReport
bbosely2 Apr 16, 2025
2cb0494
chore(SCC): Manual change integration test testGetReportControls
bbosely2 Apr 16, 2025
51c9f11
chore(SCC): Manual change integration test testListReportEvaluations
bbosely2 Apr 16, 2025
a1178e6
chore(SCC): Manual change integration test testListReportEvaluationsW…
bbosely2 Apr 16, 2025
71189d5
chore(SCC): Manual change integration test testListReportResources
bbosely2 Apr 16, 2025
6429442
chore(SCC): Manual change integration test testListReportResourcesWit…
bbosely2 Apr 16, 2025
4a0d19c
chore(SCC): Manual change integration test testGetReportViolationsDrift
bbosely2 Apr 16, 2025
df26d0d
chore(SCC): Manual change integration test testListScanReports
bbosely2 Apr 16, 2025
8e7b1ce
chore(SCC): Manual change integration test testCreateScanReport
bbosely2 Apr 16, 2025
32b3a30
chore(SCC): Manual change integration test testListRules
bbosely2 Apr 16, 2025
784d6f4
chore(SCC): Manual change integration test testListRulesWithPager
bbosely2 Apr 16, 2025
d5818fb
chore(SCC): Manual change to add accessor methods
bbosely2 Apr 16, 2025
c266070
feat: access control segmentation
bbosely2 Apr 23, 2025
933e12b
chore(SCC): Manual change integration test testListReports
bbosely2 Apr 24, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
28 changes: 14 additions & 14 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: '8'
java-version: '21'

- name: installing dependencies
run: mvn install
Expand All @@ -31,7 +31,7 @@ jobs:
- uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: '8'
java-version: '21'

- name: building project
run: mvn clean compile
Expand Down Expand Up @@ -70,15 +70,15 @@ jobs:
- name: setup python
uses: actions/setup-python@v2
with:
python-version: 3.8
python-version: 3.12

- name: releasing using semantic-release
env:
GITHUB_TOKEN: ${{ secrets.ADMIN_TOKEN }}
GIT_AUTHOR_NAME: sccdeveloper
GIT_AUTHOR_NAME: sccibm
GIT_AUTHOR_EMAIL: scccomm@in.ibm.com
GIT_COMMITTER_NAME: sccdeveloper
GIT_COMMITTER_EMAIL: scccomm@in.ibm.com
GIT_COMMITTER_NAME: sccibm
GIT_COMMITTER_EMAIL: scc.results@ibm.com
run: |
pip install --user bumpversion
npm install @semantic-release/changelog
Expand All @@ -101,7 +101,7 @@ jobs:
- uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: '8'
java-version: '21'

- name: setting up gnupg for mvn
env:
Expand Down Expand Up @@ -136,15 +136,15 @@ jobs:
- uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: '8'
java-version: '21'

- name: generating javadocs
run: build/prepareJavadoc.sh

- name: deploying javadocs to gh-pages
run: |
git config --global user.email "scccomm@in.ibm.com"
git config --global user.name "sccdeveloper"
git config --global user.email "scc.results@ibm.com"
git config --global user.name "sccibm"
git config --global user.password "${{ secrets.ADMIN_TOKEN }}"
cd v4/dist
git init
Expand All @@ -155,7 +155,7 @@ jobs:
git push -f origin gh-pages
env:
GITHUB_TOKEN: ${{ secrets.ADMIN_TOKEN }}
GIT_AUTHOR_NAME: sccdeveloper
GIT_AUTHOR_EMAIL: scccomm@in.ibm.com
GIT_COMMITTER_NAME: sccdeveloper
GIT_COMMITTER_EMAIL: scccomm@in.ibm.com
GIT_AUTHOR_NAME: sccibm
GIT_AUTHOR_EMAIL: scc.results@ibm.com
GIT_COMMITTER_NAME: sccibm
GIT_COMMITTER_EMAIL: scc.results@ibm.com

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* (C) Copyright IBM Corp. 2023.
* (C) Copyright IBM Corp. 2025.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
Expand All @@ -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.security_and_compliance_center_api.v3.model;

import com.ibm.cloud.sdk.core.service.model.GenericModel;
Expand All @@ -23,16 +24,99 @@ public class Account extends GenericModel {
protected String name;
protected String type;

/**
* Builder.
*/
public static class Builder {
private String id;
private String name;
private String type;

/**
* Instantiates a new Builder from an existing Account instance.
*
* @param account the instance to initialize the Builder with
*/
private Builder(Account account) {
this.id = account.id;
this.name = account.name;
this.type = account.type;
}

/**
* Instantiates a new builder.
*/
public Builder() {
}

/**
* Builds a Account.
*
* @return the new Account instance
*/
public Account build() {
return new Account(this);
}

/**
* Set the id.
*
* @param id the id
* @return the Account builder
*/
public Builder id(String id) {
this.id = id;
return this;
}

/**
* Set the name.
*
* @param name the name
* @return the Account builder
*/
public Builder name(String name) {
this.name = name;
return this;
}

/**
* Set the type.
*
* @param type the type
* @return the Account builder
*/
public Builder type(String type) {
this.type = type;
return this;
}
}

protected Account() { }

protected Account(Builder builder) {
id = builder.id;
name = builder.name;
type = builder.type;
}

/**
* New builder.
*
* @return a Account builder
*/
public Builder newBuilder() {
return new Builder(this);
}

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

Expand All @@ -43,7 +127,7 @@ public String getId() {
*
* @return the name
*/
public String getName() {
public String name() {
return name;
}

Expand All @@ -54,7 +138,7 @@ public String getName() {
*
* @return the type
*/
public String getType() {
public String type() {
return type;
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
/*
* (C) Copyright IBM Corp. 2025.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*/

package com.ibm.cloud.security_and_compliance_center_api.v3.model;

import java.util.List;

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

/**
* Extended information for a report.
*/
public class AdditionalDetails extends GenericModel {

@SerializedName("created_by")
protected String createdBy;
protected List<String> labels;
protected List<Link> links;

protected AdditionalDetails() { }

/**
* Gets the createdBy.
*
* Identifies which entity created a report.
*
* @return the createdBy
*/
public String getCreatedBy() {
return createdBy;
}

/**
* Gets the labels.
*
* Classification for a report.
*
* @return the labels
*/
public List<String> getLabels() {
return labels;
}

/**
* Gets the links.
*
* URL.
*
* @return the links
*/
public List<Link> getLinks() {
return links;
}
}

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* (C) Copyright IBM Corp. 2023.
* (C) Copyright IBM Corp. 2025.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
Expand All @@ -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.security_and_compliance_center_api.v3.model;

import com.google.gson.annotations.SerializedName;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* (C) Copyright IBM Corp. 2023.
* (C) Copyright IBM Corp. 2025.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
Expand All @@ -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.security_and_compliance_center_api.v3.model;

import com.ibm.cloud.sdk.core.service.model.GenericModel;
Expand Down Expand Up @@ -73,15 +74,15 @@ public interface Operator {

protected String name;
protected String operator;
protected String value;
protected Object value;

/**
* Builder.
*/
public static class Builder {
private String name;
private String operator;
private String value;
private Object value;

/**
* Instantiates a new Builder from an existing AdditionalTargetAttribute instance.
Expand All @@ -100,6 +101,15 @@ private Builder(AdditionalTargetAttribute additionalTargetAttribute) {
public Builder() {
}

/**
* Instantiates a new builder with required properties.
*
* @param operator the operator
*/
public Builder(String operator) {
this.operator = operator;
}

/**
* Builds a AdditionalTargetAttribute.
*
Expand Down Expand Up @@ -137,7 +147,7 @@ public Builder operator(String operator) {
* @param value the value
* @return the AdditionalTargetAttribute builder
*/
public Builder value(String value) {
public Builder value(Object value) {
this.value = value;
return this;
}
Expand All @@ -146,6 +156,8 @@ public Builder value(String value) {
protected AdditionalTargetAttribute() { }

protected AdditionalTargetAttribute(Builder builder) {
com.ibm.cloud.sdk.core.util.Validator.notNull(builder.operator,
"operator cannot be null");
name = builder.name;
operator = builder.operator;
value = builder.value;
Expand Down Expand Up @@ -185,11 +197,11 @@ public String operator() {
/**
* Gets the value.
*
* The value.
* The value can be of any type.
*
* @return the value
*/
public String value() {
public Object value() {
return value;
}
}
Expand Down
Loading