diff --git a/README.md b/README.md index 8424ddc..44f870b 100644 --- a/README.md +++ b/README.md @@ -45,11 +45,7 @@ configuration = compute_api_client.Configuration( # Examples for each auth method are provided below, use the example that # satisfies your auth use case. -# Configure API key authorization: user_bearer -configuration.api_key['user_bearer'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['user_bearer'] = 'Bearer' +configuration.access_token = os.environ["ACCESS_TOKEN"] # Configure API key authorization: user configuration.api_key['user'] = os.environ["API_KEY"] @@ -219,9 +215,10 @@ Authentication schemes defined for the API: ### user_bearer -- **Type**: API key -- **API key parameter name**: Authorization -- **Location**: HTTP header +- **Type**: OAuth +- **Flow**: accessCode +- **Authorization URL**: https://auth.qi2.quantum-inspire.com/realms/oidc_staging/protocol/openid-connect/auth +- **Scopes**: N/A ### backend diff --git a/compute_api_client/configuration.py b/compute_api_client/configuration.py index 3b0af77..75981d8 100644 --- a/compute_api_client/configuration.py +++ b/compute_api_client/configuration.py @@ -382,14 +382,12 @@ def auth_settings(self): 'user', ), } - if 'user_bearer' in self.api_key: + if self.access_token is not None: auth['user_bearer'] = { - 'type': 'api_key', + 'type': 'oauth2', 'in': 'header', 'key': 'Authorization', - 'value': self.get_api_key_with_prefix( - 'user_bearer', - ), + 'value': 'Bearer ' + self.access_token } if 'backend' in self.api_key: auth['backend'] = { diff --git a/compute_api_client/docs/AlgorithmsApi.md b/compute_api_client/docs/AlgorithmsApi.md index 86b1f53..a0b2805 100644 --- a/compute_api_client/docs/AlgorithmsApi.md +++ b/compute_api_client/docs/AlgorithmsApi.md @@ -20,7 +20,7 @@ Create new algorithm. ### Example -* Api Key Authentication (user_bearer): +* OAuth Authentication (user_bearer): * Api Key Authentication (user): ```python import time @@ -42,11 +42,7 @@ configuration = compute_api_client.Configuration( # Examples for each auth method are provided below, use the example that # satisfies your auth use case. -# Configure API key authorization: user_bearer -configuration.api_key['user_bearer'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['user_bearer'] = 'Bearer' +configuration.access_token = os.environ["ACCESS_TOKEN"] # Configure API key authorization: user configuration.api_key['user'] = os.environ["API_KEY"] @@ -107,7 +103,7 @@ Delete an algorithm. ### Example -* Api Key Authentication (user_bearer): +* OAuth Authentication (user_bearer): * Api Key Authentication (user): ```python import time @@ -127,11 +123,7 @@ configuration = compute_api_client.Configuration( # Examples for each auth method are provided below, use the example that # satisfies your auth use case. -# Configure API key authorization: user_bearer -configuration.api_key['user_bearer'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['user_bearer'] = 'Bearer' +configuration.access_token = os.environ["ACCESS_TOKEN"] # Configure API key authorization: user configuration.api_key['user'] = os.environ["API_KEY"] @@ -191,7 +183,7 @@ Get algorithm by ID. ### Example -* Api Key Authentication (user_bearer): +* OAuth Authentication (user_bearer): * Api Key Authentication (backend): * Api Key Authentication (user): ```python @@ -213,11 +205,7 @@ configuration = compute_api_client.Configuration( # Examples for each auth method are provided below, use the example that # satisfies your auth use case. -# Configure API key authorization: user_bearer -configuration.api_key['user_bearer'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['user_bearer'] = 'Bearer' +configuration.access_token = os.environ["ACCESS_TOKEN"] # Configure API key authorization: backend configuration.api_key['backend'] = os.environ["API_KEY"] @@ -285,7 +273,7 @@ List algorithms. ### Example -* Api Key Authentication (user_bearer): +* OAuth Authentication (user_bearer): * Api Key Authentication (user): ```python import time @@ -308,11 +296,7 @@ configuration = compute_api_client.Configuration( # Examples for each auth method are provided below, use the example that # satisfies your auth use case. -# Configure API key authorization: user_bearer -configuration.api_key['user_bearer'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['user_bearer'] = 'Bearer' +configuration.access_token = os.environ["ACCESS_TOKEN"] # Configure API key authorization: user configuration.api_key['user'] = os.environ["API_KEY"] @@ -397,7 +381,7 @@ Update an algorithm. ### Example -* Api Key Authentication (user_bearer): +* OAuth Authentication (user_bearer): * Api Key Authentication (user): ```python import time @@ -419,11 +403,7 @@ configuration = compute_api_client.Configuration( # Examples for each auth method are provided below, use the example that # satisfies your auth use case. -# Configure API key authorization: user_bearer -configuration.api_key['user_bearer'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['user_bearer'] = 'Bearer' +configuration.access_token = os.environ["ACCESS_TOKEN"] # Configure API key authorization: user configuration.api_key['user'] = os.environ["API_KEY"] diff --git a/compute_api_client/docs/BackendApi.md b/compute_api_client/docs/BackendApi.md index 11ebd2a..5ea7ff7 100644 --- a/compute_api_client/docs/BackendApi.md +++ b/compute_api_client/docs/BackendApi.md @@ -20,7 +20,7 @@ Create new backend. ### Example -* Api Key Authentication (user_bearer): +* OAuth Authentication (user_bearer): * Api Key Authentication (user): ```python import time @@ -42,11 +42,7 @@ configuration = compute_api_client.Configuration( # Examples for each auth method are provided below, use the example that # satisfies your auth use case. -# Configure API key authorization: user_bearer -configuration.api_key['user_bearer'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['user_bearer'] = 'Bearer' +configuration.access_token = os.environ["ACCESS_TOKEN"] # Configure API key authorization: user configuration.api_key['user'] = os.environ["API_KEY"] @@ -107,7 +103,7 @@ Get backend by ID. ### Example -* Api Key Authentication (user_bearer): +* OAuth Authentication (user_bearer): * Api Key Authentication (user): ```python import time @@ -128,11 +124,7 @@ configuration = compute_api_client.Configuration( # Examples for each auth method are provided below, use the example that # satisfies your auth use case. -# Configure API key authorization: user_bearer -configuration.api_key['user_bearer'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['user_bearer'] = 'Bearer' +configuration.access_token = os.environ["ACCESS_TOKEN"] # Configure API key authorization: user configuration.api_key['user'] = os.environ["API_KEY"] @@ -268,7 +260,7 @@ Read backends. ### Example -* Api Key Authentication (user_bearer): +* OAuth Authentication (user_bearer): * Api Key Authentication (user): ```python import time @@ -290,11 +282,7 @@ configuration = compute_api_client.Configuration( # Examples for each auth method are provided below, use the example that # satisfies your auth use case. -# Configure API key authorization: user_bearer -configuration.api_key['user_bearer'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['user_bearer'] = 'Bearer' +configuration.access_token = os.environ["ACCESS_TOKEN"] # Configure API key authorization: user configuration.api_key['user'] = os.environ["API_KEY"] diff --git a/compute_api_client/docs/BackendTypesApi.md b/compute_api_client/docs/BackendTypesApi.md index b6c71a7..4a0744a 100644 --- a/compute_api_client/docs/BackendTypesApi.md +++ b/compute_api_client/docs/BackendTypesApi.md @@ -17,7 +17,7 @@ Get backend type by ID. ### Example -* Api Key Authentication (user_bearer): +* OAuth Authentication (user_bearer): * Api Key Authentication (user): ```python import time @@ -38,11 +38,7 @@ configuration = compute_api_client.Configuration( # Examples for each auth method are provided below, use the example that # satisfies your auth use case. -# Configure API key authorization: user_bearer -configuration.api_key['user_bearer'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['user_bearer'] = 'Bearer' +configuration.access_token = os.environ["ACCESS_TOKEN"] # Configure API key authorization: user configuration.api_key['user'] = os.environ["API_KEY"] @@ -104,7 +100,7 @@ Read backend types. ### Example -* Api Key Authentication (user_bearer): +* OAuth Authentication (user_bearer): * Api Key Authentication (user): ```python import time @@ -126,11 +122,7 @@ configuration = compute_api_client.Configuration( # Examples for each auth method are provided below, use the example that # satisfies your auth use case. -# Configure API key authorization: user_bearer -configuration.api_key['user_bearer'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['user_bearer'] = 'Bearer' +configuration.access_token = os.environ["ACCESS_TOKEN"] # Configure API key authorization: user configuration.api_key['user'] = os.environ["API_KEY"] diff --git a/compute_api_client/docs/BatchJobsApi.md b/compute_api_client/docs/BatchJobsApi.md index 322c9d2..7484449 100644 --- a/compute_api_client/docs/BatchJobsApi.md +++ b/compute_api_client/docs/BatchJobsApi.md @@ -22,7 +22,7 @@ Create new batch job. ### Example -* Api Key Authentication (user_bearer): +* OAuth Authentication (user_bearer): * Api Key Authentication (user): ```python import time @@ -44,11 +44,7 @@ configuration = compute_api_client.Configuration( # Examples for each auth method are provided below, use the example that # satisfies your auth use case. -# Configure API key authorization: user_bearer -configuration.api_key['user_bearer'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['user_bearer'] = 'Bearer' +configuration.access_token = os.environ["ACCESS_TOKEN"] # Configure API key authorization: user configuration.api_key['user'] = os.environ["API_KEY"] @@ -109,7 +105,7 @@ Enqueue batch job for execution. ### Example -* Api Key Authentication (user_bearer): +* OAuth Authentication (user_bearer): * Api Key Authentication (user): ```python import time @@ -130,11 +126,7 @@ configuration = compute_api_client.Configuration( # Examples for each auth method are provided below, use the example that # satisfies your auth use case. -# Configure API key authorization: user_bearer -configuration.api_key['user_bearer'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['user_bearer'] = 'Bearer' +configuration.access_token = os.environ["ACCESS_TOKEN"] # Configure API key authorization: user configuration.api_key['user'] = os.environ["API_KEY"] @@ -196,7 +188,7 @@ Finish batch job. ### Example -* Api Key Authentication (user_bearer): +* OAuth Authentication (user_bearer): * Api Key Authentication (backend): * Api Key Authentication (user): ```python @@ -218,11 +210,7 @@ configuration = compute_api_client.Configuration( # Examples for each auth method are provided below, use the example that # satisfies your auth use case. -# Configure API key authorization: user_bearer -configuration.api_key['user_bearer'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['user_bearer'] = 'Bearer' +configuration.access_token = os.environ["ACCESS_TOKEN"] # Configure API key authorization: backend configuration.api_key['backend'] = os.environ["API_KEY"] @@ -444,7 +432,7 @@ List batch jobs. ### Example -* Api Key Authentication (user_bearer): +* OAuth Authentication (user_bearer): * Api Key Authentication (user): ```python import time @@ -467,11 +455,7 @@ configuration = compute_api_client.Configuration( # Examples for each auth method are provided below, use the example that # satisfies your auth use case. -# Configure API key authorization: user_bearer -configuration.api_key['user_bearer'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['user_bearer'] = 'Bearer' +configuration.access_token = os.environ["ACCESS_TOKEN"] # Configure API key authorization: user configuration.api_key['user'] = os.environ["API_KEY"] diff --git a/compute_api_client/docs/CommitsApi.md b/compute_api_client/docs/CommitsApi.md index b05a009..23d2df5 100644 --- a/compute_api_client/docs/CommitsApi.md +++ b/compute_api_client/docs/CommitsApi.md @@ -19,7 +19,7 @@ Create new commit. ### Example -* Api Key Authentication (user_bearer): +* OAuth Authentication (user_bearer): * Api Key Authentication (user): ```python import time @@ -41,11 +41,7 @@ configuration = compute_api_client.Configuration( # Examples for each auth method are provided below, use the example that # satisfies your auth use case. -# Configure API key authorization: user_bearer -configuration.api_key['user_bearer'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['user_bearer'] = 'Bearer' +configuration.access_token = os.environ["ACCESS_TOKEN"] # Configure API key authorization: user configuration.api_key['user'] = os.environ["API_KEY"] @@ -106,7 +102,7 @@ Delete a commit. ### Example -* Api Key Authentication (user_bearer): +* OAuth Authentication (user_bearer): * Api Key Authentication (user): ```python import time @@ -126,11 +122,7 @@ configuration = compute_api_client.Configuration( # Examples for each auth method are provided below, use the example that # satisfies your auth use case. -# Configure API key authorization: user_bearer -configuration.api_key['user_bearer'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['user_bearer'] = 'Bearer' +configuration.access_token = os.environ["ACCESS_TOKEN"] # Configure API key authorization: user configuration.api_key['user'] = os.environ["API_KEY"] @@ -190,7 +182,7 @@ Get commit by ID. ### Example -* Api Key Authentication (user_bearer): +* OAuth Authentication (user_bearer): * Api Key Authentication (backend): * Api Key Authentication (user): ```python @@ -212,11 +204,7 @@ configuration = compute_api_client.Configuration( # Examples for each auth method are provided below, use the example that # satisfies your auth use case. -# Configure API key authorization: user_bearer -configuration.api_key['user_bearer'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['user_bearer'] = 'Bearer' +configuration.access_token = os.environ["ACCESS_TOKEN"] # Configure API key authorization: backend configuration.api_key['backend'] = os.environ["API_KEY"] @@ -284,7 +272,7 @@ List commits. ### Example -* Api Key Authentication (user_bearer): +* OAuth Authentication (user_bearer): * Api Key Authentication (user): ```python import time @@ -305,11 +293,7 @@ configuration = compute_api_client.Configuration( # Examples for each auth method are provided below, use the example that # satisfies your auth use case. -# Configure API key authorization: user_bearer -configuration.api_key['user_bearer'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['user_bearer'] = 'Bearer' +configuration.access_token = os.environ["ACCESS_TOKEN"] # Configure API key authorization: user configuration.api_key['user'] = os.environ["API_KEY"] diff --git a/compute_api_client/docs/FilesApi.md b/compute_api_client/docs/FilesApi.md index 21fe0cb..4b4b42f 100644 --- a/compute_api_client/docs/FilesApi.md +++ b/compute_api_client/docs/FilesApi.md @@ -19,7 +19,7 @@ Create new file. ### Example -* Api Key Authentication (user_bearer): +* OAuth Authentication (user_bearer): * Api Key Authentication (user): ```python import time @@ -41,11 +41,7 @@ configuration = compute_api_client.Configuration( # Examples for each auth method are provided below, use the example that # satisfies your auth use case. -# Configure API key authorization: user_bearer -configuration.api_key['user_bearer'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['user_bearer'] = 'Bearer' +configuration.access_token = os.environ["ACCESS_TOKEN"] # Configure API key authorization: user configuration.api_key['user'] = os.environ["API_KEY"] @@ -106,7 +102,7 @@ Delete a file. ### Example -* Api Key Authentication (user_bearer): +* OAuth Authentication (user_bearer): * Api Key Authentication (user): ```python import time @@ -126,11 +122,7 @@ configuration = compute_api_client.Configuration( # Examples for each auth method are provided below, use the example that # satisfies your auth use case. -# Configure API key authorization: user_bearer -configuration.api_key['user_bearer'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['user_bearer'] = 'Bearer' +configuration.access_token = os.environ["ACCESS_TOKEN"] # Configure API key authorization: user configuration.api_key['user'] = os.environ["API_KEY"] @@ -190,7 +182,7 @@ Get file by ID. ### Example -* Api Key Authentication (user_bearer): +* OAuth Authentication (user_bearer): * Api Key Authentication (backend): * Api Key Authentication (user): ```python @@ -212,11 +204,7 @@ configuration = compute_api_client.Configuration( # Examples for each auth method are provided below, use the example that # satisfies your auth use case. -# Configure API key authorization: user_bearer -configuration.api_key['user_bearer'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['user_bearer'] = 'Bearer' +configuration.access_token = os.environ["ACCESS_TOKEN"] # Configure API key authorization: backend configuration.api_key['backend'] = os.environ["API_KEY"] @@ -284,7 +272,7 @@ List files. ### Example -* Api Key Authentication (user_bearer): +* OAuth Authentication (user_bearer): * Api Key Authentication (user): ```python import time @@ -306,11 +294,7 @@ configuration = compute_api_client.Configuration( # Examples for each auth method are provided below, use the example that # satisfies your auth use case. -# Configure API key authorization: user_bearer -configuration.api_key['user_bearer'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['user_bearer'] = 'Bearer' +configuration.access_token = os.environ["ACCESS_TOKEN"] # Configure API key authorization: user configuration.api_key['user'] = os.environ["API_KEY"] diff --git a/compute_api_client/docs/FinalResultsApi.md b/compute_api_client/docs/FinalResultsApi.md index 3912ac9..7b2e0e8 100644 --- a/compute_api_client/docs/FinalResultsApi.md +++ b/compute_api_client/docs/FinalResultsApi.md @@ -18,7 +18,7 @@ Create new final result. ### Example -* Api Key Authentication (user_bearer): +* OAuth Authentication (user_bearer): * Api Key Authentication (backend): * Api Key Authentication (user): ```python @@ -41,11 +41,7 @@ configuration = compute_api_client.Configuration( # Examples for each auth method are provided below, use the example that # satisfies your auth use case. -# Configure API key authorization: user_bearer -configuration.api_key['user_bearer'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['user_bearer'] = 'Bearer' +configuration.access_token = os.environ["ACCESS_TOKEN"] # Configure API key authorization: backend configuration.api_key['backend'] = os.environ["API_KEY"] @@ -112,7 +108,7 @@ Get final result by job ID. ### Example -* Api Key Authentication (user_bearer): +* OAuth Authentication (user_bearer): * Api Key Authentication (user): ```python import time @@ -133,11 +129,7 @@ configuration = compute_api_client.Configuration( # Examples for each auth method are provided below, use the example that # satisfies your auth use case. -# Configure API key authorization: user_bearer -configuration.api_key['user_bearer'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['user_bearer'] = 'Bearer' +configuration.access_token = os.environ["ACCESS_TOKEN"] # Configure API key authorization: user configuration.api_key['user'] = os.environ["API_KEY"] @@ -198,7 +190,7 @@ Get final result by ID. ### Example -* Api Key Authentication (user_bearer): +* OAuth Authentication (user_bearer): * Api Key Authentication (user): ```python import time @@ -219,11 +211,7 @@ configuration = compute_api_client.Configuration( # Examples for each auth method are provided below, use the example that # satisfies your auth use case. -# Configure API key authorization: user_bearer -configuration.api_key['user_bearer'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['user_bearer'] = 'Bearer' +configuration.access_token = os.environ["ACCESS_TOKEN"] # Configure API key authorization: user configuration.api_key['user'] = os.environ["API_KEY"] diff --git a/compute_api_client/docs/JobsApi.md b/compute_api_client/docs/JobsApi.md index f4125a5..89f96d6 100644 --- a/compute_api_client/docs/JobsApi.md +++ b/compute_api_client/docs/JobsApi.md @@ -20,7 +20,7 @@ Create new job. ### Example -* Api Key Authentication (user_bearer): +* OAuth Authentication (user_bearer): * Api Key Authentication (user): ```python import time @@ -42,11 +42,7 @@ configuration = compute_api_client.Configuration( # Examples for each auth method are provided below, use the example that # satisfies your auth use case. -# Configure API key authorization: user_bearer -configuration.api_key['user_bearer'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['user_bearer'] = 'Bearer' +configuration.access_token = os.environ["ACCESS_TOKEN"] # Configure API key authorization: user configuration.api_key['user'] = os.environ["API_KEY"] @@ -107,7 +103,7 @@ Delete a job. ### Example -* Api Key Authentication (user_bearer): +* OAuth Authentication (user_bearer): * Api Key Authentication (user): ```python import time @@ -127,11 +123,7 @@ configuration = compute_api_client.Configuration( # Examples for each auth method are provided below, use the example that # satisfies your auth use case. -# Configure API key authorization: user_bearer -configuration.api_key['user_bearer'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['user_bearer'] = 'Bearer' +configuration.access_token = os.environ["ACCESS_TOKEN"] # Configure API key authorization: user configuration.api_key['user'] = os.environ["API_KEY"] @@ -191,7 +183,7 @@ Get job by ID. ### Example -* Api Key Authentication (user_bearer): +* OAuth Authentication (user_bearer): * Api Key Authentication (backend): * Api Key Authentication (user): ```python @@ -213,11 +205,7 @@ configuration = compute_api_client.Configuration( # Examples for each auth method are provided below, use the example that # satisfies your auth use case. -# Configure API key authorization: user_bearer -configuration.api_key['user_bearer'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['user_bearer'] = 'Bearer' +configuration.access_token = os.environ["ACCESS_TOKEN"] # Configure API key authorization: backend configuration.api_key['backend'] = os.environ["API_KEY"] @@ -285,7 +273,7 @@ List jobs. ### Example -* Api Key Authentication (user_bearer): +* OAuth Authentication (user_bearer): * Api Key Authentication (backend): * Api Key Authentication (user): ```python @@ -309,11 +297,7 @@ configuration = compute_api_client.Configuration( # Examples for each auth method are provided below, use the example that # satisfies your auth use case. -# Configure API key authorization: user_bearer -configuration.api_key['user_bearer'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['user_bearer'] = 'Bearer' +configuration.access_token = os.environ["ACCESS_TOKEN"] # Configure API key authorization: backend configuration.api_key['backend'] = os.environ["API_KEY"] @@ -410,7 +394,7 @@ Update status of a job. ### Example -* Api Key Authentication (user_bearer): +* OAuth Authentication (user_bearer): * Api Key Authentication (backend): * Api Key Authentication (user): ```python @@ -433,11 +417,7 @@ configuration = compute_api_client.Configuration( # Examples for each auth method are provided below, use the example that # satisfies your auth use case. -# Configure API key authorization: user_bearer -configuration.api_key['user_bearer'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['user_bearer'] = 'Bearer' +configuration.access_token = os.environ["ACCESS_TOKEN"] # Configure API key authorization: backend configuration.api_key['backend'] = os.environ["API_KEY"] diff --git a/compute_api_client/docs/LanguagesApi.md b/compute_api_client/docs/LanguagesApi.md index 9cb3f54..b0b0b81 100644 --- a/compute_api_client/docs/LanguagesApi.md +++ b/compute_api_client/docs/LanguagesApi.md @@ -17,7 +17,7 @@ Get language by ID. ### Example -* Api Key Authentication (user_bearer): +* OAuth Authentication (user_bearer): * Api Key Authentication (user): ```python import time @@ -38,11 +38,7 @@ configuration = compute_api_client.Configuration( # Examples for each auth method are provided below, use the example that # satisfies your auth use case. -# Configure API key authorization: user_bearer -configuration.api_key['user_bearer'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['user_bearer'] = 'Bearer' +configuration.access_token = os.environ["ACCESS_TOKEN"] # Configure API key authorization: user configuration.api_key['user'] = os.environ["API_KEY"] @@ -104,7 +100,7 @@ List languages. ### Example -* Api Key Authentication (user_bearer): +* OAuth Authentication (user_bearer): * Api Key Authentication (user): ```python import time @@ -125,11 +121,7 @@ configuration = compute_api_client.Configuration( # Examples for each auth method are provided below, use the example that # satisfies your auth use case. -# Configure API key authorization: user_bearer -configuration.api_key['user_bearer'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['user_bearer'] = 'Bearer' +configuration.access_token = os.environ["ACCESS_TOKEN"] # Configure API key authorization: user configuration.api_key['user'] = os.environ["API_KEY"] diff --git a/compute_api_client/docs/MembersApi.md b/compute_api_client/docs/MembersApi.md index fd0a806..a5d647f 100644 --- a/compute_api_client/docs/MembersApi.md +++ b/compute_api_client/docs/MembersApi.md @@ -19,7 +19,7 @@ Create new member. ### Example -* Api Key Authentication (user_bearer): +* OAuth Authentication (user_bearer): * Api Key Authentication (user): ```python import time @@ -41,11 +41,7 @@ configuration = compute_api_client.Configuration( # Examples for each auth method are provided below, use the example that # satisfies your auth use case. -# Configure API key authorization: user_bearer -configuration.api_key['user_bearer'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['user_bearer'] = 'Bearer' +configuration.access_token = os.environ["ACCESS_TOKEN"] # Configure API key authorization: user configuration.api_key['user'] = os.environ["API_KEY"] @@ -106,7 +102,7 @@ Delete a member. ### Example -* Api Key Authentication (user_bearer): +* OAuth Authentication (user_bearer): * Api Key Authentication (user): ```python import time @@ -126,11 +122,7 @@ configuration = compute_api_client.Configuration( # Examples for each auth method are provided below, use the example that # satisfies your auth use case. -# Configure API key authorization: user_bearer -configuration.api_key['user_bearer'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['user_bearer'] = 'Bearer' +configuration.access_token = os.environ["ACCESS_TOKEN"] # Configure API key authorization: user configuration.api_key['user'] = os.environ["API_KEY"] @@ -190,7 +182,7 @@ Get member by ID. ### Example -* Api Key Authentication (user_bearer): +* OAuth Authentication (user_bearer): * Api Key Authentication (user): ```python import time @@ -211,11 +203,7 @@ configuration = compute_api_client.Configuration( # Examples for each auth method are provided below, use the example that # satisfies your auth use case. -# Configure API key authorization: user_bearer -configuration.api_key['user_bearer'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['user_bearer'] = 'Bearer' +configuration.access_token = os.environ["ACCESS_TOKEN"] # Configure API key authorization: user configuration.api_key['user'] = os.environ["API_KEY"] @@ -277,7 +265,7 @@ Read members. ### Example -* Api Key Authentication (user_bearer): +* OAuth Authentication (user_bearer): * Api Key Authentication (user): ```python import time @@ -299,11 +287,7 @@ configuration = compute_api_client.Configuration( # Examples for each auth method are provided below, use the example that # satisfies your auth use case. -# Configure API key authorization: user_bearer -configuration.api_key['user_bearer'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['user_bearer'] = 'Bearer' +configuration.access_token = os.environ["ACCESS_TOKEN"] # Configure API key authorization: user configuration.api_key['user'] = os.environ["API_KEY"] diff --git a/compute_api_client/docs/MetadataApi.md b/compute_api_client/docs/MetadataApi.md index 097235d..4ecf4fa 100644 --- a/compute_api_client/docs/MetadataApi.md +++ b/compute_api_client/docs/MetadataApi.md @@ -98,7 +98,7 @@ Get metadata by job ID. ### Example -* Api Key Authentication (user_bearer): +* OAuth Authentication (user_bearer): * Api Key Authentication (user): ```python import time @@ -119,11 +119,7 @@ configuration = compute_api_client.Configuration( # Examples for each auth method are provided below, use the example that # satisfies your auth use case. -# Configure API key authorization: user_bearer -configuration.api_key['user_bearer'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['user_bearer'] = 'Bearer' +configuration.access_token = os.environ["ACCESS_TOKEN"] # Configure API key authorization: user configuration.api_key['user'] = os.environ["API_KEY"] @@ -184,7 +180,7 @@ Get metadata by ID. ### Example -* Api Key Authentication (user_bearer): +* OAuth Authentication (user_bearer): * Api Key Authentication (user): ```python import time @@ -205,11 +201,7 @@ configuration = compute_api_client.Configuration( # Examples for each auth method are provided below, use the example that # satisfies your auth use case. -# Configure API key authorization: user_bearer -configuration.api_key['user_bearer'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['user_bearer'] = 'Bearer' +configuration.access_token = os.environ["ACCESS_TOKEN"] # Configure API key authorization: user configuration.api_key['user'] = os.environ["API_KEY"] diff --git a/compute_api_client/docs/PermissionsApi.md b/compute_api_client/docs/PermissionsApi.md index bd2b1de..f8c9cff 100644 --- a/compute_api_client/docs/PermissionsApi.md +++ b/compute_api_client/docs/PermissionsApi.md @@ -19,7 +19,7 @@ Get permission group by ID. ### Example -* Api Key Authentication (user_bearer): +* OAuth Authentication (user_bearer): * Api Key Authentication (user): ```python import time @@ -40,11 +40,7 @@ configuration = compute_api_client.Configuration( # Examples for each auth method are provided below, use the example that # satisfies your auth use case. -# Configure API key authorization: user_bearer -configuration.api_key['user_bearer'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['user_bearer'] = 'Bearer' +configuration.access_token = os.environ["ACCESS_TOKEN"] # Configure API key authorization: user configuration.api_key['user'] = os.environ["API_KEY"] @@ -106,7 +102,7 @@ Read permissions groups. ### Example -* Api Key Authentication (user_bearer): +* OAuth Authentication (user_bearer): * Api Key Authentication (user): ```python import time @@ -127,11 +123,7 @@ configuration = compute_api_client.Configuration( # Examples for each auth method are provided below, use the example that # satisfies your auth use case. -# Configure API key authorization: user_bearer -configuration.api_key['user_bearer'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['user_bearer'] = 'Bearer' +configuration.access_token = os.environ["ACCESS_TOKEN"] # Configure API key authorization: user configuration.api_key['user'] = os.environ["API_KEY"] @@ -202,7 +194,7 @@ Get permission by ID. ### Example -* Api Key Authentication (user_bearer): +* OAuth Authentication (user_bearer): * Api Key Authentication (user): ```python import time @@ -223,11 +215,7 @@ configuration = compute_api_client.Configuration( # Examples for each auth method are provided below, use the example that # satisfies your auth use case. -# Configure API key authorization: user_bearer -configuration.api_key['user_bearer'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['user_bearer'] = 'Bearer' +configuration.access_token = os.environ["ACCESS_TOKEN"] # Configure API key authorization: user configuration.api_key['user'] = os.environ["API_KEY"] @@ -289,7 +277,7 @@ Read permissions. ### Example -* Api Key Authentication (user_bearer): +* OAuth Authentication (user_bearer): * Api Key Authentication (user): ```python import time @@ -310,11 +298,7 @@ configuration = compute_api_client.Configuration( # Examples for each auth method are provided below, use the example that # satisfies your auth use case. -# Configure API key authorization: user_bearer -configuration.api_key['user_bearer'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['user_bearer'] = 'Bearer' +configuration.access_token = os.environ["ACCESS_TOKEN"] # Configure API key authorization: user configuration.api_key['user'] = os.environ["API_KEY"] diff --git a/compute_api_client/docs/ProjectsApi.md b/compute_api_client/docs/ProjectsApi.md index 09d819a..91f436b 100644 --- a/compute_api_client/docs/ProjectsApi.md +++ b/compute_api_client/docs/ProjectsApi.md @@ -21,7 +21,7 @@ Create new project. ### Example -* Api Key Authentication (user_bearer): +* OAuth Authentication (user_bearer): * Api Key Authentication (user): ```python import time @@ -43,11 +43,7 @@ configuration = compute_api_client.Configuration( # Examples for each auth method are provided below, use the example that # satisfies your auth use case. -# Configure API key authorization: user_bearer -configuration.api_key['user_bearer'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['user_bearer'] = 'Bearer' +configuration.access_token = os.environ["ACCESS_TOKEN"] # Configure API key authorization: user configuration.api_key['user'] = os.environ["API_KEY"] @@ -108,7 +104,7 @@ Delete a project. ### Example -* Api Key Authentication (user_bearer): +* OAuth Authentication (user_bearer): * Api Key Authentication (user): ```python import time @@ -128,11 +124,7 @@ configuration = compute_api_client.Configuration( # Examples for each auth method are provided below, use the example that # satisfies your auth use case. -# Configure API key authorization: user_bearer -configuration.api_key['user_bearer'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['user_bearer'] = 'Bearer' +configuration.access_token = os.environ["ACCESS_TOKEN"] # Configure API key authorization: user configuration.api_key['user'] = os.environ["API_KEY"] @@ -192,7 +184,7 @@ Partially update a project. ### Example -* Api Key Authentication (user_bearer): +* OAuth Authentication (user_bearer): * Api Key Authentication (user): ```python import time @@ -214,11 +206,7 @@ configuration = compute_api_client.Configuration( # Examples for each auth method are provided below, use the example that # satisfies your auth use case. -# Configure API key authorization: user_bearer -configuration.api_key['user_bearer'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['user_bearer'] = 'Bearer' +configuration.access_token = os.environ["ACCESS_TOKEN"] # Configure API key authorization: user configuration.api_key['user'] = os.environ["API_KEY"] @@ -282,7 +270,7 @@ Get project by ID. ### Example -* Api Key Authentication (user_bearer): +* OAuth Authentication (user_bearer): * Api Key Authentication (user): ```python import time @@ -303,11 +291,7 @@ configuration = compute_api_client.Configuration( # Examples for each auth method are provided below, use the example that # satisfies your auth use case. -# Configure API key authorization: user_bearer -configuration.api_key['user_bearer'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['user_bearer'] = 'Bearer' +configuration.access_token = os.environ["ACCESS_TOKEN"] # Configure API key authorization: user configuration.api_key['user'] = os.environ["API_KEY"] @@ -369,7 +353,7 @@ List projects. If the search parameter is provided, the list is filtered based ### Example -* Api Key Authentication (user_bearer): +* OAuth Authentication (user_bearer): * Api Key Authentication (user): ```python import time @@ -390,11 +374,7 @@ configuration = compute_api_client.Configuration( # Examples for each auth method are provided below, use the example that # satisfies your auth use case. -# Configure API key authorization: user_bearer -configuration.api_key['user_bearer'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['user_bearer'] = 'Bearer' +configuration.access_token = os.environ["ACCESS_TOKEN"] # Configure API key authorization: user configuration.api_key['user'] = os.environ["API_KEY"] @@ -475,7 +455,7 @@ Update a project. ### Example -* Api Key Authentication (user_bearer): +* OAuth Authentication (user_bearer): * Api Key Authentication (user): ```python import time @@ -497,11 +477,7 @@ configuration = compute_api_client.Configuration( # Examples for each auth method are provided below, use the example that # satisfies your auth use case. -# Configure API key authorization: user_bearer -configuration.api_key['user_bearer'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['user_bearer'] = 'Bearer' +configuration.access_token = os.environ["ACCESS_TOKEN"] # Configure API key authorization: user configuration.api_key['user'] = os.environ["API_KEY"] diff --git a/compute_api_client/docs/ReservationsApi.md b/compute_api_client/docs/ReservationsApi.md index d1c2895..df3e0bc 100644 --- a/compute_api_client/docs/ReservationsApi.md +++ b/compute_api_client/docs/ReservationsApi.md @@ -19,7 +19,7 @@ Create new reservation. ### Example -* Api Key Authentication (user_bearer): +* OAuth Authentication (user_bearer): * Api Key Authentication (user): ```python import time @@ -41,11 +41,7 @@ configuration = compute_api_client.Configuration( # Examples for each auth method are provided below, use the example that # satisfies your auth use case. -# Configure API key authorization: user_bearer -configuration.api_key['user_bearer'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['user_bearer'] = 'Bearer' +configuration.access_token = os.environ["ACCESS_TOKEN"] # Configure API key authorization: user configuration.api_key['user'] = os.environ["API_KEY"] @@ -106,7 +102,7 @@ Get reservation by ID. ### Example -* Api Key Authentication (user_bearer): +* OAuth Authentication (user_bearer): * Api Key Authentication (user): ```python import time @@ -127,11 +123,7 @@ configuration = compute_api_client.Configuration( # Examples for each auth method are provided below, use the example that # satisfies your auth use case. -# Configure API key authorization: user_bearer -configuration.api_key['user_bearer'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['user_bearer'] = 'Bearer' +configuration.access_token = os.environ["ACCESS_TOKEN"] # Configure API key authorization: user configuration.api_key['user'] = os.environ["API_KEY"] @@ -193,7 +185,7 @@ Read reservations. ### Example -* Api Key Authentication (user_bearer): +* OAuth Authentication (user_bearer): * Api Key Authentication (user): ```python import time @@ -214,11 +206,7 @@ configuration = compute_api_client.Configuration( # Examples for each auth method are provided below, use the example that # satisfies your auth use case. -# Configure API key authorization: user_bearer -configuration.api_key['user_bearer'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['user_bearer'] = 'Bearer' +configuration.access_token = os.environ["ACCESS_TOKEN"] # Configure API key authorization: user configuration.api_key['user'] = os.environ["API_KEY"] @@ -301,7 +289,7 @@ Terminate reservation by ID. ### Example -* Api Key Authentication (user_bearer): +* OAuth Authentication (user_bearer): * Api Key Authentication (user): ```python import time @@ -322,11 +310,7 @@ configuration = compute_api_client.Configuration( # Examples for each auth method are provided below, use the example that # satisfies your auth use case. -# Configure API key authorization: user_bearer -configuration.api_key['user_bearer'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['user_bearer'] = 'Bearer' +configuration.access_token = os.environ["ACCESS_TOKEN"] # Configure API key authorization: user configuration.api_key['user'] = os.environ["API_KEY"] diff --git a/compute_api_client/docs/ResultsApi.md b/compute_api_client/docs/ResultsApi.md index 298b8ec..6dab1f8 100644 --- a/compute_api_client/docs/ResultsApi.md +++ b/compute_api_client/docs/ResultsApi.md @@ -176,7 +176,7 @@ Get result by ID. ### Example -* Api Key Authentication (user_bearer): +* OAuth Authentication (user_bearer): * Api Key Authentication (user): ```python import time @@ -197,11 +197,7 @@ configuration = compute_api_client.Configuration( # Examples for each auth method are provided below, use the example that # satisfies your auth use case. -# Configure API key authorization: user_bearer -configuration.api_key['user_bearer'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['user_bearer'] = 'Bearer' +configuration.access_token = os.environ["ACCESS_TOKEN"] # Configure API key authorization: user configuration.api_key['user'] = os.environ["API_KEY"] @@ -263,7 +259,7 @@ Get results by job ID. ### Example -* Api Key Authentication (user_bearer): +* OAuth Authentication (user_bearer): * Api Key Authentication (user): ```python import time @@ -284,11 +280,7 @@ configuration = compute_api_client.Configuration( # Examples for each auth method are provided below, use the example that # satisfies your auth use case. -# Configure API key authorization: user_bearer -configuration.api_key['user_bearer'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['user_bearer'] = 'Bearer' +configuration.access_token = os.environ["ACCESS_TOKEN"] # Configure API key authorization: user configuration.api_key['user'] = os.environ["API_KEY"] diff --git a/compute_api_client/docs/TeamsApi.md b/compute_api_client/docs/TeamsApi.md index 09856fb..2eb1c77 100644 --- a/compute_api_client/docs/TeamsApi.md +++ b/compute_api_client/docs/TeamsApi.md @@ -17,7 +17,7 @@ Get team by ID. ### Example -* Api Key Authentication (user_bearer): +* OAuth Authentication (user_bearer): * Api Key Authentication (user): ```python import time @@ -38,11 +38,7 @@ configuration = compute_api_client.Configuration( # Examples for each auth method are provided below, use the example that # satisfies your auth use case. -# Configure API key authorization: user_bearer -configuration.api_key['user_bearer'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['user_bearer'] = 'Bearer' +configuration.access_token = os.environ["ACCESS_TOKEN"] # Configure API key authorization: user configuration.api_key['user'] = os.environ["API_KEY"] @@ -104,7 +100,7 @@ Read teams. ### Example -* Api Key Authentication (user_bearer): +* OAuth Authentication (user_bearer): * Api Key Authentication (user): ```python import time @@ -125,11 +121,7 @@ configuration = compute_api_client.Configuration( # Examples for each auth method are provided below, use the example that # satisfies your auth use case. -# Configure API key authorization: user_bearer -configuration.api_key['user_bearer'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['user_bearer'] = 'Bearer' +configuration.access_token = os.environ["ACCESS_TOKEN"] # Configure API key authorization: user configuration.api_key['user'] = os.environ["API_KEY"] diff --git a/compute_api_client/docs/TransactionsApi.md b/compute_api_client/docs/TransactionsApi.md index 8d9f5c2..2a9797e 100644 --- a/compute_api_client/docs/TransactionsApi.md +++ b/compute_api_client/docs/TransactionsApi.md @@ -17,7 +17,7 @@ Get transaction by ID. ### Example -* Api Key Authentication (user_bearer): +* OAuth Authentication (user_bearer): * Api Key Authentication (user): ```python import time @@ -38,11 +38,7 @@ configuration = compute_api_client.Configuration( # Examples for each auth method are provided below, use the example that # satisfies your auth use case. -# Configure API key authorization: user_bearer -configuration.api_key['user_bearer'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['user_bearer'] = 'Bearer' +configuration.access_token = os.environ["ACCESS_TOKEN"] # Configure API key authorization: user configuration.api_key['user'] = os.environ["API_KEY"] @@ -104,7 +100,7 @@ Read transactions. ### Example -* Api Key Authentication (user_bearer): +* OAuth Authentication (user_bearer): * Api Key Authentication (user): ```python import time @@ -126,11 +122,7 @@ configuration = compute_api_client.Configuration( # Examples for each auth method are provided below, use the example that # satisfies your auth use case. -# Configure API key authorization: user_bearer -configuration.api_key['user_bearer'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['user_bearer'] = 'Bearer' +configuration.access_token = os.environ["ACCESS_TOKEN"] # Configure API key authorization: user configuration.api_key['user'] = os.environ["API_KEY"] diff --git a/compute_api_client/docs/UsersApi.md b/compute_api_client/docs/UsersApi.md index fa08b33..90a01ab 100644 --- a/compute_api_client/docs/UsersApi.md +++ b/compute_api_client/docs/UsersApi.md @@ -19,7 +19,7 @@ Create new user. ### Example -* Api Key Authentication (user_bearer): +* OAuth Authentication (user_bearer): * Api Key Authentication (user): ```python import time @@ -41,11 +41,7 @@ configuration = compute_api_client.Configuration( # Examples for each auth method are provided below, use the example that # satisfies your auth use case. -# Configure API key authorization: user_bearer -configuration.api_key['user_bearer'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['user_bearer'] = 'Bearer' +configuration.access_token = os.environ["ACCESS_TOKEN"] # Configure API key authorization: user configuration.api_key['user'] = os.environ["API_KEY"] @@ -106,7 +102,7 @@ Delete a user. ### Example -* Api Key Authentication (user_bearer): +* OAuth Authentication (user_bearer): * Api Key Authentication (user): ```python import time @@ -126,11 +122,7 @@ configuration = compute_api_client.Configuration( # Examples for each auth method are provided below, use the example that # satisfies your auth use case. -# Configure API key authorization: user_bearer -configuration.api_key['user_bearer'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['user_bearer'] = 'Bearer' +configuration.access_token = os.environ["ACCESS_TOKEN"] # Configure API key authorization: user configuration.api_key['user'] = os.environ["API_KEY"] @@ -190,7 +182,7 @@ Get user by ID. ### Example -* Api Key Authentication (user_bearer): +* OAuth Authentication (user_bearer): * Api Key Authentication (user): ```python import time @@ -211,11 +203,7 @@ configuration = compute_api_client.Configuration( # Examples for each auth method are provided below, use the example that # satisfies your auth use case. -# Configure API key authorization: user_bearer -configuration.api_key['user_bearer'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['user_bearer'] = 'Bearer' +configuration.access_token = os.environ["ACCESS_TOKEN"] # Configure API key authorization: user configuration.api_key['user'] = os.environ["API_KEY"] @@ -277,7 +265,7 @@ Read users. ### Example -* Api Key Authentication (user_bearer): +* OAuth Authentication (user_bearer): * Api Key Authentication (user): ```python import time @@ -298,11 +286,7 @@ configuration = compute_api_client.Configuration( # Examples for each auth method are provided below, use the example that # satisfies your auth use case. -# Configure API key authorization: user_bearer -configuration.api_key['user_bearer'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['user_bearer'] = 'Bearer' +configuration.access_token = os.environ["ACCESS_TOKEN"] # Configure API key authorization: user configuration.api_key['user'] = os.environ["API_KEY"] diff --git a/pyproject.toml b/pyproject.toml index cd006f7..7ae1782 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "qi-compute-api-client" -version = "0.26.0" +version = "0.27.0" description = "An API client for the Compute Job Manager of Quantum Inspire." license = "Apache-2.0" authors = ["Quantum Inspire "]