class Azure::Batch::Mgmt::V2019_04_01::Models::CertificateCreateOrUpdateParameters

Contains information about a certificate.

Attributes

data[RW]

@return [String] The base64-encoded contents of the certificate. The maximum size is 10KB.

format[RW]

@return [CertificateFormat] The format of the certificate - either Pfx or Cer. If omitted, the default is Pfx. Possible values include: 'Pfx', 'Cer'

password[RW]

@return [String] The password to access the certificate's private key. This is required if the certificate format is pfx and must be omitted if the certificate format is cer.

thumbprint[RW]

@return [String] The thumbprint of the certificate. This must match the thumbprint from the name.

thumbprint_algorithm[RW]

@return [String] The algorithm of the certificate thumbprint. This must match the first portion of the certificate name. Currently required to be 'SHA1'.

Public Class Methods

mapper() click to toggle source

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

# File lib/2019-04-01/generated/azure_mgmt_batch/models/certificate_create_or_update_parameters.rb, line 43
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'CertificateCreateOrUpdateParameters',
    type: {
      name: 'Composite',
      class_name: 'CertificateCreateOrUpdateParameters',
      model_properties: {
        id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        type: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        etag: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'etag',
          type: {
            name: 'String'
          }
        },
        thumbprint_algorithm: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.thumbprintAlgorithm',
          type: {
            name: 'String'
          }
        },
        thumbprint: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.thumbprint',
          type: {
            name: 'String'
          }
        },
        format: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.format',
          type: {
            name: 'Enum',
            module: 'CertificateFormat'
          }
        },
        data: {
          client_side_validation: true,
          required: true,
          serialized_name: 'properties.data',
          type: {
            name: 'String'
          }
        },
        password: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.password',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end