Class: Azure::Security::Mgmt::V2017_08_01_preview::Models::WorkspaceSetting

Inherits:
Resource
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2017-08-01-preview/generated/azure_mgmt_security/models/workspace_setting.rb

Overview

Configures where to store the OMS agent data for workspaces under a scope

Instance Attribute Summary collapse

Attributes inherited from Resource

#id, #name, #type

Class Method Summary collapse

Methods inherited from Resource

#resource_group

Instance Attribute Details

#scopeString

data to the mentioned workspace unless overridden by a setting with more specific scope

Returns:

  • (String)

    All the VMs in this scope will send their security



21
22
23
# File 'lib/2017-08-01-preview/generated/azure_mgmt_security/models/workspace_setting.rb', line 21

def scope
  @scope
end

#workspace_idString

Returns The full Azure ID of the workspace to save the data in.

Returns:

  • (String)

    The full Azure ID of the workspace to save the data in



16
17
18
# File 'lib/2017-08-01-preview/generated/azure_mgmt_security/models/workspace_setting.rb', line 16

def workspace_id
  @workspace_id
end

Class Method Details

.mapperObject

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



28
29
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# File 'lib/2017-08-01-preview/generated/azure_mgmt_security/models/workspace_setting.rb', line 28

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'WorkspaceSetting',
    type: {
      name: 'Composite',
      class_name: 'WorkspaceSetting',
      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'
          }
        },
        workspace_id: {
          client_side_validation: true,
          required: true,
          serialized_name: 'properties.workspaceId',
          type: {
            name: 'String'
          }
        },
        scope: {
          client_side_validation: true,
          required: true,
          serialized_name: 'properties.scope',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end