# 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::CDN::Mgmt::V2020_09_01
  module Models
    #
    # Defines the parameters for the origin group override action.
    #
    class OriginGroupOverrideActionParameters

      include MsRestAzure

      # @return [String] . Default value:
      # '#Microsoft.Azure.Cdn.Models.DeliveryRuleOriginGroupOverrideActionParameters'
      # .
      attr_accessor :odatatype

      # @return [ResourceReference] defines the OriginGroup that would override
      # the DefaultOriginGroup.
      attr_accessor :origin_group


      #
      # Mapper for OriginGroupOverrideActionParameters class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'OriginGroupOverrideActionParameters',
          type: {
            name: 'Composite',
            class_name: 'OriginGroupOverrideActionParameters',
            model_properties: {
              odatatype: {
                client_side_validation: true,
                required: true,
                is_constant: true,
                serialized_name: '@odata\\.type',
                default_value: '#Microsoft.Azure.Cdn.Models.DeliveryRuleOriginGroupOverrideActionParameters',
                type: {
                  name: 'String'
                }
              },
              origin_group: {
                client_side_validation: true,
                required: true,
                serialized_name: 'originGroup',
                type: {
                  name: 'Composite',
                  class_name: 'ResourceReference'
                }
              }
            }
          }
        }
      end
    end
  end
end
