Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migration guide for SDK v5.0.0 #589

Merged
merged 23 commits into from
Aug 28, 2021
Merged
Changes from 7 commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
adc4609
Release notes/migration guide for SDK v5.0
sergiishamrai-okta May 19, 2021
9ed04e6
Release notes/migration guide for SDK v5.0
sergiishamrai-okta May 19, 2021
81695ba
Merge branch 'master' into migration_guide_SDK_v4.1.0
sergiishamrai-okta Jun 29, 2021
adb30d8
Migrating to 4.1.x
sergiishamrai-okta Jun 29, 2021
f403c56
Merge branch 'master' into migration_guide_SDK_v4.1.0
sergiishamrai-okta Jul 6, 2021
c1fa450
Merge branch 'master' into migration_guide_SDK_v4.1.0
sergiishamrai-okta Jul 7, 2021
14afaa4
Merge branch 'master' into migration_guide_SDK_v4.1.0
arvindkrishnakumar-okta Jul 12, 2021
8986037
correct version
sergiishamrai-okta Jul 16, 2021
d6527a6
Merge branch 'master' into migration_guide_SDK_v4.1.0
sergiishamrai-okta Jul 16, 2021
2e0aae6
Merge branch 'master' into migration_guide_SDK_v4.1.0
sergiishamrai-okta Jul 17, 2021
616eebf
Merge branch 'master' into migration_guide_SDK_v4.1.0
sergiishamrai-okta Jul 19, 2021
84388a5
version updated
sergiishamrai-okta Jul 20, 2021
4f3b07e
Domain API method added
sergiishamrai-okta Aug 3, 2021
0092245
some updates
sergiishamrai-okta Aug 3, 2021
dba1b83
param name fixed
sergiishamrai-okta Aug 3, 2021
889c56d
all new interfaces and enums are listed now
sergiishamrai-okta Aug 3, 2021
548feaa
small fixes
sergiishamrai-okta Aug 3, 2021
b5ff3b6
fix typo
sergiishamrai-okta Aug 10, 2021
0e926e1
Changes from openAPI spec v2.6.0 has been added
sergiishamrai-okta Aug 27, 2021
f26167c
Merge branch 'master' into migration_guide_SDK_v4.1.0
arvindkrishnakumar-okta Aug 27, 2021
5a64b89
Merge branch 'master' into migration_guide_SDK_v4.1.0
arvindkrishnakumar-okta Aug 28, 2021
828d60a
Merge branch 'master' into migration_guide_SDK_v4.1.0
arvindkrishnakumar-okta Aug 28, 2021
f796149
Merge branch 'master' into migration_guide_SDK_v4.1.0
arvindkrishnakumar-okta Aug 28, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
206 changes: 206 additions & 0 deletions MIGRATING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,212 @@

This SDK uses semantic versioning and follows Okta's [library version policy](https://developer.okta.com/code/library-versions/). In short, we do not make breaking changes unless the major version changes!

## Migrating from 4.x.x to 4.1.x

Version 5.0.0 of this SDK introduces a number of breaking changes from previous versions.
sergiishamrai-okta marked this conversation as resolved.
Show resolved Hide resolved
In addition to many new classes/interfaces, some existing classes/interfaces are no longer backward compatible due to method renaming and signature changes.

### Package `com.okta.sdk.client.Client`

Below methods have been added.
- `NetworkZone createNetworkZone(NetworkZone zone)`
- `ThreatInsightConfiguration getCurrentConfiguration()`
- `NetworkZone getNetworkZone(String zoneId)`
- `ProfileMapping getProfileMapping(String mappingId)`
- `NetworkZoneList listNetworkZones(String filter)`
- `NetworkZoneList listNetworkZones()`
- `ProfileMappingList listProfileMappings(String sourceId, String targetId)`
- `ProfileMappingList listProfileMappings()`

### Package `com.okta.sdk.client.ClientBuilder`

Below method has been added.
- `ClientBuilder setKid(String kid)`

### Package `com.okta.sdk.ds.DataStore`

Below method has been added.
- `boolean isReady(Supplier<? extends Resource> methodReference)`

### Package `com.okta.sdk.resource.authorization.server.AuthorizationServerPolicy`

Below methods have been added.
- `void activate(String authServerId)`
- `void deactivate(String authServerId)`

### Package `com.okta.sdk.resource.authorization.server.policy.AuthorizationServerPolicyRule`

Below methods have undergone a signature change.
- `void activate()` signature changed to `void activate(String authServerId)`
- `void deactivate()` signature changed to `void deactivate(String authServerId)`

### Package `com.okta.sdk.resource.CollectionResource`

Below method has been added.
- `String getNextPageUrl()`

### Package `com.okta.sdk.resource.network.zone.NetworkZone`

This is a newly created interface with methods listed below.

- `NetworkZone activate()`
- `NetworkZone deactivate()`
- `void delete()`
- `List<String> getAsns()`
- `Date getCreated()`
- `List<NetworkZoneAddress> getGateways()`
- `String getId()`
- `Date getLastUpdated()`
- `Map<String, Object> getLinks()`
- `List<NetworkZoneLocation> getLocations()`
- `String getName()`
- `List<NetworkZoneAddress> getProxies()`
- `String getProxyType()`
- `NetworkZoneStatus getStatus()`
- `Boolean getSystem()`
- `NetworkZoneType getType()`
- `NetworkZoneUsage getUsage()`
- `NetworkZone setAsns(List<String> asns)`
- `NetworkZone setGateways(List<NetworkZoneAddress> gateways)`
- `NetworkZone setLocations(List<NetworkZoneLocation> locations)`
- `NetworkZone setName(String name)`
- `NetworkZone setProxies(List<NetworkZoneAddress> proxies)`
- `NetworkZone setProxyType(String proxyType)`
- `NetworkZone setStatus(NetworkZoneStatus status)`
- `NetworkZone setSystem(Boolean system)`
- `NetworkZone setType(NetworkZoneType type)`
- `NetworkZone setUsage(NetworkZoneUsage usage)`
- `NetworkZone update()`

### Package `com.okta.sdk.resource.network.zone.NetworkZoneAddress`

This is a newly created interface with methods listed below.

- `NetworkZoneAddressType getType()`
- `String getValue()`
- `NetworkZoneAddress setType(NetworkZoneAddressType type)`
- `NetworkZoneAddress setValue(String value)`

### Package `com.okta.sdk.resource.network.zone.NetworkZoneAddressType`

This is a newly created enum with fields listed below.
- `CIDR("CIDR")`
- `RANGE("RANGE")`

### Package `com.okta.sdk.resource.network.zone.NetworkZoneLocation`

This is a newly created interface with methods listed below.
- `String getCountry()`
- `String getRegion()`
- `NetworkZoneLocation setCountry(String country)`
- `NetworkZoneLocation setRegion(String region)`

### Package `com.okta.sdk.resource.network.zone.NetworkZoneStatus`

This is a newly created enum with fields listed below.
- `ACTIVE("ACTIVE")`
- `INACTIVE("INACTIVE")`

### Package `com.okta.sdk.resource.network.zone.NetworkZoneType`

This is a newly created enum with fields listed below.
- `DYNAMIC("DYNAMIC")`
- `IP("IP")`

### Package `com.okta.sdk.resource.network.zone.NetworkZoneUsage`

This is a newly created enum with fields listed below.
- `BLOCKLIST("BLOCKLIST")`
- `POLICY("POLICY")`

### Package `com.okta.sdk.resource.policy.PolicyRule`

Below methods have been added.
- `PolicyRuleActions getActions()`
- `PolicyRuleConditions getConditions()`
- `String getName()`
- `PolicyRule setActions(PolicyRuleActions actions)`
- `PolicyRule setConditions(PolicyRuleConditions conditions)`
- `PolicyRule setName(String name)`

### Package `com.okta.sdk.resource.policy.PolicyRuleActions`

This is a newly created interface with methods listed below.
- `PolicyRuleActionsEnroll getEnroll()`
- `PasswordPolicyRuleAction getPasswordChange()`
- `PasswordPolicyRuleAction getSelfServicePasswordReset()`
- `PasswordPolicyRuleAction getSelfServiceUnlock()`
- `OktaSignOnPolicyRuleSignonActions getSignon()`
- `PolicyRuleActions setEnroll(PolicyRuleActionsEnroll enroll)`
- `PolicyRuleActions setPasswordChange(PasswordPolicyRuleAction passwordChange)`
- `PolicyRuleActions setSelfServicePasswordReset(PasswordPolicyRuleAction selfServicePasswordReset)`
- `PolicyRuleActions setSelfServiceUnlock(PasswordPolicyRuleAction selfServiceUnlock)`
- `PolicyRuleActions setSignon(OktaSignOnPolicyRuleSignonActions signon)`

### Package `com.okta.sdk.resource.policy.PolicyRuleActionsEnroll`

This is a newly created interface with methods listed below.
- `PolicyRuleActionsEnrollSelf getSelf()`
- `PolicyRuleActionsEnroll setSelf(PolicyRuleActionsEnrollSelf self)`

### Package `com.okta.sdk.resource.policy.PolicyRuleActionsEnrollSelf`

This is a newly created enum with fields listed below.
- `CHALLENGE("CHALLENGE")`
- `LOGIN("LOGIN")`
- `NEVER("NEVER")`

### Package `com.okta.sdk.resource.profile.mapping.ProfileMapping`

This is a newly created interface with methods listed below.
- `String getId()`
- `Map<String, Object> getLinks()`
- `Map<String, ProfileMappingProperty> getProperties()`
- `ProfileMappingSource getSource()`
- `ProfileMappingSource getTarget()`
- `ProfileMapping setSource(ProfileMappingSource source)`
- `ProfileMapping setTarget(ProfileMappingSource target)`
- `ProfileMapping update(ProfileMapping profileMapping)`

### Package `com.okta.sdk.resource.profile.mapping.ProfileMappingProperty`

This is a newly created interface with methods listed below.
- `String getExpression()`
- `ProfileMappingPropertyPushStatus getPushStatus()`
- `ProfileMappingProperty setExpression(String expression)`
- `ProfileMappingProperty setPushStatus(ProfileMappingPropertyPushStatus pushStatus)`

### Package `com.okta.sdk.resource.profile.mapping.ProfileMappingPropertyPushStatus`

This is a newly created enum with fields listed below.
- `DONT_PUSH("DONT_PUSH")`
- `PUSH("PUSH")`

### Package `com.okta.sdk.resource.profile.mapping.ProfileMappingSource`

This is a newly created interface with methods listed below.
- `String getId()`
- `Map<String, Object> getLinks()`
- `String getName()`
- `String getType()`

### Package `com.okta.sdk.resource.threat.insight.ThreatInsightConfiguration`

This is a newly created interface with methods listed below.
- `String getAction()`
- `Date getCreated()`
- `List<String> getExcludeZones()`
- `Date getLastUpdated()`
- `Map<String, Object> getLinks()`
- `ThreatInsightConfiguration setAction(String action)`
- `ThreatInsightConfiguration setExcludeZones(List<String> excludeZones)`
- `ThreatInsightConfiguration update()`

### Package `com.okta.sdk.resource.user.factor.FactorType`

Enum `FactorType` has the below new field definition:
- `HOTP("HOTP")`

## Migrating from 3.x.x to 4.0.0

Version 4.0.0 of this SDK introduces a number of breaking changes from previous versions.
Expand Down