Skip to content

balena/elixir-google-gax

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GoogleApi.Gax

Google API Extensions for Elixir

Installation

If available in Hex, the package can be installed by adding google_gax to your list of dependencies in mix.exs:

def deps do
  [
    {:google_gax, "~> 0.1.1"}
  ]
end

Usage

This package is used to share common code between all of the Google Elixir client libraries.

GoogleApi.Gax.Connection

This module is used to set up client connection options:

defmodule MyConnection do
  use GoogleApi.Gax.Connection, scopes: ["https://example.com/read"], base_url: "https://api.example.com"
end

GoogleApi.Gax.ModelBase

This module is used to provide macros for helping to define your model structs:

defmodule Pet do
  use GoogleApi.Gax.ModelBase

  field(:id)
  field(:category, as: Category)
  field(:tags, as: Tag, type: :list)
end

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/google_gax.

About

Google API Extensions for Elixir

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages