allen-powerplatform-client 0.0.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- allen_powerplatform_client-0.0.1/PKG-INFO +164 -0
- allen_powerplatform_client-0.0.1/README.md +147 -0
- allen_powerplatform_client-0.0.1/allen_powerplatform_client/__init__.py +52 -0
- allen_powerplatform_client-0.0.1/allen_powerplatform_client/api/__init__.py +5 -0
- allen_powerplatform_client-0.0.1/allen_powerplatform_client/api/default_api.py +890 -0
- allen_powerplatform_client-0.0.1/allen_powerplatform_client/api_client.py +804 -0
- allen_powerplatform_client-0.0.1/allen_powerplatform_client/api_response.py +21 -0
- allen_powerplatform_client-0.0.1/allen_powerplatform_client/configuration.py +597 -0
- allen_powerplatform_client-0.0.1/allen_powerplatform_client/exceptions.py +216 -0
- allen_powerplatform_client-0.0.1/allen_powerplatform_client/models/__init__.py +18 -0
- allen_powerplatform_client-0.0.1/allen_powerplatform_client/models/fetch_project_by_name_request.py +87 -0
- allen_powerplatform_client-0.0.1/allen_powerplatform_client/models/fetch_table_by_name_request.py +87 -0
- allen_powerplatform_client-0.0.1/allen_powerplatform_client/py.typed +0 -0
- allen_powerplatform_client-0.0.1/allen_powerplatform_client/rest.py +258 -0
- allen_powerplatform_client-0.0.1/allen_powerplatform_client.egg-info/PKG-INFO +164 -0
- allen_powerplatform_client-0.0.1/allen_powerplatform_client.egg-info/SOURCES.txt +24 -0
- allen_powerplatform_client-0.0.1/allen_powerplatform_client.egg-info/dependency_links.txt +1 -0
- allen_powerplatform_client-0.0.1/allen_powerplatform_client.egg-info/requires.txt +4 -0
- allen_powerplatform_client-0.0.1/allen_powerplatform_client.egg-info/top_level.txt +1 -0
- allen_powerplatform_client-0.0.1/pyproject.toml +94 -0
- allen_powerplatform_client-0.0.1/setup.cfg +7 -0
- allen_powerplatform_client-0.0.1/setup.py +49 -0
- allen_powerplatform_client-0.0.1/test/test_default_api.py +52 -0
- allen_powerplatform_client-0.0.1/test/test_fetch_project_by_name_request.py +51 -0
- allen_powerplatform_client-0.0.1/test/test_fetch_table_by_name_request.py +52 -0
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: allen_powerplatform_client
|
|
3
|
+
Version: 0.0.1
|
|
4
|
+
Summary: Test Dataverse Client
|
|
5
|
+
Home-page:
|
|
6
|
+
Author: OpenAPI Generator community
|
|
7
|
+
Author-email: OpenAPI Generator Community <team@openapitools.org>
|
|
8
|
+
Project-URL: Repository, https://github.com/GIT_USER_ID/GIT_REPO_ID
|
|
9
|
+
Keywords: OpenAPI,OpenAPI-Generator,Test Dataverse Client
|
|
10
|
+
Requires-Python: >=3.9
|
|
11
|
+
Description-Content-Type: text/markdown
|
|
12
|
+
Requires-Dist: urllib3<3.0.0,>=2.1.0
|
|
13
|
+
Requires-Dist: python-dateutil>=2.8.2
|
|
14
|
+
Requires-Dist: pydantic>=2
|
|
15
|
+
Requires-Dist: typing-extensions>=4.7.1
|
|
16
|
+
Dynamic: author
|
|
17
|
+
|
|
18
|
+
# allen-powerplatform-client
|
|
19
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
20
|
+
|
|
21
|
+
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
22
|
+
|
|
23
|
+
- API version: 1.0
|
|
24
|
+
- Package version: 0.0.1
|
|
25
|
+
- Generator version: 7.17.0-SNAPSHOT
|
|
26
|
+
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
|
|
27
|
+
|
|
28
|
+
## Requirements.
|
|
29
|
+
|
|
30
|
+
Python 3.9+
|
|
31
|
+
|
|
32
|
+
## Installation & Usage
|
|
33
|
+
### pip install
|
|
34
|
+
|
|
35
|
+
If the python package is hosted on a repository, you can install directly using:
|
|
36
|
+
|
|
37
|
+
```sh
|
|
38
|
+
pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
|
|
39
|
+
```
|
|
40
|
+
(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git`)
|
|
41
|
+
|
|
42
|
+
Then import the package:
|
|
43
|
+
```python
|
|
44
|
+
import allen_powerplatform_client
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
### Setuptools
|
|
48
|
+
|
|
49
|
+
Install via [Setuptools](http://pypi.python.org/pypi/setuptools).
|
|
50
|
+
|
|
51
|
+
```sh
|
|
52
|
+
python setup.py install --user
|
|
53
|
+
```
|
|
54
|
+
(or `sudo python setup.py install` to install the package for all users)
|
|
55
|
+
|
|
56
|
+
Then import the package:
|
|
57
|
+
```python
|
|
58
|
+
import allen_powerplatform_client
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
### Tests
|
|
62
|
+
|
|
63
|
+
Execute `pytest` to run the tests.
|
|
64
|
+
|
|
65
|
+
## Getting Started
|
|
66
|
+
|
|
67
|
+
Please follow the [installation procedure](#installation--usage) and then run the following:
|
|
68
|
+
|
|
69
|
+
```python
|
|
70
|
+
|
|
71
|
+
import allen_powerplatform_client
|
|
72
|
+
from allen_powerplatform_client.rest import ApiException
|
|
73
|
+
from pprint import pprint
|
|
74
|
+
|
|
75
|
+
# Defining the host is optional and defaults to https://8fd02505cbdee9558087f7d04a48a5.11.environment.api.powerplatform.com
|
|
76
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
77
|
+
configuration = allen_powerplatform_client.Configuration(
|
|
78
|
+
host = "https://8fd02505cbdee9558087f7d04a48a5.11.environment.api.powerplatform.com"
|
|
79
|
+
)
|
|
80
|
+
|
|
81
|
+
# The client must configure the authentication and authorization parameters
|
|
82
|
+
# in accordance with the API server security policy.
|
|
83
|
+
# Examples for each auth method are provided below, use the example that
|
|
84
|
+
# satisfies your auth use case.
|
|
85
|
+
|
|
86
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
87
|
+
|
|
88
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
89
|
+
|
|
90
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
# Enter a context with an instance of the API client
|
|
94
|
+
with allen_powerplatform_client.ApiClient(configuration) as api_client:
|
|
95
|
+
# Create an instance of the API class
|
|
96
|
+
api_instance = allen_powerplatform_client.DefaultApi(api_client)
|
|
97
|
+
api_version = 1 # int | (default to 1)
|
|
98
|
+
body = allen_powerplatform_client.FetchProjectByNameRequest() # FetchProjectByNameRequest |
|
|
99
|
+
|
|
100
|
+
try:
|
|
101
|
+
# Get Project PowerAutomate Flow
|
|
102
|
+
api_response = api_instance.fetch_project_by_name(api_version, body)
|
|
103
|
+
print("The response of DefaultApi->fetch_project_by_name:\n")
|
|
104
|
+
pprint(api_response)
|
|
105
|
+
except ApiException as e:
|
|
106
|
+
print("Exception when calling DefaultApi->fetch_project_by_name: %s\n" % e)
|
|
107
|
+
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
## Documentation for API Endpoints
|
|
111
|
+
|
|
112
|
+
All URIs are relative to *https://8fd02505cbdee9558087f7d04a48a5.11.environment.api.powerplatform.com*
|
|
113
|
+
|
|
114
|
+
Class | Method | HTTP request | Description
|
|
115
|
+
------------ | ------------- | ------------- | -------------
|
|
116
|
+
*DefaultApi* | [**fetch_project_by_name**](docs/DefaultApi.md#fetch_project_by_name) | **POST** /powerautomate/automations/direct/workflows/3bd68c3caf34448db7d6e2cd53602f88/triggers/manual/paths/invoke | Get Project PowerAutomate Flow
|
|
117
|
+
*DefaultApi* | [**fetch_table_by_name**](docs/DefaultApi.md#fetch_table_by_name) | **POST** /powerautomate/automations/direct/workflows/0438716ee92b4378811dbc975401decd/triggers/manual/paths/invoke | Get Table Power Automate Flow
|
|
118
|
+
*DefaultApi* | [**fetch_table_names**](docs/DefaultApi.md#fetch_table_names) | **POST** /powerautomate/automations/direct/workflows/70452d9b21584637a8023e3d66fc37ea/triggers/manual/paths/invoke | Get Table Names Power Automate Flow
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
## Documentation For Models
|
|
122
|
+
|
|
123
|
+
- [FetchProjectByNameRequest](docs/FetchProjectByNameRequest.md)
|
|
124
|
+
- [FetchTableByNameRequest](docs/FetchTableByNameRequest.md)
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
<a id="documentation-for-authorization"></a>
|
|
128
|
+
## Documentation For Authorization
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
Authentication schemes defined for the API:
|
|
132
|
+
<a id="oauth2-auth"></a>
|
|
133
|
+
### oauth2-auth
|
|
134
|
+
|
|
135
|
+
- **Type**: OAuth
|
|
136
|
+
- **Flow**: accessCode
|
|
137
|
+
- **Authorization URL**: https://login.microsoftonline.com/common/oauth2/authorize
|
|
138
|
+
- **Scopes**:
|
|
139
|
+
- **https://service.flow.microsoft.com//.default**: https://service.flow.microsoft.com//.default
|
|
140
|
+
|
|
141
|
+
<a id="oAuthClientCredentials"></a>
|
|
142
|
+
### oAuthClientCredentials
|
|
143
|
+
|
|
144
|
+
- **Type**: OAuth
|
|
145
|
+
- **Flow**: application
|
|
146
|
+
- **Authorization URL**:
|
|
147
|
+
- **Scopes**:
|
|
148
|
+
- **https://service.flow.microsoft.com//.default**: https://service.flow.microsoft.com//.default
|
|
149
|
+
|
|
150
|
+
<a id="certOauth"></a>
|
|
151
|
+
### certOauth
|
|
152
|
+
|
|
153
|
+
- **Type**: OAuth
|
|
154
|
+
- **Flow**: application
|
|
155
|
+
- **Authorization URL**:
|
|
156
|
+
- **Scopes**:
|
|
157
|
+
- **https://service.flow.microsoft.com//.default**: https://service.flow.microsoft.com//.default
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
## Author
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
# allen-powerplatform-client
|
|
2
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
3
|
+
|
|
4
|
+
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
5
|
+
|
|
6
|
+
- API version: 1.0
|
|
7
|
+
- Package version: 0.0.1
|
|
8
|
+
- Generator version: 7.17.0-SNAPSHOT
|
|
9
|
+
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
|
|
10
|
+
|
|
11
|
+
## Requirements.
|
|
12
|
+
|
|
13
|
+
Python 3.9+
|
|
14
|
+
|
|
15
|
+
## Installation & Usage
|
|
16
|
+
### pip install
|
|
17
|
+
|
|
18
|
+
If the python package is hosted on a repository, you can install directly using:
|
|
19
|
+
|
|
20
|
+
```sh
|
|
21
|
+
pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
|
|
22
|
+
```
|
|
23
|
+
(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git`)
|
|
24
|
+
|
|
25
|
+
Then import the package:
|
|
26
|
+
```python
|
|
27
|
+
import allen_powerplatform_client
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
### Setuptools
|
|
31
|
+
|
|
32
|
+
Install via [Setuptools](http://pypi.python.org/pypi/setuptools).
|
|
33
|
+
|
|
34
|
+
```sh
|
|
35
|
+
python setup.py install --user
|
|
36
|
+
```
|
|
37
|
+
(or `sudo python setup.py install` to install the package for all users)
|
|
38
|
+
|
|
39
|
+
Then import the package:
|
|
40
|
+
```python
|
|
41
|
+
import allen_powerplatform_client
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
### Tests
|
|
45
|
+
|
|
46
|
+
Execute `pytest` to run the tests.
|
|
47
|
+
|
|
48
|
+
## Getting Started
|
|
49
|
+
|
|
50
|
+
Please follow the [installation procedure](#installation--usage) and then run the following:
|
|
51
|
+
|
|
52
|
+
```python
|
|
53
|
+
|
|
54
|
+
import allen_powerplatform_client
|
|
55
|
+
from allen_powerplatform_client.rest import ApiException
|
|
56
|
+
from pprint import pprint
|
|
57
|
+
|
|
58
|
+
# Defining the host is optional and defaults to https://8fd02505cbdee9558087f7d04a48a5.11.environment.api.powerplatform.com
|
|
59
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
60
|
+
configuration = allen_powerplatform_client.Configuration(
|
|
61
|
+
host = "https://8fd02505cbdee9558087f7d04a48a5.11.environment.api.powerplatform.com"
|
|
62
|
+
)
|
|
63
|
+
|
|
64
|
+
# The client must configure the authentication and authorization parameters
|
|
65
|
+
# in accordance with the API server security policy.
|
|
66
|
+
# Examples for each auth method are provided below, use the example that
|
|
67
|
+
# satisfies your auth use case.
|
|
68
|
+
|
|
69
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
70
|
+
|
|
71
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
72
|
+
|
|
73
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
# Enter a context with an instance of the API client
|
|
77
|
+
with allen_powerplatform_client.ApiClient(configuration) as api_client:
|
|
78
|
+
# Create an instance of the API class
|
|
79
|
+
api_instance = allen_powerplatform_client.DefaultApi(api_client)
|
|
80
|
+
api_version = 1 # int | (default to 1)
|
|
81
|
+
body = allen_powerplatform_client.FetchProjectByNameRequest() # FetchProjectByNameRequest |
|
|
82
|
+
|
|
83
|
+
try:
|
|
84
|
+
# Get Project PowerAutomate Flow
|
|
85
|
+
api_response = api_instance.fetch_project_by_name(api_version, body)
|
|
86
|
+
print("The response of DefaultApi->fetch_project_by_name:\n")
|
|
87
|
+
pprint(api_response)
|
|
88
|
+
except ApiException as e:
|
|
89
|
+
print("Exception when calling DefaultApi->fetch_project_by_name: %s\n" % e)
|
|
90
|
+
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
## Documentation for API Endpoints
|
|
94
|
+
|
|
95
|
+
All URIs are relative to *https://8fd02505cbdee9558087f7d04a48a5.11.environment.api.powerplatform.com*
|
|
96
|
+
|
|
97
|
+
Class | Method | HTTP request | Description
|
|
98
|
+
------------ | ------------- | ------------- | -------------
|
|
99
|
+
*DefaultApi* | [**fetch_project_by_name**](docs/DefaultApi.md#fetch_project_by_name) | **POST** /powerautomate/automations/direct/workflows/3bd68c3caf34448db7d6e2cd53602f88/triggers/manual/paths/invoke | Get Project PowerAutomate Flow
|
|
100
|
+
*DefaultApi* | [**fetch_table_by_name**](docs/DefaultApi.md#fetch_table_by_name) | **POST** /powerautomate/automations/direct/workflows/0438716ee92b4378811dbc975401decd/triggers/manual/paths/invoke | Get Table Power Automate Flow
|
|
101
|
+
*DefaultApi* | [**fetch_table_names**](docs/DefaultApi.md#fetch_table_names) | **POST** /powerautomate/automations/direct/workflows/70452d9b21584637a8023e3d66fc37ea/triggers/manual/paths/invoke | Get Table Names Power Automate Flow
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
## Documentation For Models
|
|
105
|
+
|
|
106
|
+
- [FetchProjectByNameRequest](docs/FetchProjectByNameRequest.md)
|
|
107
|
+
- [FetchTableByNameRequest](docs/FetchTableByNameRequest.md)
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
<a id="documentation-for-authorization"></a>
|
|
111
|
+
## Documentation For Authorization
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
Authentication schemes defined for the API:
|
|
115
|
+
<a id="oauth2-auth"></a>
|
|
116
|
+
### oauth2-auth
|
|
117
|
+
|
|
118
|
+
- **Type**: OAuth
|
|
119
|
+
- **Flow**: accessCode
|
|
120
|
+
- **Authorization URL**: https://login.microsoftonline.com/common/oauth2/authorize
|
|
121
|
+
- **Scopes**:
|
|
122
|
+
- **https://service.flow.microsoft.com//.default**: https://service.flow.microsoft.com//.default
|
|
123
|
+
|
|
124
|
+
<a id="oAuthClientCredentials"></a>
|
|
125
|
+
### oAuthClientCredentials
|
|
126
|
+
|
|
127
|
+
- **Type**: OAuth
|
|
128
|
+
- **Flow**: application
|
|
129
|
+
- **Authorization URL**:
|
|
130
|
+
- **Scopes**:
|
|
131
|
+
- **https://service.flow.microsoft.com//.default**: https://service.flow.microsoft.com//.default
|
|
132
|
+
|
|
133
|
+
<a id="certOauth"></a>
|
|
134
|
+
### certOauth
|
|
135
|
+
|
|
136
|
+
- **Type**: OAuth
|
|
137
|
+
- **Flow**: application
|
|
138
|
+
- **Authorization URL**:
|
|
139
|
+
- **Scopes**:
|
|
140
|
+
- **https://service.flow.microsoft.com//.default**: https://service.flow.microsoft.com//.default
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
## Author
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
# flake8: noqa
|
|
4
|
+
|
|
5
|
+
"""
|
|
6
|
+
Test Dataverse Client
|
|
7
|
+
|
|
8
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
9
|
+
|
|
10
|
+
The version of the OpenAPI document: 1.0
|
|
11
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
12
|
+
|
|
13
|
+
Do not edit the class manually.
|
|
14
|
+
""" # noqa: E501
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
__version__ = "0.0.1"
|
|
18
|
+
|
|
19
|
+
# Define package exports
|
|
20
|
+
__all__ = [
|
|
21
|
+
"DefaultApi",
|
|
22
|
+
"ApiResponse",
|
|
23
|
+
"ApiClient",
|
|
24
|
+
"Configuration",
|
|
25
|
+
"OpenApiException",
|
|
26
|
+
"ApiTypeError",
|
|
27
|
+
"ApiValueError",
|
|
28
|
+
"ApiKeyError",
|
|
29
|
+
"ApiAttributeError",
|
|
30
|
+
"ApiException",
|
|
31
|
+
"FetchProjectByNameRequest",
|
|
32
|
+
"FetchTableByNameRequest",
|
|
33
|
+
]
|
|
34
|
+
|
|
35
|
+
# import apis into sdk package
|
|
36
|
+
from allen_powerplatform_client.api.default_api import DefaultApi as DefaultApi
|
|
37
|
+
|
|
38
|
+
# import ApiClient
|
|
39
|
+
from allen_powerplatform_client.api_response import ApiResponse as ApiResponse
|
|
40
|
+
from allen_powerplatform_client.api_client import ApiClient as ApiClient
|
|
41
|
+
from allen_powerplatform_client.configuration import Configuration as Configuration
|
|
42
|
+
from allen_powerplatform_client.exceptions import OpenApiException as OpenApiException
|
|
43
|
+
from allen_powerplatform_client.exceptions import ApiTypeError as ApiTypeError
|
|
44
|
+
from allen_powerplatform_client.exceptions import ApiValueError as ApiValueError
|
|
45
|
+
from allen_powerplatform_client.exceptions import ApiKeyError as ApiKeyError
|
|
46
|
+
from allen_powerplatform_client.exceptions import ApiAttributeError as ApiAttributeError
|
|
47
|
+
from allen_powerplatform_client.exceptions import ApiException as ApiException
|
|
48
|
+
|
|
49
|
+
# import models into sdk package
|
|
50
|
+
from allen_powerplatform_client.models.fetch_project_by_name_request import FetchProjectByNameRequest as FetchProjectByNameRequest
|
|
51
|
+
from allen_powerplatform_client.models.fetch_table_by_name_request import FetchTableByNameRequest as FetchTableByNameRequest
|
|
52
|
+
|