Current section
Files
Jump to
Current section
Files
lib/google_api/eventarc/v1/model/message_bus.ex
# 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.Eventarc.V1.Model.MessageBus do
@moduledoc """
MessageBus for the messages flowing through the system. The admin has visibility and control over the messages being published and consumed and can restrict publishers and subscribers to only a subset of data available in the system by defining authorization policies.
## Attributes
* `annotations` (*type:* `map()`, *default:* `nil`) - Optional. Resource annotations.
* `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The creation time.
* `cryptoKeyName` (*type:* `String.t`, *default:* `nil`) - Optional. Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt their event data. It must match the pattern `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
* `displayName` (*type:* `String.t`, *default:* `nil`) - Optional. Resource display name.
* `etag` (*type:* `String.t`, *default:* `nil`) - Output only. This checksum is computed by the server based on the value of other fields, and might be sent only on update and delete requests to ensure that the client has an up-to-date value before proceeding.
* `labels` (*type:* `map()`, *default:* `nil`) - Optional. Resource labels.
* `loggingConfig` (*type:* `GoogleApi.Eventarc.V1.Model.LoggingConfig.t`, *default:* `nil`) - Optional. Config to control Platform logging for the Message Bus. This log configuration is applied to the Message Bus itself, and all the Enrollments attached to it.
* `name` (*type:* `String.t`, *default:* `nil`) - Identifier. Resource name of the form projects/{project}/locations/{location}/messageBuses/{message_bus}
* `uid` (*type:* `String.t`, *default:* `nil`) - Output only. Server assigned unique identifier for the channel. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.
* `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The last-modified time.
"""
use GoogleApi.Gax.ModelBase
@type t :: %__MODULE__{
:annotations => map() | nil,
:createTime => DateTime.t() | nil,
:cryptoKeyName => String.t() | nil,
:displayName => String.t() | nil,
:etag => String.t() | nil,
:labels => map() | nil,
:loggingConfig => GoogleApi.Eventarc.V1.Model.LoggingConfig.t() | nil,
:name => String.t() | nil,
:uid => String.t() | nil,
:updateTime => DateTime.t() | nil
}
field(:annotations, type: :map)
field(:createTime, as: DateTime)
field(:cryptoKeyName)
field(:displayName)
field(:etag)
field(:labels, type: :map)
field(:loggingConfig, as: GoogleApi.Eventarc.V1.Model.LoggingConfig)
field(:name)
field(:uid)
field(:updateTime, as: DateTime)
end
defimpl Poison.Decoder, for: GoogleApi.Eventarc.V1.Model.MessageBus do
def decode(value, options) do
GoogleApi.Eventarc.V1.Model.MessageBus.decode(value, options)
end
end
defimpl Poison.Encoder, for: GoogleApi.Eventarc.V1.Model.MessageBus do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end