Sha256: 4f649ed71af10bb6208aa7323abc366a22f4f6bfdf77f99a3ce8f52bd1f3e46a

Contents?: true

Size: 1.82 KB

Versions: 2

Compression:

Stored size: 1.82 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 Azure::Resources2::Mgmt::V2019_10_01
  module Models
    #
    # The type of the pattern for an alias path.
    #
    class AliasPattern

      include MsRestAzure2

      # @return [String] The alias pattern phrase.
      attr_accessor :phrase

      # @return [String] The alias pattern variable.
      attr_accessor :variable

      # @return [AliasPatternType] The type of alias pattern. Possible values
      # include: 'NotSpecified', 'Extract'
      attr_accessor :type


      #
      # Mapper for AliasPattern class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'AliasPattern',
          type: {
            name: 'Composite',
            class_name: 'AliasPattern',
            model_properties: {
              phrase: {
                client_side_validation: true,
                required: false,
                serialized_name: 'phrase',
                type: {
                  name: 'String'
                }
              },
              variable: {
                client_side_validation: true,
                required: false,
                serialized_name: 'variable',
                type: {
                  name: 'String'
                }
              },
              type: {
                client_side_validation: true,
                required: false,
                serialized_name: 'type',
                type: {
                  name: 'Enum',
                  module: 'AliasPatternType'
                }
              }
            }
          }
        }
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
azure_mgmt_resources2-1.0.1 lib/2019-10-01/generated/azure_mgmt_resources2/models/alias_pattern.rb
azure_mgmt_resources2-1.0.0 lib/2019-10-01/generated/azure_mgmt_resources2/models/alias_pattern.rb