Class: Azure::Batch::Mgmt::V2019_08_01::Models::CertificateCreateOrUpdateParameters

Inherits:
ProxyResource
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2019-08-01/generated/azure_mgmt_batch/models/certificate_create_or_update_parameters.rb

Overview

Contains information about a certificate.

Instance Attribute Summary collapse

Attributes inherited from ProxyResource

#etag, #id, #name, #type

Class Method Summary collapse

Instance Attribute Details

#dataString

maximum size is 10KB.

Returns:

  • (String)

    The base64-encoded contents of the certificate. The



31
32
33
# File 'lib/2019-08-01/generated/azure_mgmt_batch/models/certificate_create_or_update_parameters.rb', line 31

def data
  @data
end

#formatCertificateFormat

or Cer. If omitted, the default is Pfx. Possible values include: ‘Pfx’, ‘Cer’

Returns:



27
28
29
# File 'lib/2019-08-01/generated/azure_mgmt_batch/models/certificate_create_or_update_parameters.rb', line 27

def format
  @format
end

#passwordString

This is required if the certificate format is pfx and must be omitted if the certificate format is cer.

Returns:

  • (String)

    The password to access the certificate’s private key.



36
37
38
# File 'lib/2019-08-01/generated/azure_mgmt_batch/models/certificate_create_or_update_parameters.rb', line 36

def password
  @password
end

#thumbprintString

thumbprint from the name.

Returns:

  • (String)

    The thumbprint of the certificate. This must match the



22
23
24
# File 'lib/2019-08-01/generated/azure_mgmt_batch/models/certificate_create_or_update_parameters.rb', line 22

def thumbprint
  @thumbprint
end

#thumbprint_algorithmString

match the first portion of the certificate name. Currently required to be ‘SHA1’.

Returns:

  • (String)

    The algorithm of the certificate thumbprint. This must



18
19
20
# File 'lib/2019-08-01/generated/azure_mgmt_batch/models/certificate_create_or_update_parameters.rb', line 18

def thumbprint_algorithm
  @thumbprint_algorithm
end

Class Method Details

.mapperObject

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



43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
# File 'lib/2019-08-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