Class: Azure::ARM::Web::Models::CsrProperties

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/azure_mgmt_web/models/csr_properties.rb

Overview

Model object.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#csr_stringString

Returns Actual CSR string created.

Returns:

  • (String)

    Actual CSR string created



22
23
24
# File 'lib/azure_mgmt_web/models/csr_properties.rb', line 22

def csr_string
  @csr_string
end

#distinguished_nameString

Returns Distinguished name of certificate to be created.

Returns:

  • (String)

    Distinguished name of certificate to be created



19
20
21
# File 'lib/azure_mgmt_web/models/csr_properties.rb', line 19

def distinguished_name
  @distinguished_name
end

#hosting_environmentString

Returns Hosting environment.

Returns:

  • (String)

    Hosting environment



34
35
36
# File 'lib/azure_mgmt_web/models/csr_properties.rb', line 34

def hosting_environment
  @hosting_environment
end

#nameString

Returns Name used to locate CSR object.

Returns:

  • (String)

    Name used to locate CSR object



16
17
18
# File 'lib/azure_mgmt_web/models/csr_properties.rb', line 16

def name
  @name
end

#passwordString

Returns PFX password.

Returns:

  • (String)

    PFX password



28
29
30
# File 'lib/azure_mgmt_web/models/csr_properties.rb', line 28

def password
  @password
end

#pfx_blobString

Returns PFX certifcate of created certificate.

Returns:

  • (String)

    PFX certifcate of created certificate



25
26
27
# File 'lib/azure_mgmt_web/models/csr_properties.rb', line 25

def pfx_blob
  @pfx_blob
end

#public_key_hashString

Returns Hash of the certificates public key.

Returns:

  • (String)

    Hash of the certificates public key



31
32
33
# File 'lib/azure_mgmt_web/models/csr_properties.rb', line 31

def public_key_hash
  @public_key_hash
end

Class Method Details

.deserialize_object(object) ⇒ CsrProperties

Deserializes given Ruby Hash into Model object.

Parameters:

  • object (Hash)

    Ruby Hash object to deserialize.

Returns:



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
# File 'lib/azure_mgmt_web/models/csr_properties.rb', line 81

def self.deserialize_object(object)
  return if object.nil?
  output_object = CsrProperties.new

  deserialized_property = object['name']
  output_object.name = deserialized_property

  deserialized_property = object['distinguishedName']
  output_object.distinguished_name = deserialized_property

  deserialized_property = object['csrString']
  output_object.csr_string = deserialized_property

  deserialized_property = object['pfxBlob']
  output_object.pfx_blob = deserialized_property

  deserialized_property = object['password']
  output_object.password = deserialized_property

  deserialized_property = object['publicKeyHash']
  output_object.public_key_hash = deserialized_property

  deserialized_property = object['hostingEnvironment']
  output_object.hosting_environment = deserialized_property

  output_object
end

.serialize_object(object) ⇒ Hash

Serializes given Model object into Ruby Hash.

Parameters:

  • object

    Model object to serialize.

Returns:

  • (Hash)

    Serialized object in form of Ruby Hash.



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
# File 'lib/azure_mgmt_web/models/csr_properties.rb', line 48

def self.serialize_object(object)
  object.validate
  output_object = {}

  serialized_property = object.name
  output_object['name'] = serialized_property unless serialized_property.nil?

  serialized_property = object.distinguished_name
  output_object['distinguishedName'] = serialized_property unless serialized_property.nil?

  serialized_property = object.csr_string
  output_object['csrString'] = serialized_property unless serialized_property.nil?

  serialized_property = object.pfx_blob
  output_object['pfxBlob'] = serialized_property unless serialized_property.nil?

  serialized_property = object.password
  output_object['password'] = serialized_property unless serialized_property.nil?

  serialized_property = object.public_key_hash
  output_object['publicKeyHash'] = serialized_property unless serialized_property.nil?

  serialized_property = object.hosting_environment
  output_object['hostingEnvironment'] = serialized_property unless serialized_property.nil?

  output_object
end

Instance Method Details

#validateObject

Validate the object. Throws ValidationError if validation fails.



39
40
41
# File 'lib/azure_mgmt_web/models/csr_properties.rb', line 39

def validate
  # Nothing to validate
end