Skip to content

Commit 2e0d272

Browse files
authored
Merge pull request #271 from okta/openapi_2_10
okta-sdk-golang for v2.10 of spec
2 parents cddf90a + 70919f2 commit 2e0d272

48 files changed

Lines changed: 1695 additions & 89 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ language: go
22

33
jobs:
44
include:
5-
- stage: test_go_1.15
6-
go: 1.15.x
5+
- stage: test_go_1.17
6+
go: 1.17.x
77
script:
88
- go mod download
99
- make test

CHANGELOG.md

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,100 @@
11
# Changelog
22
Running changelog of releases since `2.0.0-rc.4`
33

4+
## v2.10.0
5+
6+
Release of openapispec 2.10.0
7+
8+
## Supported Endpoints
9+
* /api/v1/apps/{appId}/connections/default
10+
* /api/v1/apps/{appId}/connections/default/lifecycle/activate
11+
* /api/v1/apps/{appId}/connections/default/lifecycle/deactivate
12+
* /api/v1/apps/{appId}/features
13+
* /api/v1/apps/{appId}/features/{name}
14+
* /api/v1/apps/{appId}/logo
15+
* /api/v1/policies/{policyId}/rules/{ruleId}/lifecycle/activate
16+
* /api/v1/policies/{policyId}/rules/{ruleId}/lifecycle/deactivate
17+
* /api/v1/roles/{roleTypeOrRoleId}/subscriptions
18+
* /api/v1/roles/{roleTypeOrRoleId}/subscriptions/{notificationType}
19+
* /api/v1/roles/{roleTypeOrRoleId}/subscriptions/{notificationType}/subscribe
20+
* /api/v1/roles/{roleTypeOrRoleId}/subscriptions/{notificationType}/unsubscribe
21+
* /api/v1/users/{userId}/subscriptions
22+
* /api/v1/users/{userId}/subscriptions/{notificationType}
23+
* /api/v1/users/{userId}/subscriptions/{notificationType}/subscribe
24+
* /api/v1/users/{userId}/subscriptions/{notificationType}/unsubscribe
25+
26+
## New Methods
27+
28+
## ApplicationResource
29+
* ActivateDefaultProvisioningConnectionForApplication
30+
* DeactivateDefaultProvisioningConnectionForApplication
31+
* GetDefaultProvisioningConnectionForApplication
32+
* GetFeatureForApplication
33+
* ListFeaturesForApplication
34+
* SetDefaultProvisioningConnectionForApplication
35+
* UpdateFeatureForApplication
36+
* UploadApplicationLogo
37+
38+
### BrandResource
39+
* UploadBrandThemeBackgroundImage
40+
* UploadBrandThemeFavicon
41+
* UploadBrandThemeLogo
42+
43+
### OrgSettingResource
44+
* UpdateOrgLogo
45+
46+
### SubscriptionResource
47+
* GetRoleSubscriptionByNotificationType(ctx context.Context, roleTypeOrRoleId string, notificationType string) (*Subscription, *Response, error) {
48+
* ListRoleSubscriptions
49+
* SubscribeRoleSubscriptionByNotificationType
50+
* SubscribeUserSubscriptionByNotificationType
51+
* UnsubscribeRoleSubscriptionByNotificationType
52+
* UnsubscribeUserSubscriptionByNotificationType
53+
54+
### UserResource
55+
* GetUserSubscriptionByNotificationType
56+
* ListUserSubscriptions
57+
58+
## New Constructors:
59+
* NewApplicationFeature
60+
* NewCapabilitiesCreateObject
61+
* NewCapabilitiesObject
62+
* NewCapabilitiesUpdateObject
63+
* NewLifecycleCreateSettingObject
64+
* NewLifecycleDeactivateSettingObject
65+
* NewOrg2OrgApplication
66+
* NewOrg2OrgApplicationSettings
67+
* NewOrg2OrgApplicationSettingsApp
68+
* NewPasswordSettingObject
69+
* NewProfileSettingObject
70+
* NewProvisioningConnection
71+
* NewProvisioningConnectionProfile
72+
* NewProvisioningConnectionRequest
73+
74+
## New Models and/or Updated models
75+
* ApplicationFeature
76+
* CapabilitiesCreateObject
77+
* CapabilitiesObject
78+
* CapabilitiesUpdateObject
79+
* ChangeEnum
80+
* LifecycleCreateSettingObject
81+
* LifecycleDeactivateSettingObject
82+
* NotificationType
83+
* Org2OrgApplication
84+
* Org2OrgApplicationSettings
85+
* Org2OrgApplicationSettingsApp
86+
* PasswordSettingObject
87+
* ProfileSettingObject
88+
* ProvisioningConnection
89+
* ProvisioningConnectionAuthScheme
90+
* ProvisioningConnectionProfile
91+
* ProvisioningConnectionRequest
92+
* ProvisioningConnectionStatus
93+
* SeedEnum
94+
* Subscription
95+
* SubscriptionStatus
96+
97+
498
## v2.9.2
599

6100
### Updates

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,11 @@ fmt: check-fmt # Format the code
7474
@$(GOFMT) -l -w $$(find . -name '*.go' |grep -v vendor) > /dev/null
7575

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

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

8383
check-goimports:
84-
@which $(GOIMPORTS) > /dev/null || GO111MODULE=on go get golang.org/x/tools/cmd/goimports
84+
@which $(GOIMPORTS) > /dev/null || GO111MODULE=on go install golang.org/x/tools/cmd/goimports@latest

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ SDK.
6161
To install the Okta Golang SDK in your project:
6262
- Create a module file by running `go mod init`
6363
- You can skip this step if you already use `go mod`
64-
- Run `go get github.com/okta/okta-sdk-golang/v2`. This will add the SDK to
65-
your `go.mod` file.
64+
- Run `go install github.com/okta/okta-sdk-golang/v2@latest`. This will add
65+
the SDK to your `go.mod` file.
6666
- Import the package in your project with `import
6767
"github.com/okta/okta-sdk-golang/v2/okta"`
6868

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

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

8080
### You'll also need
8181

go.mod

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,21 @@
11
module github.com/okta/okta-sdk-golang/v2
22

3-
go 1.16
3+
go 1.17
44

55
require (
66
github.com/BurntSushi/toml v0.3.1
77
github.com/cenkalti/backoff/v4 v4.1.0
8-
github.com/google/go-cmp v0.5.6 // indirect
98
github.com/jarcoal/httpmock v1.0.7
109
github.com/kelseyhightower/envconfig v1.4.0
1110
github.com/patrickmn/go-cache v0.0.0-20180815053127-5633e0862627
1211
github.com/stretchr/testify v1.7.0
13-
golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97 // indirect
1412
gopkg.in/square/go-jose.v2 v2.5.1
1513
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b
1614
)
15+
16+
require (
17+
github.com/davecgh/go-spew v1.1.0 // indirect
18+
github.com/google/go-cmp v0.5.6 // indirect
19+
github.com/pmezard/go-difflib v1.0.0 // indirect
20+
golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97 // indirect
21+
)

0 commit comments

Comments
 (0)