# 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.Datastream.V1.Model.ConnectionProfile do
@moduledoc """
A set of reusable connection configurations to be used as a source or destination for a stream.
## Attributes
* `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The create time of the resource.
* `displayName` (*type:* `String.t`, *default:* `nil`) - Required. Display name.
* `forwardSshConnectivity` (*type:* `GoogleApi.Datastream.V1.Model.ForwardSshTunnelConnectivity.t`, *default:* `nil`) - Forward SSH tunnel connectivity.
* `gcsProfile` (*type:* `GoogleApi.Datastream.V1.Model.GcsProfile.t`, *default:* `nil`) - Cloud Storage ConnectionProfile configuration.
* `labels` (*type:* `map()`, *default:* `nil`) - Labels.
* `mysqlProfile` (*type:* `GoogleApi.Datastream.V1.Model.MysqlProfile.t`, *default:* `nil`) - MySQL ConnectionProfile configuration.
* `name` (*type:* `String.t`, *default:* `nil`) - Output only. The resource's name.
* `oracleProfile` (*type:* `GoogleApi.Datastream.V1.Model.OracleProfile.t`, *default:* `nil`) - Oracle ConnectionProfile configuration.
* `privateConnectivity` (*type:* `GoogleApi.Datastream.V1.Model.PrivateConnectivity.t`, *default:* `nil`) - Private connectivity.
* `staticServiceIpConnectivity` (*type:* `GoogleApi.Datastream.V1.Model.StaticServiceIpConnectivity.t`, *default:* `nil`) - Static Service IP connectivity.
* `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The update time of the resource.
"""
use GoogleApi.Gax.ModelBase
@type t :: %__MODULE__{
:createTime => DateTime.t() | nil,
:displayName => String.t() | nil,
:forwardSshConnectivity =>
GoogleApi.Datastream.V1.Model.ForwardSshTunnelConnectivity.t() | nil,
:gcsProfile => GoogleApi.Datastream.V1.Model.GcsProfile.t() | nil,
:labels => map() | nil,
:mysqlProfile => GoogleApi.Datastream.V1.Model.MysqlProfile.t() | nil,
:name => String.t() | nil,
:oracleProfile => GoogleApi.Datastream.V1.Model.OracleProfile.t() | nil,
:privateConnectivity => GoogleApi.Datastream.V1.Model.PrivateConnectivity.t() | nil,
:staticServiceIpConnectivity =>
GoogleApi.Datastream.V1.Model.StaticServiceIpConnectivity.t() | nil,
:updateTime => DateTime.t() | nil
}
field(:createTime, as: DateTime)
field(:displayName)
field(:forwardSshConnectivity, as: GoogleApi.Datastream.V1.Model.ForwardSshTunnelConnectivity)
field(:gcsProfile, as: GoogleApi.Datastream.V1.Model.GcsProfile)
field(:labels, type: :map)
field(:mysqlProfile, as: GoogleApi.Datastream.V1.Model.MysqlProfile)
field(:name)
field(:oracleProfile, as: GoogleApi.Datastream.V1.Model.OracleProfile)
field(:privateConnectivity, as: GoogleApi.Datastream.V1.Model.PrivateConnectivity)
field(:staticServiceIpConnectivity,
as: GoogleApi.Datastream.V1.Model.StaticServiceIpConnectivity
)
field(:updateTime, as: DateTime)
end
defimpl Poison.Decoder, for: GoogleApi.Datastream.V1.Model.ConnectionProfile do
def decode(value, options) do
GoogleApi.Datastream.V1.Model.ConnectionProfile.decode(value, options)
end
end
defimpl Poison.Encoder, for: GoogleApi.Datastream.V1.Model.ConnectionProfile do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end