# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # NOTE: This class is auto generated by the swagger code generator program. # https://github.com/swagger-api/swagger-codegen.git # Do not edit the class manually. defmodule GoogleApi.Discovery.V1.Model.RestDescription do @moduledoc """ ## Attributes - basePath (String.t): [DEPRECATED] The base path for REST requests. Defaults to: `null`. - parameters (%{optional(String.t) => JsonSchema}): Common parameters that apply across all apis. Defaults to: `null`. - auth (RestDescriptionAuth): Defaults to: `null`. - baseUrl (String.t): [DEPRECATED] The base URL for REST requests. Defaults to: `null`. - batchPath (String.t): The path for REST batch requests. Defaults to: `null`. - canonicalName (String.t): Indicates how the API name should be capitalized and split into various parts. Useful for generating pretty class names. Defaults to: `null`. - description (String.t): The description of this API. Defaults to: `null`. - discoveryVersion (String.t): Indicate the version of the Discovery API used to generate this doc. Defaults to: `null`. - documentationLink (String.t): A link to human readable documentation for the API. Defaults to: `null`. - etag (String.t): The ETag for this response. Defaults to: `null`. - exponentialBackoffDefault (boolean()): Enable exponential backoff for suitable methods in the generated clients. Defaults to: `null`. - features ([String.t]): A list of supported features for this API. Defaults to: `null`. - icons (DirectoryListIcons): Defaults to: `null`. - id (String.t): The ID of this API. Defaults to: `null`. - kind (String.t): The kind for this response. Defaults to: `null`. - labels ([String.t]): Labels for the status of this API, such as labs or deprecated. Defaults to: `null`. - methods (%{optional(String.t) => RestMethod}): API-level methods for this API. Defaults to: `null`. - name (String.t): The name of this API. Defaults to: `null`. - ownerDomain (String.t): The domain of the owner of this API. Together with the ownerName and a packagePath values, this can be used to generate a library for this API which would have a unique fully qualified name. Defaults to: `null`. - ownerName (String.t): The name of the owner of this API. See ownerDomain. Defaults to: `null`. - packagePath (String.t): The package of the owner of this API. See ownerDomain. Defaults to: `null`. - protocol (String.t): The protocol described by this document. Defaults to: `null`. - resources (%{optional(String.t) => RestResource}): The resources in this API. Defaults to: `null`. - revision (String.t): The version of this API. Defaults to: `null`. - rootUrl (String.t): The root URL under which all API services live. Defaults to: `null`. - schemas (%{optional(String.t) => JsonSchema}): The schemas for this API. Defaults to: `null`. - servicePath (String.t): The base path for all REST requests. Defaults to: `null`. - title (String.t): The title of this API. Defaults to: `null`. - version (String.t): The version of this API. Defaults to: `null`. - version_module (boolean()): Defaults to: `null`. """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ :basePath => any(), :parameters => map(), :auth => GoogleApi.Discovery.V1.Model.RestDescriptionAuth.t(), :baseUrl => any(), :batchPath => any(), :canonicalName => any(), :description => any(), :discoveryVersion => any(), :documentationLink => any(), :etag => any(), :exponentialBackoffDefault => any(), :features => list(any()), :icons => GoogleApi.Discovery.V1.Model.DirectoryListIcons.t(), :id => any(), :kind => any(), :labels => list(any()), :methods => map(), :name => any(), :ownerDomain => any(), :ownerName => any(), :packagePath => any(), :protocol => any(), :resources => map(), :revision => any(), :rootUrl => any(), :schemas => map(), :servicePath => any(), :title => any(), :version => any(), :version_module => any() } field(:basePath) field(:parameters, as: GoogleApi.Discovery.V1.Model.JsonSchema, type: :map) field(:auth, as: GoogleApi.Discovery.V1.Model.RestDescriptionAuth) field(:baseUrl) field(:batchPath) field(:canonicalName) field(:description) field(:discoveryVersion) field(:documentationLink) field(:etag) field(:exponentialBackoffDefault) field(:features, type: :list) field(:icons, as: GoogleApi.Discovery.V1.Model.DirectoryListIcons) field(:id) field(:kind) field(:labels, type: :list) field(:methods, as: GoogleApi.Discovery.V1.Model.RestMethod, type: :map) field(:name) field(:ownerDomain) field(:ownerName) field(:packagePath) field(:protocol) field(:resources, as: GoogleApi.Discovery.V1.Model.RestResource, type: :map) field(:revision) field(:rootUrl) field(:schemas, as: GoogleApi.Discovery.V1.Model.JsonSchema, type: :map) field(:servicePath) field(:title) field(:version) field(:version_module) end defimpl Poison.Decoder, for: GoogleApi.Discovery.V1.Model.RestDescription do def decode(value, options) do GoogleApi.Discovery.V1.Model.RestDescription.decode(value, options) end end defimpl Poison.Encoder, for: GoogleApi.Discovery.V1.Model.RestDescription do def encode(value, options) do GoogleApi.Gax.ModelBase.encode(value, options) end end