Class: Azure::ApiManagement::Mgmt::V2016_07_07::Models::PropertyContract
- Inherits:
-
Object
- Object
- Azure::ApiManagement::Mgmt::V2016_07_07::Models::PropertyContract
- Includes:
- MsRestAzure
- Defined in:
- lib/2016-07-07/generated/azure_mgmt_api_management/models/property_contract.rb
Overview
Property details.
Instance Attribute Summary collapse
-
#id ⇒ String
API Management service instance.
-
#name ⇒ String
digits, period, dash, and underscore characters.
-
#secret ⇒ Boolean
be encrypted or not.
-
#tags ⇒ Array<String>
filter the property list.
-
#value ⇒ String
It may not be empty or consist only of whitespace.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for PropertyContract class as Ruby Hash.
Instance Attribute Details
#id ⇒ String
API Management service instance. The value is a valid relative URL in the format of /properties/propId where propId is a property identifier.
19 20 21 |
# File 'lib/2016-07-07/generated/azure_mgmt_api_management/models/property_contract.rb', line 19 def id @id end |
#name ⇒ String
digits, period, dash, and underscore characters.
23 24 25 |
# File 'lib/2016-07-07/generated/azure_mgmt_api_management/models/property_contract.rb', line 23 def name @name end |
#secret ⇒ Boolean
be encrypted or not. Default value is false.
35 36 37 |
# File 'lib/2016-07-07/generated/azure_mgmt_api_management/models/property_contract.rb', line 35 def secret @secret end |
#tags ⇒ Array<String>
filter the property list.
31 32 33 |
# File 'lib/2016-07-07/generated/azure_mgmt_api_management/models/property_contract.rb', line 31 def end |
#value ⇒ String
It may not be empty or consist only of whitespace.
27 28 29 |
# File 'lib/2016-07-07/generated/azure_mgmt_api_management/models/property_contract.rb', line 27 def value @value end |
Class Method Details
.mapper ⇒ Object
Mapper for PropertyContract class as Ruby Hash. This will be used for serialization/deserialization.
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 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 |
# File 'lib/2016-07-07/generated/azure_mgmt_api_management/models/property_contract.rb', line 42 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'PropertyContract', type: { name: 'Composite', class_name: 'PropertyContract', model_properties: { id: { client_side_validation: true, required: false, read_only: true, serialized_name: 'id', type: { name: 'String' } }, name: { client_side_validation: true, required: true, serialized_name: 'name', constraints: { MaxLength: 256, MinLength: 1, Pattern: '^[A-Z0-9-._]+$' }, type: { name: 'String' } }, value: { client_side_validation: true, required: true, serialized_name: 'value', constraints: { MaxLength: 4096, MinLength: 1 }, type: { name: 'String' } }, tags: { client_side_validation: true, required: false, serialized_name: 'tags', constraints: { MaxItems: 32 }, type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { name: 'String' } } } }, secret: { client_side_validation: true, required: false, serialized_name: 'secret', type: { name: 'Boolean' } } } } } end |