All Downloads are FREE. Search and download functionalities are using the official Maven repository.

template.python.ClientBuilderTemplate.vm Maven / Gradle / Ivy

Go to download

GAIA SDK is an open source software library in order to interact with the GAIA API.

The newest version!
from gaia_sdk.api.client_options import ClientOptions
from gaia_sdk.http.HttpTransporter import HttpTransporter
from gaia_sdk.graphql.#capitalize($name)Client import #capitalize($name)Client

#Class generated from template src/main/resources/template/python/ClientBuilderTemplate.vm

class #capitalize($name)HttpClientBuilder(object):

#tab(4)def __init__(self, url):
#tab(8)self.url = url

#tab(4)def with_credentials(self, credentials):
#tab(8)self.credentials = credentials
#tab(8)return self

#tab(4)def build(self):
#tab(8)return #capitalize($name)Client(HttpTransporter(self.url), ClientOptions(self.credentials))
#macro(capitalize $str)#*
    *#${str.substring(0, 1).toUpperCase()}${str.substring(1)}##
#end
#macro(tab $indent)#*
    *#${tab.invoke($indent)}##
#end
#macro(print $text)#*
    *#${print.invoke($text)}##
#end




© 2015 - 2025 Weber Informatics LLC | Privacy Policy