Class: Azure::ApiManagement::Mgmt::V2016_10_10::Models::PolicySnippetContract

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2016-10-10/generated/azure_mgmt_api_management/models/policy_snippet_contract.rb

Overview

Policy snippet.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#contentString



19
20
21
# File 'lib/2016-10-10/generated/azure_mgmt_api_management/models/policy_snippet_contract.rb', line 19

def content
  @content
end

#nameString



16
17
18
# File 'lib/2016-10-10/generated/azure_mgmt_api_management/models/policy_snippet_contract.rb', line 16

def name
  @name
end

#scopePolicyScopeContract

‘Tenant’, ‘Product’, ‘Api’, ‘Operation’, ‘All’



26
27
28
# File 'lib/2016-10-10/generated/azure_mgmt_api_management/models/policy_snippet_contract.rb', line 26

def scope
  @scope
end

#tool_tipString



22
23
24
# File 'lib/2016-10-10/generated/azure_mgmt_api_management/models/policy_snippet_contract.rb', line 22

def tool_tip
  @tool_tip
end

Class Method Details

.mapperObject

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



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
# File 'lib/2016-10-10/generated/azure_mgmt_api_management/models/policy_snippet_contract.rb', line 33

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'PolicySnippetContract',
    type: {
      name: 'Composite',
      class_name: 'PolicySnippetContract',
      model_properties: {
        name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        content: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'content',
          type: {
            name: 'String'
          }
        },
        tool_tip: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'toolTip',
          type: {
            name: 'String'
          }
        },
        scope: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'scope',
          type: {
            name: 'Enum',
            module: 'PolicyScopeContract'
          }
        }
      }
    }
  }
end