# here-data-publish-v2-client
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: 2.0.1
- Package version: 1.2.112
- Build package: org.openapitools.codegen.languages.PythonClientCodegen

## Requirements.

Python >= 3.6

## Installation & Usage
### pip install

If the python package is hosted on a repository, you can install directly using:

```sh
pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
```
(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git`)

Then import the package:
```python
import here_data_publish_v2_client
```

### Setuptools

Install via [Setuptools](http://pypi.python.org/pypi/setuptools).

```sh
python setup.py install --user
```
(or `sudo python setup.py install` to install the package for all users)

Then import the package:
```python
import here_data_publish_v2_client
```

## Getting Started

Please follow the [installation procedure](#installation--usage) and then run the following:

```python

import time
import here_data_publish_v2_client
from pprint import pprint
from here_data_publish_v2_client.api import publish_api
from here_data_publish_v2_client.model.publication import Publication
from here_data_publish_v2_client.model.publish_partitions import PublishPartitions
# Defining the host is optional and defaults to https://use.apilookup.for.a.base.url
# See configuration.py for a list of all supported configuration parameters.
configuration = here_data_publish_v2_client.Configuration(
    host = "https://use.apilookup.for.a.base.url"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization (JWT): Bearer
configuration = here_data_publish_v2_client.Configuration(
    access_token = 'YOUR_BEARER_TOKEN'
)


# Enter a context with an instance of the API client
with here_data_publish_v2_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = publish_api.PublishApi(api_client)
    publication_id = "publicationId_example" # str | The ID of the publication to cancel.
billing_tag = "billingTag_example" # str | Billing Tag is an optional free-form tag which is used for grouping billing records together. If supplied, it must be between 4 - 16 characters and contain only alphanumeric ASCII characters [A-Za-z0-9]. Grouping billing records by billing tag will be available in future releases. (optional)

    try:
        # Cancels a publication
        api_instance.cancel_publication(publication_id, billing_tag=billing_tag)
    except here_data_publish_v2_client.ApiException as e:
        print("Exception when calling PublishApi->cancel_publication: %s\n" % e)
```

## Documentation for API Endpoints

All URIs are relative to *https://use.apilookup.for.a.base.url*

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*PublishApi* | [**cancel_publication**](docs/PublishApi.md#cancel_publication) | **DELETE** /publications/{publicationId} | Cancels a publication
*PublishApi* | [**get_publication**](docs/PublishApi.md#get_publication) | **GET** /publications/{publicationId} | Gets a publication
*PublishApi* | [**init_publication**](docs/PublishApi.md#init_publication) | **POST** /publications | Initialize a new publication
*PublishApi* | [**submit_publication**](docs/PublishApi.md#submit_publication) | **PUT** /publications/{publicationId} | Submits a publication
*PublishApi* | [**upload_partitions**](docs/PublishApi.md#upload_partitions) | **POST** /layers/{layerId}/publications/{publicationId}/partitions | Upload partitions


## Documentation For Models

 - [Details](docs/Details.md)
 - [Publication](docs/Publication.md)
 - [PublishPartition](docs/PublishPartition.md)
 - [PublishPartitions](docs/PublishPartitions.md)
 - [VersionDependency](docs/VersionDependency.md)


## Documentation For Authorization


## Bearer

- **Type**: Bearer authentication (JWT)


## Author




## Notes for Large OpenAPI documents
If the OpenAPI document is large, imports in here_data_publish_v2_client.apis and here_data_publish_v2_client.models may fail with a
RecursionError indicating the maximum recursion limit has been exceeded. In that case, there are a couple of solutions:

Solution 1:
Use specific imports for apis and models like:
- `from here_data_publish_v2_client.api.default_api import DefaultApi`
- `from here_data_publish_v2_client.model.pet import Pet`

Solution 2:
Before importing the package, adjust the maximum recursion limit as shown below:
```
import sys
sys.setrecursionlimit(1500)
import here_data_publish_v2_client
from here_data_publish_v2_client.apis import *
from here_data_publish_v2_client.models import *
```

