-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename openapi classes to remove operation. Add ability to set operat…
…ion skip predicate. Allow for customer spec parsing.
- Loading branch information
Showing
30 changed files
with
891 additions
and
364 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 7 additions & 6 deletions
13
python/semantic_kernel/connectors/openapi_plugin/models/rest_api_oauth_flow.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
# Copyright (c) Microsoft. All rights reserved. | ||
|
||
from dataclasses import dataclass | ||
|
||
from semantic_kernel.utils.experimental_decorator import experimental_class | ||
|
||
|
||
@experimental_class | ||
@dataclass | ||
class RestApiOAuthFlow: | ||
"""Represents the OAuth flow used by the REST API.""" | ||
|
||
def __init__(self, authorization_url: str, token_url: str, scopes: dict[str, str], refresh_url: str | None = None): | ||
"""Initializes a new instance of the RestApiOAuthFlow class.""" | ||
self.authorization_url = authorization_url | ||
self.token_url = token_url | ||
self.refresh_url = refresh_url | ||
self.scopes = scopes | ||
authorization_url: str | ||
token_url: str | ||
scopes: dict[str, str] | ||
refresh_url: str | None = None |
19 changes: 7 additions & 12 deletions
19
python/semantic_kernel/connectors/openapi_plugin/models/rest_api_oauth_flows.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,17 @@ | ||
# Copyright (c) Microsoft. All rights reserved. | ||
|
||
from dataclasses import dataclass | ||
|
||
from semantic_kernel.connectors.openapi_plugin.models.rest_api_oauth_flow import RestApiOAuthFlow | ||
from semantic_kernel.utils.experimental_decorator import experimental_class | ||
|
||
|
||
@experimental_class | ||
@dataclass | ||
class RestApiOAuthFlows: | ||
"""Represents the OAuth flows used by the REST API.""" | ||
|
||
def __init__( | ||
self, | ||
implicit: RestApiOAuthFlow | None = None, | ||
password: RestApiOAuthFlow | None = None, | ||
client_credentials: RestApiOAuthFlow | None = None, | ||
authorization_code: RestApiOAuthFlow | None = None, | ||
): | ||
"""Initializes a new instance of the RestApiOAuthFlows class.""" | ||
self.implicit = implicit | ||
self.password = password | ||
self.client_credentials = client_credentials | ||
self.authorization_code = authorization_code | ||
implicit: RestApiOAuthFlow | None = None | ||
password: RestApiOAuthFlow | None = None | ||
client_credentials: RestApiOAuthFlow | None = None | ||
authorization_code: RestApiOAuthFlow | None = None |
Oops, something went wrong.