Class: Azure::ARM::Insights::Models::LogProfileCreateOrUpdateParameters

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/generated/azure_mgmt_insights/models/log_profile_create_or_update_parameters.rb

Overview

Paramters to create a new Log Profile

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#categoriesArray<String>

Returns the categories.

Returns:

  • (Array<String>)

    the categories.



25
26
27
# File 'lib/generated/azure_mgmt_insights/models/log_profile_create_or_update_parameters.rb', line 25

def categories
  @categories
end

#locationsArray<String>

Returns the locations.

Returns:

  • (Array<String>)

    the locations.



22
23
24
# File 'lib/generated/azure_mgmt_insights/models/log_profile_create_or_update_parameters.rb', line 22

def locations
  @locations
end

#retention_policyRetentionPolicy

Returns the retention policy for this log.

Returns:



28
29
30
# File 'lib/generated/azure_mgmt_insights/models/log_profile_create_or_update_parameters.rb', line 28

def retention_policy
  @retention_policy
end

#service_bus_rule_idString

Returns the resource id of the service bus rule.

Returns:

  • (String)

    the resource id of the service bus rule.



19
20
21
# File 'lib/generated/azure_mgmt_insights/models/log_profile_create_or_update_parameters.rb', line 19

def service_bus_rule_id
  @service_bus_rule_id
end

#storage_account_idString

Returns the resource id of the storage account.

Returns:

  • (String)

    the resource id of the storage account.



16
17
18
# File 'lib/generated/azure_mgmt_insights/models/log_profile_create_or_update_parameters.rb', line 16

def 
  @storage_account_id
end

Class Method Details

.mapperObject

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



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
84
85
86
87
88
89
90
91
92
93
94
95
96
# File 'lib/generated/azure_mgmt_insights/models/log_profile_create_or_update_parameters.rb', line 35

def self.mapper()
  {
    required: false,
    serialized_name: 'LogProfileCreateOrUpdateParameters',
    type: {
      name: 'Composite',
      class_name: 'LogProfileCreateOrUpdateParameters',
      model_properties: {
        storage_account_id: {
          required: false,
          serialized_name: 'properties.storageAccountId',
          type: {
            name: 'String'
          }
        },
        service_bus_rule_id: {
          required: false,
          serialized_name: 'properties.serviceBusRuleId',
          type: {
            name: 'String'
          }
        },
        locations: {
          required: false,
          serialized_name: 'properties.locations',
          type: {
            name: 'Sequence',
            element: {
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        categories: {
          required: false,
          serialized_name: 'properties.categories',
          type: {
            name: 'Sequence',
            element: {
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        retention_policy: {
          required: false,
          serialized_name: 'properties.retentionPolicy',
          type: {
            name: 'Composite',
            class_name: 'RetentionPolicy'
          }
        }
      }
    }
  }
end