class Azure::Scheduler::Mgmt::V2016_03_01::Models::HttpRequest

Model object.

Attributes

authentication[RW]

@return [HttpAuthentication] Gets or sets the authentication method of the request.

body[RW]

@return [String] Gets or sets the request body.

headers[RW]

@return [Hash{String => String}] Gets or sets the headers.

method[RW]

@return [String] Gets or sets the method of the request.

uri[RW]

@return [String] Gets or sets the URI of the request.

Private Class Methods

mapper() click to toggle source

Mapper for HttpRequest class as Ruby Hash. This will be used for serialization/deserialization.

# File lib/2016-03-01/generated/azure_mgmt_scheduler/models/http_request.rb, line 37
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'HttpRequest',
    type: {
      name: 'Composite',
      class_name: 'HttpRequest',
      model_properties: {
        authentication: {
          client_side_validation: true,
          required: false,
          serialized_name: 'authentication',
          type: {
            name: 'Composite',
            polymorphic_discriminator: 'type',
            uber_parent: 'HttpAuthentication',
            class_name: 'HttpAuthentication'
          }
        },
        uri: {
          client_side_validation: true,
          required: false,
          serialized_name: 'uri',
          type: {
            name: 'String'
          }
        },
        method: {
          client_side_validation: true,
          required: false,
          serialized_name: 'method',
          type: {
            name: 'String'
          }
        },
        body: {
          client_side_validation: true,
          required: false,
          serialized_name: 'body',
          type: {
            name: 'String'
          }
        },
        headers: {
          client_side_validation: true,
          required: false,
          serialized_name: 'headers',
          type: {
            name: 'Dictionary',
            value: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        }
      }
    }
  }
end