Skip to content

Commit

Permalink
Merge pull request #271 from okta/openapi_2_10
Browse files Browse the repository at this point in the history
okta-sdk-golang for v2.10 of spec
  • Loading branch information
monde authored Jan 24, 2022
2 parents cddf90a + 70919f2 commit 2e0d272
Show file tree
Hide file tree
Showing 48 changed files with 1,695 additions and 89 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ language: go

jobs:
include:
- stage: test_go_1.15
go: 1.15.x
- stage: test_go_1.17
go: 1.17.x
script:
- go mod download
- make test
Expand Down
94 changes: 94 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,100 @@
# Changelog
Running changelog of releases since `2.0.0-rc.4`

## v2.10.0

Release of openapispec 2.10.0

## Supported Endpoints
* /api/v1/apps/{appId}/connections/default
* /api/v1/apps/{appId}/connections/default/lifecycle/activate
* /api/v1/apps/{appId}/connections/default/lifecycle/deactivate
* /api/v1/apps/{appId}/features
* /api/v1/apps/{appId}/features/{name}
* /api/v1/apps/{appId}/logo
* /api/v1/policies/{policyId}/rules/{ruleId}/lifecycle/activate
* /api/v1/policies/{policyId}/rules/{ruleId}/lifecycle/deactivate
* /api/v1/roles/{roleTypeOrRoleId}/subscriptions
* /api/v1/roles/{roleTypeOrRoleId}/subscriptions/{notificationType}
* /api/v1/roles/{roleTypeOrRoleId}/subscriptions/{notificationType}/subscribe
* /api/v1/roles/{roleTypeOrRoleId}/subscriptions/{notificationType}/unsubscribe
* /api/v1/users/{userId}/subscriptions
* /api/v1/users/{userId}/subscriptions/{notificationType}
* /api/v1/users/{userId}/subscriptions/{notificationType}/subscribe
* /api/v1/users/{userId}/subscriptions/{notificationType}/unsubscribe

## New Methods

## ApplicationResource
* ActivateDefaultProvisioningConnectionForApplication
* DeactivateDefaultProvisioningConnectionForApplication
* GetDefaultProvisioningConnectionForApplication
* GetFeatureForApplication
* ListFeaturesForApplication
* SetDefaultProvisioningConnectionForApplication
* UpdateFeatureForApplication
* UploadApplicationLogo

### BrandResource
* UploadBrandThemeBackgroundImage
* UploadBrandThemeFavicon
* UploadBrandThemeLogo

### OrgSettingResource
* UpdateOrgLogo

### SubscriptionResource
* GetRoleSubscriptionByNotificationType(ctx context.Context, roleTypeOrRoleId string, notificationType string) (*Subscription, *Response, error) {
* ListRoleSubscriptions
* SubscribeRoleSubscriptionByNotificationType
* SubscribeUserSubscriptionByNotificationType
* UnsubscribeRoleSubscriptionByNotificationType
* UnsubscribeUserSubscriptionByNotificationType

### UserResource
* GetUserSubscriptionByNotificationType
* ListUserSubscriptions

## New Constructors:
* NewApplicationFeature
* NewCapabilitiesCreateObject
* NewCapabilitiesObject
* NewCapabilitiesUpdateObject
* NewLifecycleCreateSettingObject
* NewLifecycleDeactivateSettingObject
* NewOrg2OrgApplication
* NewOrg2OrgApplicationSettings
* NewOrg2OrgApplicationSettingsApp
* NewPasswordSettingObject
* NewProfileSettingObject
* NewProvisioningConnection
* NewProvisioningConnectionProfile
* NewProvisioningConnectionRequest

## New Models and/or Updated models
* ApplicationFeature
* CapabilitiesCreateObject
* CapabilitiesObject
* CapabilitiesUpdateObject
* ChangeEnum
* LifecycleCreateSettingObject
* LifecycleDeactivateSettingObject
* NotificationType
* Org2OrgApplication
* Org2OrgApplicationSettings
* Org2OrgApplicationSettingsApp
* PasswordSettingObject
* ProfileSettingObject
* ProvisioningConnection
* ProvisioningConnectionAuthScheme
* ProvisioningConnectionProfile
* ProvisioningConnectionRequest
* ProvisioningConnectionStatus
* SeedEnum
* Subscription
* SubscriptionStatus


## v2.9.2

### Updates
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@ fmt: check-fmt # Format the code
@$(GOFMT) -l -w $$(find . -name '*.go' |grep -v vendor) > /dev/null

check-fmt:
@which $(GOFMT) > /dev/null || GO111MODULE=on go get mvdan.cc/gofumpt
@which $(GOFMT) > /dev/null || GO111MODULE=on go install mvdan.cc/gofumpt@latest

.PHONY: import
import: check-goimports
@$(GOIMPORTS) -w $$(find . -path ./vendor -prune -o -name '*.go' -print) > /dev/null

check-goimports:
@which $(GOIMPORTS) > /dev/null || GO111MODULE=on go get golang.org/x/tools/cmd/goimports
@which $(GOIMPORTS) > /dev/null || GO111MODULE=on go install golang.org/x/tools/cmd/goimports@latest
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ SDK.
To install the Okta Golang SDK in your project:
- Create a module file by running `go mod init`
- You can skip this step if you already use `go mod`
- Run `go get github.com/okta/okta-sdk-golang/v2`. This will add the SDK to
your `go.mod` file.
- Run `go install github.com/okta/okta-sdk-golang/v2@latest`. This will add
the SDK to your `go.mod` file.
- Import the package in your project with `import
"github.com/okta/okta-sdk-golang/v2/okta"`

Expand All @@ -73,9 +73,9 @@ it. Version 1.x is *retiring* and will not be supported past March 4, 2021. It
will likely remain working after that date, but you should make a plan to
migrate to the new 2.x version.

You can install v1 of the SDK by running `go get
github.com/okta/okta-sdk-golang` and import the package in your project with
`import "github.com/okta/okta-sdk-golang"`
You can install v1 of the SDK by running `go install
github.com/okta/okta-sdk-golang@latest` and import the package in your project
with `import "github.com/okta/okta-sdk-golang"`

### You'll also need

Expand Down
11 changes: 8 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
module github.com/okta/okta-sdk-golang/v2

go 1.16
go 1.17

require (
github.com/BurntSushi/toml v0.3.1
github.com/cenkalti/backoff/v4 v4.1.0
github.com/google/go-cmp v0.5.6 // indirect
github.com/jarcoal/httpmock v1.0.7
github.com/kelseyhightower/envconfig v1.4.0
github.com/patrickmn/go-cache v0.0.0-20180815053127-5633e0862627
github.com/stretchr/testify v1.7.0
golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97 // indirect
gopkg.in/square/go-jose.v2 v2.5.1
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b
)

require (
github.com/davecgh/go-spew v1.1.0 // indirect
github.com/google/go-cmp v0.5.6 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97 // indirect
)
Loading

0 comments on commit 2e0d272

Please sign in to comment.