Class: Azure::ApiManagement::Mgmt::V2016_07_07::Models::BackendContract

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2016-07-07/generated/azure_mgmt_api_management/models/backend_contract.rb

Overview

Parameters supplied to the Create Backend operation.

Direct Known Subclasses

BackendResponse

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#hostString

without a port or suffix, for example backend.contoso.com. Must not be empty.

Returns:

  • (String)

    Host attribute of the backend. Host is a pure hostname



18
19
20
# File 'lib/2016-07-07/generated/azure_mgmt_api_management/models/backend_contract.rb', line 18

def host
  @host
end

#skip_certificate_chain_validationBoolean

validation should be skipped when using self-signed certificates for this backend host. Default value: false .

Returns:

  • (Boolean)

    Flag indicating whether SSL certificate chain



23
24
25
# File 'lib/2016-07-07/generated/azure_mgmt_api_management/models/backend_contract.rb', line 23

def skip_certificate_chain_validation
  @skip_certificate_chain_validation
end

Class Method Details

.mapperObject

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



30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# File 'lib/2016-07-07/generated/azure_mgmt_api_management/models/backend_contract.rb', line 30

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'BackendContract',
    type: {
      name: 'Composite',
      class_name: 'BackendContract',
      model_properties: {
        host: {
          client_side_validation: true,
          required: true,
          serialized_name: 'host',
          constraints: {
            MaxLength: 255,
            MinLength: 1
          },
          type: {
            name: 'String'
          }
        },
        skip_certificate_chain_validation: {
          client_side_validation: true,
          required: false,
          serialized_name: 'skipCertificateChainValidation',
          default_value: false,
          type: {
            name: 'Boolean'
          }
        }
      }
    }
  }
end