Class: Azure::ApiManagement::Mgmt::V2017_03_01::Models::PolicySnippetContract
- Inherits:
-
Object
- Object
- Azure::ApiManagement::Mgmt::V2017_03_01::Models::PolicySnippetContract
- Includes:
- MsRestAzure
- Defined in:
- lib/2017-03-01/generated/azure_mgmt_api_management/models/policy_snippet_contract.rb
Overview
Policy snippet.
Instance Attribute Summary collapse
-
#content ⇒ String
Snippet content.
-
#name ⇒ String
Snippet name.
-
#scope ⇒ Integer
Binary OR value of the Snippet scope.
-
#tool_tip ⇒ String
Snippet toolTip.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for PolicySnippetContract class as Ruby Hash.
Instance Attribute Details
#content ⇒ String
Returns Snippet content.
19 20 21 |
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/models/policy_snippet_contract.rb', line 19 def content @content end |
#name ⇒ String
Returns Snippet name.
16 17 18 |
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/models/policy_snippet_contract.rb', line 16 def name @name end |
#scope ⇒ Integer
Returns Binary OR value of the Snippet scope.
25 26 27 |
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/models/policy_snippet_contract.rb', line 25 def scope @scope end |
#tool_tip ⇒ String
Returns Snippet toolTip.
22 23 24 |
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/models/policy_snippet_contract.rb', line 22 def tool_tip @tool_tip end |
Class Method Details
.mapper ⇒ Object
Mapper for PolicySnippetContract class as Ruby Hash. This will be used for serialization/deserialization.
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 |
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/models/policy_snippet_contract.rb', line 32 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: 'Number' } } } } } end |