Categorygithub.com/prolicht-dev/avaclient-go
modulepackage
0.0.4
Repository: https://github.com/prolicht-dev/avaclient-go.git
Documentation: pkg.go.dev

# README

Go API client for avaclient

Build Status

AVACloud API specification

Overview

This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

  • API version: 1.16.0
  • Package version: 1.16.0
  • Build package: org.openapitools.codegen.languages.GoClientCodegen

Installation

Install the following dependencies:

go get github.com/stretchr/testify/assert
go get golang.org/x/oauth2
go get golang.org/x/net/context
go get github.com/antihax/optional

Put the package under your project folder and add the following in import:

import "./avaclient"

Documentation for API Endpoints

All URIs are relative to https://avacloud-api.dangl-it.com

ClassMethodHTTP requestDescription
AslvConversionApiAslvConversionConvertToAvaPost /conversion/aslv/avaConverts Aslv files to Dangl.AVA projects
AslvConversionApiAslvConversionConvertToExcelPost /conversion/aslv/excelConverts Aslv files to Excel
AslvConversionApiAslvConversionConvertToGaebPost /conversion/aslv/gaebConverts Aslv files to GAEB files
AslvConversionApiAslvConversionConvertToOenormPost /conversion/aslv/oenormConverts Aslv files to Oenorm files
AvaConversionApiAvaConversionConvertToAvaPost /conversion/ava/avaConverts Dangl.AVA projects to Dangl.AVA. This is useful when you want to generate the calculated properties.
AvaConversionApiAvaConversionConvertToExcelPost /conversion/ava/excelConverts Dangl.AVA projects to Excel
AvaConversionApiAvaConversionConvertToGaebPost /conversion/ava/gaebConverts Dangl.AVA projects to GAEB
AvaConversionApiAvaConversionConvertToOenormPost /conversion/ava/oenormConverts Dangl.AVA projects to Oenorm
AvaConversionApiAvaConversionConvertToRebPost /conversion/ava/rebConverts Dangl.AVA projects to REB
AvaConversionApiAvaConversionConvertToSiaPost /conversion/ava/siaConverts Dangl.AVA projects to SIA 451
DanglIdentityApiDanglIdentityLoginAndReturnTokenPost /identity/token-login
DanglIdentityApiDanglIdentityLoginWithCookiePost /identity/login
DanglIdentityApiDanglIdentityRefreshTokenPost /identity/token-refresh
DanglIdentityApiDanglIdentityRegisterPost /identity/register
DanglIdentityApiDanglIdentityRequestPasswordResetPost /identity/password-forgotten
DanglIdentityApiDanglIdentitySignOutWithSignInManagerDelete /identity/login
ExcelConversionApiExcelConversionConvertToAvaPost /conversion/excel/avaConverts Excel files to Dangl.AVA projects.
ExcelConversionApiExcelConversionConvertToExcelPost /conversion/excel/excelConverts Excel files to Excel files. Used, for example, when elements were added in excel to generate or modify a project. The Excel file can then be shared containing the full project with all formattings, formulas and styles applied.
ExcelConversionApiExcelConversionConvertToGaebPost /conversion/excel/gaebConverts Excel files to GAEB files.
ExcelConversionApiExcelConversionConvertToOenormPost /conversion/excel/oenormConverts Excel files to Oenorm files.
GaebConversionApiGaebConversionConvertToAvaPost /conversion/gaeb/avaConverts GAEB files to Dangl.AVA projects
GaebConversionApiGaebConversionConvertToExcelPost /conversion/gaeb/excelConverts GAEB files to Excel
GaebConversionApiGaebConversionConvertToGaebPost /conversion/gaeb/gaebConverts GAEB files to GAEB files. Used for example when transforming or repairing GAEB files.
GaebConversionApiGaebConversionConvertToOenormPost /conversion/gaeb/oenormConverts GAEB files to Oenorm files
OenormConversionApiOenormConversionConvertToAvaPost /conversion/oenorm/avaConverts ÖNorm files to Dangl.AVA projects
OenormConversionApiOenormConversionConvertToExcelPost /conversion/oenorm/excelConverts ÖNorm files to Excel
OenormConversionApiOenormConversionConvertToGaebPost /conversion/oenorm/gaebConverts ÖNorm files to GAEB files.
OenormConversionApiOenormConversionConvertToOenormPost /conversion/oenorm/oenormConverts ÖNorm files to Oenorm files.
RebConversionApiRebConversionConvertToAvaPost /conversion/reb/avaConverts REB files to Dangl.AVA projects
RebConversionApiRebConversionConvertToExcelPost /conversion/reb/excelConverts REB files to Excel
RebConversionApiRebConversionConvertToGaebPost /conversion/reb/gaebConverts REB files to GAEB files
RebConversionApiRebConversionConvertToOenormPost /conversion/reb/oenormConverts REB files to Oenorm
SiaConversionApiSiaConversionConvertToAvaPost /conversion/sia/avaConverts SIA 451 files to Dangl.AVA projects
SiaConversionApiSiaConversionConvertToExcelPost /conversion/sia/excelConverts SIA 451 files to Excel
SiaConversionApiSiaConversionConvertToGaebPost /conversion/sia/gaebConverts SIA 451 files to GAEB files
SiaConversionApiSiaConversionConvertToOenormPost /conversion/sia/oenormConverts SIA 451 files to Oenorm files
StatusApiStatusGetStatusGet /statusReports the health status of the AVACloud API

Documentation For Models

Documentation For Authorization

Dangl.Identity

Example

auth := context.WithValue(context.Background(), sw.ContextAccessToken, "ACCESSTOKENSTRING")
r, err := client.Service.Operation(auth, args)

Or via OAuth2 module to automatically refresh tokens and perform user authentication.

import "golang.org/x/oauth2"

/* Perform OAuth2 round trip request and obtain a token */

tokenSource := oauth2cfg.TokenSource(createContext(httpClient), &token)
auth := context.WithValue(oauth2.NoContext, sw.ContextOAuth2, tokenSource)
r, err := client.Service.Operation(auth, args)

Author

# Packages

No description provided by the author

# Functions

CacheExpires helper function to determine remaining time before repeating a request.
NewAPIClient creates a new API client.
NewAPIResponse returns a new APIResonse object.
NewAPIResponseWithError returns a new APIResponse object with the provided error message.
NewConfiguration returns a new Configuration object.
NewCustomToken retrieves a token from the auth endpoint.
NewToken retrieves a token from the default auth endpoint.

# Constants

List of AdditionTypeDto.
List of AdditionTypeDto.
List of AdditionTypeDto.
List of AwardTypeDto.
List of AwardTypeDto.
List of AwardTypeDto.
List of AwardTypeDto.
List of AwardTypeDto.
List of AwardTypeDto.
List of AwardTypeDto.
List of AwardTypeDto.
List of AwardTypeDto.
List of AwardTypeDto.
List of AwardTypeDto.
List of CatalogueTypeDto.
List of CatalogueTypeDto.
List of CatalogueTypeDto.
List of CatalogueTypeDto.
List of CatalogueTypeDto.
List of ComissionStatusDto.
List of ComissionStatusDto.
List of ComissionStatusDto.
List of ComissionStatusDto.
List of DestinationGaebExchangePhase.
List of DestinationGaebExchangePhase.
List of DestinationGaebExchangePhase.
List of DestinationGaebExchangePhase.
List of DestinationGaebExchangePhase.
List of DestinationGaebExchangePhase.
List of DestinationGaebExchangePhase.
List of DestinationGaebType.
List of DestinationGaebType.
List of DestinationGaebType.
List of DestinationGaebType.
List of DestinationGaebType.
List of DestinationGaebType.
List of DestinationGaebType.
List of DestinationGaebType.
List of DestinationOenormType.
List of DestinationOenormType.
List of DurationUnitDto.
List of DurationUnitDto.
List of ExchangePhaseDto.
List of ExchangePhaseDto.
List of ExchangePhaseDto.
List of ExchangePhaseDto.
List of ExchangePhaseDto.
List of ExchangePhaseDto.
List of ExchangePhaseDto.
List of HttpStatusCode.
List of HttpStatusCode.
List of HttpStatusCode.
List of HttpStatusCode.
List of HttpStatusCode.
List of HttpStatusCode.
List of HttpStatusCode.
List of HttpStatusCode.
List of HttpStatusCode.
List of HttpStatusCode.
List of HttpStatusCode.
List of HttpStatusCode.
List of HttpStatusCode.
List of HttpStatusCode.
List of HttpStatusCode.
List of HttpStatusCode.
List of HttpStatusCode.
List of HttpStatusCode.
List of HttpStatusCode.
List of HttpStatusCode.
List of HttpStatusCode.
List of HttpStatusCode.
List of HttpStatusCode.
List of HttpStatusCode.
List of HttpStatusCode.
List of HttpStatusCode.
List of HttpStatusCode.
List of HttpStatusCode.
List of HttpStatusCode.
List of HttpStatusCode.
List of HttpStatusCode.
List of HttpStatusCode.
List of HttpStatusCode.
List of HttpStatusCode.
List of HttpStatusCode.
List of HttpStatusCode.
List of HttpStatusCode.
List of HttpStatusCode.
List of HttpStatusCode.
List of HttpStatusCode.
List of HttpStatusCode.
List of HttpStatusCode.
List of HttpStatusCode.
List of HttpStatusCode.
List of HttpStatusCode.
List of HttpStatusCode.
List of HttpStatusCode.
List of HttpStatusCode.
List of HttpStatusCode.
List of HttpStatusCode.
List of HttpStatusCode.
List of HttpStatusCode.
List of HttpStatusCode.
List of HttpStatusCode.
List of HttpStatusCode.
List of HttpStatusCode.
List of HttpStatusCode.
List of HttpStatusCode.
List of HttpStatusCode.
List of HttpStatusCode.
List of HttpStatusCode.
List of ItemNumberSchemaTierTypeDto.
List of ItemNumberSchemaTierTypeDto.
List of ItemNumberSchemaTierTypeDto.
List of ItemNumberSchemaTierTypeDto.
List of ItemNumberSchemaTierTypeDto.
List of ItemNumberTypeDto.
List of ItemNumberTypeDto.
List of OriginDto.
List of OriginDto.
List of OriginDto.
List of OriginDto.
List of OriginDto.
List of OriginDto.
List of OriginDto.
List of PositionTypeDto.
List of PositionTypeDto.
List of PositionTypeDto.
List of PriceRoundingModeDto.
List of PriceRoundingModeDto.
List of PriceRoundingModeDto.
List of PriceTypeDto.
List of PriceTypeDto.
List of ResponseErrorType.
List of ResponseErrorType.
List of ResponseErrorType.
List of ResponseErrorType.
List of ResponseErrorType.
List of ServiceTypeDto.
List of ServiceTypeDto.
List of SpecialAwardKindDto.
List of SpecialAwardKindDto.
List of SpecialAwardKindDto.
List of SpecialAwardKindDto.
List of StandardReferenceTypeDto.
List of StandardReferenceTypeDto.
List of StandardReferenceTypeDto.
List of StandardReferenceTypeDto.

# Variables

ContextAccessToken takes a string oauth2 access token as authentication for the request.
ContextAPIKey takes an APIKey as authentication for the request.
ContextBasicAuth takes BasicAuth as authentication for the request.
ContextOAuth2 takes an oauth2.TokenSource as authentication for the request.

# Structs

APIClient manages communication with the AVACloud API 1.16.0 API v1.16.0 In most cases there should be only one, shared, APIClient.
ApiError Data transfer class to convey api errors.
APIKey provides API key based authentication to a request passed via context using ContextAPIKey.
APIResponse stores the API response returned by the server.
ArticleDataDto This class represents a single article, usually used within ProductData.
AslvConversionConvertToAvaOpts Optional parameters for the method 'AslvConversionConvertToAva'.
AslvConversionConvertToExcelOpts Optional parameters for the method 'AslvConversionConvertToExcel'.
AslvConversionConvertToGaebOpts Optional parameters for the method 'AslvConversionConvertToGaeb'.
AslvConversionConvertToOenormOpts Optional parameters for the method 'AslvConversionConvertToOenorm'.
AvaConversionConvertToAvaOpts Optional parameters for the method 'AvaConversionConvertToAva'.
AvaConversionConvertToExcelOpts Optional parameters for the method 'AvaConversionConvertToExcel'.
AvaConversionConvertToGaebOpts Optional parameters for the method 'AvaConversionConvertToGaeb'.
AvaConversionConvertToOenormOpts Optional parameters for the method 'AvaConversionConvertToOenorm'.
BankingInformationDto This is a class that represents the information about a bank connection.
BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth.
CalculationDto This class holds means to calculate mathematical expressions from given strings.
CatalogueDto This class describes an external catalogue.
CatalogueReferenceDto This class is used to link data between catalogues and objects.
CommercePropertiesDto This class holds specialized information that is relevant to trade or commerce based data exchange scenarios, e.g.
ComplementedByQuantityDto This class represents the linking to a complementary position with a specific quantity set.
Configuration stores the configuration of the API client.
DanglIdentityLoginWithCookieOpts Optional parameters for the method 'DanglIdentityLoginWithCookie'.
DanglToken represents a DanglIT auth token.
ExcelConversionConvertToAvaOpts Optional parameters for the method 'ExcelConversionConvertToAva'.
ExcelConversionConvertToExcelOpts Optional parameters for the method 'ExcelConversionConvertToExcel'.
ExcelConversionConvertToGaebOpts Optional parameters for the method 'ExcelConversionConvertToGaeb'.
ExcelConversionConvertToOenormOpts Optional parameters for the method 'ExcelConversionConvertToOenorm'.
ExecutionDescriptionDto struct for ExecutionDescriptionDto.
ExecutionDescriptionDtoAllOf An ExecutionDescription is used to give more details for certain items, especially on how they are meant to be executed.
ForgotPasswordPost struct for ForgotPasswordPost.
GaebConversionConvertToAvaOpts Optional parameters for the method 'GaebConversionConvertToAva'.
GaebConversionConvertToExcelOpts Optional parameters for the method 'GaebConversionConvertToExcel'.
GaebConversionConvertToGaebOpts Optional parameters for the method 'GaebConversionConvertToGaeb'.
GaebConversionConvertToOenormOpts Optional parameters for the method 'GaebConversionConvertToOenorm'.
GenericOpenAPIError Provides access to the body, error and model on returned errors.
GetStatus Indicates the status of the AVACloud service.
GrossPriceComponentDto This is used in an ElementContainerBase to hold the price composition.
No description provided by the author
ItemNumberDto This class represents as identifier of a certain service specification's element and is uniquely within the service specification.
ItemNumberSchemaDto The schema for ItemNumber's in a Project.
ItemNumberSchemaTierDto Represents information about a single Tier in an ItemNumber.
LabourPriceComponentDto Based on the PriceComponent, this class is responsible for labour time components.
LoginPost struct for LoginPost.
NoteTextDto struct for NoteTextDto.
NoteTextDtoAllOf Represents an element that holds text information.
OenormConversionConvertToAvaOpts Optional parameters for the method 'OenormConversionConvertToAva'.
OenormConversionConvertToExcelOpts Optional parameters for the method 'OenormConversionConvertToExcel'.
OenormConversionConvertToGaebOpts Optional parameters for the method 'OenormConversionConvertToGaeb'.
OenormConversionConvertToOenormOpts Optional parameters for the method 'OenormConversionConvertToOenorm'.
PartyInformationDto Represents information about a party (a site or an organization).
PositionDto struct for PositionDto.
PositionDtoAllOf A Position is the main item type in a ServiceSpecification, holding information about tasks to be done, their prices, description, amounts etc.
PriceComponentDto This class provides means to store information about a price and it's composition.
PriceInformationDto Holds global price information for a ServiceSpecification.
ProductDataDto This class represents data about products and their vendor.
ProjectDto A Project contains all relevant information for a construction project.
ProjectInformationDto General information about a Project.
QuantityAssignmentDto Quantity assignments are, in contrast to SubDescriptions, used to categorize parts of their parent Position.
RebConversionConvertToAvaOpts Optional parameters for the method 'RebConversionConvertToAva'.
RebConversionConvertToExcelOpts Optional parameters for the method 'RebConversionConvertToExcel'.
RebConversionConvertToGaebOpts Optional parameters for the method 'RebConversionConvertToGaeb'.
RebConversionConvertToOenormOpts Optional parameters for the method 'RebConversionConvertToOenorm'.
RegisterPost struct for RegisterPost.
ServerConfiguration stores the information about a server.
ServerVariable stores the information about a server variable.
ServiceSpecificationDto This is the base class that holds information about a whole service specification.
ServiceSpecificationGroupDto struct for ServiceSpecificationGroupDto.
ServiceSpecificationGroupDtoAllOf This is a grouping IElement that holds other IElements within.
SiaConversionConvertToAvaOpts Optional parameters for the method 'SiaConversionConvertToAva'.
SiaConversionConvertToExcelOpts Optional parameters for the method 'SiaConversionConvertToExcel'.
SiaConversionConvertToGaebOpts Optional parameters for the method 'SiaConversionConvertToGaeb'.
SiaConversionConvertToOenormOpts Optional parameters for the method 'SiaConversionConvertToOenorm'.
StandardizedDescriptionDto This class represents a standardized description.
StlbKeyDto This class represents a single key reference within the German STLB \"Standardleistungsbuch Bau\".
StlbReferenceDto This class represents a specialized reference to the German STLB \"Standardleistungsbuch Bau\".
SubDescriptionDto This is appended to a Position and is used to separate the complete Position into smaller amounts to be described separately, for example concrete walls could be attached to different building storeys.
TokenLoginPost struct for TokenLoginPost.
TokenRefreshPost struct for TokenRefreshPost.
TokenResponseGet struct for TokenResponseGet.
TradeDiscountDto This class holds information about offered trade discounts (Skonto in German).
WarrantyDurationDto This class does not represent a typical `TimeSpan` but has a scalar value int Duration and a DurationUnit Unit to represent durations as typically used in contracts, e.g.

# Interfaces

IElementDto Base interface definition for elements within an ElementContainerBase.

# Type aliases

AdditionTypeDto Indicates the origin of an element.
AslvConversionApiService AslvConversionApi service.
AvaConversionApiService AvaConversionApi service.
AwardTypeDto This enumeration describes the type of the award / procurement process.
CatalogueTypeDto This enumeration describes the type of a catalogue.
ComissionStatusDto Indicates if this service specification item is commissioned (and therefore should be executed), postponed for later or undefined.
DanglIdentityApiService DanglIdentityApi service.
DestinationGaebExchangePhase The GAEB exchange phase to transform to.
DestinationGaebType Represents valid GAEB target types.
DestinationOenormType Represents valid Oenorm target types.
DurationUnitDto This enumeration represents the unit of a duration.
ExcelConversionApiService ExcelConversionApi service.
ExchangePhaseDto Indicates a ServiceSpecification's exchange phase, based on the GAEB exchange phases.
GaebConversionApiService GaebConversionApi service.
HttpStatusCode.
ItemNumberSchemaTierTypeDto Specifies the type an ItemNumberSchemaTier represents.
ItemNumberTypeDto Determines the type of an ItemNumberSchema.
OenormConversionApiService OenormConversionApi service.
OriginDto Indicates where a service specification was originally created.
PositionTypeDto This is a classification for Position elements.
PriceRoundingModeDto This enum configures rounding modes for price calculations in projects.
PriceTypeDto This indicates the price type of a IPricedElement.
RebConversionApiService RebConversionApi service.
ResponseErrorType.
ServiceTypeDto The service type describes the type of service a Position represents.
SiaConversionApiService SiaConversionApi service.
SpecialAwardKindDto This enumeration describes awards for project that are not just a regular procurement.
StandardReferenceTypeDto This enumeration identifies a pre-known standard used for referencing standardized descriptions.
StatusApiService StatusApi service.