# Copyright 2019 Google LLC
#
# 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 file is auto generated by the elixir code generator program.
# Do not edit this file manually.
defmodule GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1Datastore do
@moduledoc """
The data store defines the connection to export data repository (Cloud Storage, BigQuery), including the credentials used to access the data repository.
## Attributes
* `createTime` (*type:* `String.t`, *default:* `nil`) - Output only. Datastore create time, in milliseconds since the epoch of 1970-01-01T00:00:00Z
* `datastoreConfig` (*type:* `GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1DatastoreConfig.t`, *default:* `nil`) - Datastore Configurations.
* `displayName` (*type:* `String.t`, *default:* `nil`) - Required. Display name in UI
* `lastUpdateTime` (*type:* `String.t`, *default:* `nil`) - Output only. Datastore last update time, in milliseconds since the epoch of 1970-01-01T00:00:00Z
* `org` (*type:* `String.t`, *default:* `nil`) - Output only. Organization that the datastore belongs to
* `self` (*type:* `String.t`, *default:* `nil`) - Output only. Resource link of Datastore. Example: `/organizations/{org}/analytics/datastores/{uuid}`
* `targetType` (*type:* `String.t`, *default:* `nil`) - Destination storage type. Supported types `gcs` or `bigquery`.
"""
use GoogleApi.Gax.ModelBase
@type t :: %__MODULE__{
:createTime => String.t() | nil,
:datastoreConfig =>
GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1DatastoreConfig.t() | nil,
:displayName => String.t() | nil,
:lastUpdateTime => String.t() | nil,
:org => String.t() | nil,
:self => String.t() | nil,
:targetType => String.t() | nil
}
field(:createTime)
field(:datastoreConfig, as: GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1DatastoreConfig)
field(:displayName)
field(:lastUpdateTime)
field(:org)
field(:self)
field(:targetType)
end
defimpl Poison.Decoder, for: GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1Datastore do
def decode(value, options) do
GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1Datastore.decode(value, options)
end
end
defimpl Poison.Encoder, for: GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1Datastore do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end