Sha256: 9e19691e25301d6134a5f00d3da7ad06ce1b6603b3dc7bea03930d40de2dd901

Contents?: true

Size: 1.91 KB

Versions: 4

Compression:

Stored size: 1.91 KB

Contents

# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.

module Credentials
  module Models
    #
    # Model object.
    #
    #
    class WebhookContract
      # @return [String]
      attr_accessor :url

      # @return [Enum] Possible values include: 'Notification',
      # 'DelegatedEndorser', 'Zapier'
      attr_accessor :type

      # @return [Boolean]
      attr_accessor :enabled

      # @return [String]
      attr_accessor :id


      #
      # Mapper for WebhookContract class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'WebhookContract',
          type: {
            name: 'Composite',
            class_name: 'WebhookContract',
            model_properties: {
              url: {
                client_side_validation: true,
                required: false,
                serialized_name: 'url',
                type: {
                  name: 'String'
                }
              },
              type: {
                client_side_validation: true,
                required: false,
                serialized_name: 'type',
                type: {
                  name: 'String'
                }
              },
              enabled: {
                client_side_validation: true,
                required: false,
                serialized_name: 'enabled',
                type: {
                  name: 'Boolean'
                }
              },
              id: {
                client_side_validation: true,
                required: false,
                serialized_name: 'id',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
trinsic_service_clients-1.1.5018 lib/generated/credentials/models/webhook_contract.rb
trinsic_service_clients-1.1.4229 lib/generated/credentials/models/webhook_contract.rb
trinsic_service_clients-1.1.4228 lib/generated/credentials/models/webhook_contract.rb
trinsic_service_clients-0.0.0 lib/trinsic_service_clients/credentials/models/webhook_contract.rb