Class: Azure::Security::Mgmt::V2019_01_01_preview::Models::OnPremiseResourceDetails

Inherits:
ResourceDetails
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2019-01-01-preview/generated/azure_mgmt_security/models/on_premise_resource_details.rb

Overview

Details of the On Premise resource that was assessed

Direct Known Subclasses

OnPremiseSqlResourceDetails

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeOnPremiseResourceDetails

Returns a new instance of OnPremiseResourceDetails.



16
17
18
# File 'lib/2019-01-01-preview/generated/azure_mgmt_security/models/on_premise_resource_details.rb', line 16

def initialize
  @source = "OnPremise"
end

Instance Attribute Details

#machine_nameString

Returns The name of the machine.

Returns:

  • (String)

    The name of the machine



33
34
35
# File 'lib/2019-01-01-preview/generated/azure_mgmt_security/models/on_premise_resource_details.rb', line 33

def machine_name
  @machine_name
end

#sourceObject

Returns the value of attribute source.



20
21
22
# File 'lib/2019-01-01-preview/generated/azure_mgmt_security/models/on_premise_resource_details.rb', line 20

def source
  @source
end

#source_computer_idString

Returns The oms agent Id installed on the machine.

Returns:

  • (String)

    The oms agent Id installed on the machine



30
31
32
# File 'lib/2019-01-01-preview/generated/azure_mgmt_security/models/on_premise_resource_details.rb', line 30

def source_computer_id
  @source_computer_id
end

#vmuuidString

Returns The unique Id of the machine.

Returns:

  • (String)

    The unique Id of the machine



27
28
29
# File 'lib/2019-01-01-preview/generated/azure_mgmt_security/models/on_premise_resource_details.rb', line 27

def vmuuid
  @vmuuid
end

#workspace_idString

attached to

Returns:

  • (String)

    Azure resource Id of the workspace the machine is



24
25
26
# File 'lib/2019-01-01-preview/generated/azure_mgmt_security/models/on_premise_resource_details.rb', line 24

def workspace_id
  @workspace_id
end

Class Method Details

.mapperObject

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



40
41
42
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
# File 'lib/2019-01-01-preview/generated/azure_mgmt_security/models/on_premise_resource_details.rb', line 40

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'OnPremise',
    type: {
      name: 'Composite',
      class_name: 'OnPremiseResourceDetails',
      model_properties: {
        source: {
          client_side_validation: true,
          required: true,
          serialized_name: 'source',
          type: {
            name: 'String'
          }
        },
        workspace_id: {
          client_side_validation: true,
          required: true,
          serialized_name: 'workspaceId',
          type: {
            name: 'String'
          }
        },
        vmuuid: {
          client_side_validation: true,
          required: true,
          serialized_name: 'vmuuid',
          type: {
            name: 'String'
          }
        },
        source_computer_id: {
          client_side_validation: true,
          required: true,
          serialized_name: 'sourceComputerId',
          type: {
            name: 'String'
          }
        },
        machine_name: {
          client_side_validation: true,
          required: true,
          serialized_name: 'machineName',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end