Skip to content

Commit 0811a85

Browse files
authored
Upgrade openapi spec v2026.03.0 (#580)
1 parent 932f47a commit 0811a85

699 files changed

Lines changed: 57468 additions & 31851 deletions

File tree

Some content is hidden

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

.generator/okta-management-APIs-oasv3-noEnums-inheritance.yaml

Lines changed: 4312 additions & 2070 deletions
Large diffs are not rendered by default.

okta/README.md

Lines changed: 141 additions & 69 deletions
Large diffs are not rendered by default.

okta/api/openapi.yaml

Lines changed: 6619 additions & 2877 deletions
Large diffs are not rendered by default.

okta/api_agent_pools.go

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,8 @@ type AgentPoolsAPI interface {
125125
GetAgentPoolsUpdateSettings(ctx context.Context, poolId string) ApiGetAgentPoolsUpdateSettingsRequest
126126

127127
// GetAgentPoolsUpdateSettingsExecute executes the request
128-
// @return AgentPoolUpdateSetting
129-
GetAgentPoolsUpdateSettingsExecute(r ApiGetAgentPoolsUpdateSettingsRequest) (*AgentPoolUpdateSetting, *APIResponse, error)
128+
// @return AgentPoolUpdateSettingResponse
129+
GetAgentPoolsUpdateSettingsExecute(r ApiGetAgentPoolsUpdateSettingsRequest) (*AgentPoolUpdateSettingResponse, *APIResponse, error)
130130

131131
/*
132132
ListAgentPools List all agent pools
@@ -249,8 +249,8 @@ type AgentPoolsAPI interface {
249249
UpdateAgentPoolsUpdateSettings(ctx context.Context, poolId string) ApiUpdateAgentPoolsUpdateSettingsRequest
250250

251251
// UpdateAgentPoolsUpdateSettingsExecute executes the request
252-
// @return AgentPoolUpdateSetting
253-
UpdateAgentPoolsUpdateSettingsExecute(r ApiUpdateAgentPoolsUpdateSettingsRequest) (*AgentPoolUpdateSetting, *APIResponse, error)
252+
// @return AgentPoolUpdateSettingResponse
253+
UpdateAgentPoolsUpdateSettingsExecute(r ApiUpdateAgentPoolsUpdateSettingsRequest) (*AgentPoolUpdateSettingResponse, *APIResponse, error)
254254
}
255255

256256
// AgentPoolsAPIService AgentPoolsAPI service
@@ -1119,7 +1119,7 @@ type ApiGetAgentPoolsUpdateSettingsRequest struct {
11191119
retryCount int32
11201120
}
11211121

1122-
func (r ApiGetAgentPoolsUpdateSettingsRequest) Execute() (*AgentPoolUpdateSetting, *APIResponse, error) {
1122+
func (r ApiGetAgentPoolsUpdateSettingsRequest) Execute() (*AgentPoolUpdateSettingResponse, *APIResponse, error) {
11231123
return r.ApiService.GetAgentPoolsUpdateSettingsExecute(r)
11241124
}
11251125

@@ -1143,13 +1143,13 @@ func (a *AgentPoolsAPIService) GetAgentPoolsUpdateSettings(ctx context.Context,
11431143

11441144
// Execute executes the request
11451145
//
1146-
// @return AgentPoolUpdateSetting
1147-
func (a *AgentPoolsAPIService) GetAgentPoolsUpdateSettingsExecute(r ApiGetAgentPoolsUpdateSettingsRequest) (*AgentPoolUpdateSetting, *APIResponse, error) {
1146+
// @return AgentPoolUpdateSettingResponse
1147+
func (a *AgentPoolsAPIService) GetAgentPoolsUpdateSettingsExecute(r ApiGetAgentPoolsUpdateSettingsRequest) (*AgentPoolUpdateSettingResponse, *APIResponse, error) {
11481148
var (
11491149
localVarHTTPMethod = http.MethodGet
11501150
localVarPostBody interface{}
11511151
formFiles []formFile
1152-
localVarReturnValue *AgentPoolUpdateSetting
1152+
localVarReturnValue *AgentPoolUpdateSettingResponse
11531153
localVarHTTPResponse *http.Response
11541154
localAPIResponse *APIResponse
11551155
err error
@@ -2508,19 +2508,19 @@ func (a *AgentPoolsAPIService) UpdateAgentPoolsUpdateExecute(r ApiUpdateAgentPoo
25082508
}
25092509

25102510
type ApiUpdateAgentPoolsUpdateSettingsRequest struct {
2511-
ctx context.Context
2512-
ApiService AgentPoolsAPI
2513-
poolId string
2514-
agentPoolUpdateSetting *AgentPoolUpdateSetting
2515-
retryCount int32
2511+
ctx context.Context
2512+
ApiService AgentPoolsAPI
2513+
poolId string
2514+
agentPoolUpdateSettingRequest *AgentPoolUpdateSettingRequest
2515+
retryCount int32
25162516
}
25172517

2518-
func (r ApiUpdateAgentPoolsUpdateSettingsRequest) AgentPoolUpdateSetting(agentPoolUpdateSetting AgentPoolUpdateSetting) ApiUpdateAgentPoolsUpdateSettingsRequest {
2519-
r.agentPoolUpdateSetting = &agentPoolUpdateSetting
2518+
func (r ApiUpdateAgentPoolsUpdateSettingsRequest) AgentPoolUpdateSettingRequest(agentPoolUpdateSettingRequest AgentPoolUpdateSettingRequest) ApiUpdateAgentPoolsUpdateSettingsRequest {
2519+
r.agentPoolUpdateSettingRequest = &agentPoolUpdateSettingRequest
25202520
return r
25212521
}
25222522

2523-
func (r ApiUpdateAgentPoolsUpdateSettingsRequest) Execute() (*AgentPoolUpdateSetting, *APIResponse, error) {
2523+
func (r ApiUpdateAgentPoolsUpdateSettingsRequest) Execute() (*AgentPoolUpdateSettingResponse, *APIResponse, error) {
25242524
return r.ApiService.UpdateAgentPoolsUpdateSettingsExecute(r)
25252525
}
25262526

@@ -2544,13 +2544,13 @@ func (a *AgentPoolsAPIService) UpdateAgentPoolsUpdateSettings(ctx context.Contex
25442544

25452545
// Execute executes the request
25462546
//
2547-
// @return AgentPoolUpdateSetting
2548-
func (a *AgentPoolsAPIService) UpdateAgentPoolsUpdateSettingsExecute(r ApiUpdateAgentPoolsUpdateSettingsRequest) (*AgentPoolUpdateSetting, *APIResponse, error) {
2547+
// @return AgentPoolUpdateSettingResponse
2548+
func (a *AgentPoolsAPIService) UpdateAgentPoolsUpdateSettingsExecute(r ApiUpdateAgentPoolsUpdateSettingsRequest) (*AgentPoolUpdateSettingResponse, *APIResponse, error) {
25492549
var (
25502550
localVarHTTPMethod = http.MethodPost
25512551
localVarPostBody interface{}
25522552
formFiles []formFile
2553-
localVarReturnValue *AgentPoolUpdateSetting
2553+
localVarReturnValue *AgentPoolUpdateSettingResponse
25542554
localVarHTTPResponse *http.Response
25552555
localAPIResponse *APIResponse
25562556
err error
@@ -2572,8 +2572,8 @@ func (a *AgentPoolsAPIService) UpdateAgentPoolsUpdateSettingsExecute(r ApiUpdate
25722572
localVarHeaderParams := make(map[string]string)
25732573
localVarQueryParams := url.Values{}
25742574
localVarFormParams := url.Values{}
2575-
if r.agentPoolUpdateSetting == nil {
2576-
return localVarReturnValue, nil, reportError("agentPoolUpdateSetting is required and must be specified")
2575+
if r.agentPoolUpdateSettingRequest == nil {
2576+
return localVarReturnValue, nil, reportError("agentPoolUpdateSettingRequest is required and must be specified")
25772577
}
25782578

25792579
// to determine the Content-Type header
@@ -2594,7 +2594,7 @@ func (a *AgentPoolsAPIService) UpdateAgentPoolsUpdateSettingsExecute(r ApiUpdate
25942594
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
25952595
}
25962596
// body params
2597-
localVarPostBody = r.agentPoolUpdateSetting
2597+
localVarPostBody = r.agentPoolUpdateSettingRequest
25982598
if r.ctx != nil {
25992599
// API Key Authentication
26002600
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {

okta/api_application.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ type ApplicationAPI interface {
5555
Creates an app instance in your Okta org.
5656
5757
You can either create an OIN app instance or a custom app instance:
58-
* OIN app instances have prescribed `name` (key app definition) and `signOnMode` options. See the [OIN schemas](/openapi/okta-management/management/tag/Application/#tag/Application/schema/GoogleApplication) for the request body.
59-
* For custom app instances, select the [signOnMode](/openapi/okta-management/management/tag/Application/#tag/Application/operation/createApplication!path=0/signOnMode&t=request) that pertains to your app and specify the required parameters in the request body.
58+
* OIN app instances have prescribed `name` (key app definition) and `signOnMode` options. See the [OIN schemas](/openapi/okta-management/management/application/googleapplication) for the request body.
59+
* For custom app instances, select the [signOnMode](/openapi/okta-management/management/tags/application/other/createapplication#application/createapplication/t=request&path=&d=0/signonmode) that pertains to your app and specify the required parameters in the request body.
6060
6161
6262
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@@ -118,7 +118,7 @@ type ApplicationAPI interface {
118118
119119
Lists all apps in the org with pagination. A subset of apps can be returned that match a supported filter expression or query. The results are [paginated](/#pagination) according to the `limit` parameter. If there are multiple pages of results, the header contains a `next` link. Treat the link as an opaque value (follow it, don't parse it).
120120
121-
> **Note:** To list all of a member's assigned app links, use the [List all assigned app links endpoint in the User Resources API](/openapi/okta-management/management/tag/UserResources/#tag/UserResources/operation/listAppLinks).
121+
> **Note:** To list all of a member's assigned app links, use the [List all assigned app links endpoint in the User Resources API](/openapi/okta-management/management/userresources/listapplinks).
122122
123123
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
124124
@return ApiListApplicationsRequest
@@ -340,8 +340,8 @@ CreateApplication Create an application
340340
Creates an app instance in your Okta org.
341341
342342
You can either create an OIN app instance or a custom app instance:
343-
* OIN app instances have prescribed `name` (key app definition) and `signOnMode` options. See the [OIN schemas](/openapi/okta-management/management/tag/Application/#tag/Application/schema/GoogleApplication) for the request body.
344-
* For custom app instances, select the [signOnMode](/openapi/okta-management/management/tag/Application/#tag/Application/operation/createApplication!path=0/signOnMode&t=request) that pertains to your app and specify the required parameters in the request body.
343+
* OIN app instances have prescribed `name` (key app definition) and `signOnMode` options. See the [OIN schemas](/openapi/okta-management/management/application/googleapplication) for the request body.
344+
* For custom app instances, select the [signOnMode](/openapi/okta-management/management/tags/application/other/createapplication#application/createapplication/t=request&path=&d=0/signonmode) that pertains to your app and specify the required parameters in the request body.
345345
346346
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
347347
@return ApiCreateApplicationRequest
@@ -817,7 +817,7 @@ type ApiGetApplicationRequest struct {
817817
retryCount int32
818818
}
819819

820-
// An optional query parameter to return the specified [Application User](/openapi/okta-management/management/tag/ApplicationUsers/) in the `_embedded` property. Valid value: `expand=user/{userId}`
820+
// An optional query parameter to return the specified [Application User](/openapi/okta-management/management/tags/applicationusers) in the `_embedded` property. Valid value: `expand=user/{userId}`
821821
func (r ApiGetApplicationRequest) Expand(expand string) ApiGetApplicationRequest {
822822
r.expand = &expand
823823
return r
@@ -1035,7 +1035,7 @@ func (r ApiListApplicationsRequest) Filter(filter string) ApiListApplicationsReq
10351035
return r
10361036
}
10371037

1038-
// An optional parameter used for link expansion to embed more resources in the response. Only supports `expand=user/{userId}` and must be used with the `user.id eq \"{userId}\"` filter query for the same user. Returns the assigned [application user](/openapi/okta-management/management/tag/ApplicationUsers/) in the `_embedded` property.
1038+
// An optional parameter used for link expansion to embed more resources in the response. Only supports `expand=user/{userId}` and must be used with the `user.id eq \"{userId}\"` filter query for the same user. Returns the assigned [application user](/openapi/okta-management/management/tags/applicationusers) in the `_embedded` property.
10391039
func (r ApiListApplicationsRequest) Expand(expand string) ApiListApplicationsRequest {
10401040
r.expand = &expand
10411041
return r
@@ -1056,7 +1056,7 @@ ListApplications List all applications
10561056
10571057
Lists all apps in the org with pagination. A subset of apps can be returned that match a supported filter expression or query. The results are [paginated](/#pagination) according to the `limit` parameter. If there are multiple pages of results, the header contains a `next` link. Treat the link as an opaque value (follow it, don't parse it).
10581058
1059-
> **Note:** To list all of a member's assigned app links, use the [List all assigned app links endpoint in the User Resources API](/openapi/okta-management/management/tag/UserResources/#tag/UserResources/operation/listAppLinks).
1059+
> **Note:** To list all of a member's assigned app links, use the [List all assigned app links endpoint in the User Resources API](/openapi/okta-management/management/userresources/listapplinks).
10601060
10611061
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
10621062
@return ApiListApplicationsRequest

okta/api_application_cross_app_access_connections.go

Lines changed: 66 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -492,12 +492,18 @@ func (a *ApplicationCrossAppAccessConnectionsAPIService) DeleteCrossAppAccessCon
492492
}
493493

494494
type ApiGetAllCrossAppAccessConnectionsRequest struct {
495-
ctx context.Context
496-
ApiService ApplicationCrossAppAccessConnectionsAPI
497-
appId string
498-
after *string
499-
limit *int32
500-
retryCount int32
495+
ctx context.Context
496+
ApiService ApplicationCrossAppAccessConnectionsAPI
497+
appId string
498+
after *string
499+
limit *int32
500+
status *string
501+
requestingAppId *string
502+
resourceAppId *string
503+
activeAppsOnly *bool
504+
requestingAppName *string
505+
resourceAppName *string
506+
retryCount int32
501507
}
502508

503509
// Specifies the pagination cursor for the next page of connection results
@@ -512,6 +518,42 @@ func (r ApiGetAllCrossAppAccessConnectionsRequest) Limit(limit int32) ApiGetAllC
512518
return r
513519
}
514520

521+
// Filters connections by their lifecycle status. When specified, only connections that match the specified status are returned.
522+
func (r ApiGetAllCrossAppAccessConnectionsRequest) Status(status string) ApiGetAllCrossAppAccessConnectionsRequest {
523+
r.status = &status
524+
return r
525+
}
526+
527+
// Filters only connections where the app with the specified ID is the requesting app
528+
func (r ApiGetAllCrossAppAccessConnectionsRequest) RequestingAppId(requestingAppId string) ApiGetAllCrossAppAccessConnectionsRequest {
529+
r.requestingAppId = &requestingAppId
530+
return r
531+
}
532+
533+
// Filters only connections where the app with the specified ID is the requesting app
534+
func (r ApiGetAllCrossAppAccessConnectionsRequest) ResourceAppId(resourceAppId string) ApiGetAllCrossAppAccessConnectionsRequest {
535+
r.resourceAppId = &resourceAppId
536+
return r
537+
}
538+
539+
// When set to true, filters the result to include only connections where both the requesting and resource app have a status of ACTIVE
540+
func (r ApiGetAllCrossAppAccessConnectionsRequest) ActiveAppsOnly(activeAppsOnly bool) ApiGetAllCrossAppAccessConnectionsRequest {
541+
r.activeAppsOnly = &activeAppsOnly
542+
return r
543+
}
544+
545+
// Filters connections where the requesting app's name matches the provided search string
546+
func (r ApiGetAllCrossAppAccessConnectionsRequest) RequestingAppName(requestingAppName string) ApiGetAllCrossAppAccessConnectionsRequest {
547+
r.requestingAppName = &requestingAppName
548+
return r
549+
}
550+
551+
// Filters connections where the resource app's name matches the provided search string
552+
func (r ApiGetAllCrossAppAccessConnectionsRequest) ResourceAppName(resourceAppName string) ApiGetAllCrossAppAccessConnectionsRequest {
553+
r.resourceAppName = &resourceAppName
554+
return r
555+
}
556+
515557
func (r ApiGetAllCrossAppAccessConnectionsRequest) Execute() ([]OrgCrossAppAccessConnection, *APIResponse, error) {
516558
return r.ApiService.GetAllCrossAppAccessConnectionsExecute(r)
517559
}
@@ -571,6 +613,24 @@ func (a *ApplicationCrossAppAccessConnectionsAPIService) GetAllCrossAppAccessCon
571613
if r.limit != nil {
572614
localVarQueryParams.Add("limit", parameterToString(*r.limit, ""))
573615
}
616+
if r.status != nil {
617+
localVarQueryParams.Add("status", parameterToString(*r.status, ""))
618+
}
619+
if r.requestingAppId != nil {
620+
localVarQueryParams.Add("requestingAppId", parameterToString(*r.requestingAppId, ""))
621+
}
622+
if r.resourceAppId != nil {
623+
localVarQueryParams.Add("resourceAppId", parameterToString(*r.resourceAppId, ""))
624+
}
625+
if r.activeAppsOnly != nil {
626+
localVarQueryParams.Add("activeAppsOnly", parameterToString(*r.activeAppsOnly, ""))
627+
}
628+
if r.requestingAppName != nil {
629+
localVarQueryParams.Add("requestingAppName", parameterToString(*r.requestingAppName, ""))
630+
}
631+
if r.resourceAppName != nil {
632+
localVarQueryParams.Add("resourceAppName", parameterToString(*r.resourceAppName, ""))
633+
}
574634
// to determine the Content-Type header
575635
localVarHTTPContentTypes := []string{}
576636

okta/api_application_features.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ type ApplicationFeaturesAPI interface {
5656
5757
Lists all features for an app
5858
> **Note:** This request returns an error if provisioning isn't enabled for the app.
59-
> To set up provisioning, see [Update the default provisioning connection](/openapi/okta-management/management/tag/ApplicationConnections/#tag/ApplicationConnections/operation/updateDefaultProvisioningConnectionForApplication).
59+
> To set up provisioning, see [Update the default provisioning connection](/openapi/okta-management/management/applicationconnections/updatedefaultprovisioningconnectionforapplication).
6060
6161
6262
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@@ -277,7 +277,7 @@ ListFeaturesForApplication List all features
277277
278278
Lists all features for an app
279279
> **Note:** This request returns an error if provisioning isn't enabled for the app.
280-
> To set up provisioning, see [Update the default provisioning connection](/openapi/okta-management/management/tag/ApplicationConnections/#tag/ApplicationConnections/operation/updateDefaultProvisioningConnectionForApplication).
280+
> To set up provisioning, see [Update the default provisioning connection](/openapi/okta-management/management/applicationconnections/updatedefaultprovisioningconnectionforapplication).
281281
282282
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
283283
@param appId Application ID

0 commit comments

Comments
 (0)