Class: Azure::ApiManagement::Mgmt::V2016_07_07::Models::SubscriptionContract
- Inherits:
-
Object
- Object
- Azure::ApiManagement::Mgmt::V2016_07_07::Models::SubscriptionContract
- Includes:
- MsRestAzure
- Defined in:
- lib/2016-07-07/generated/azure_mgmt_api_management/models/subscription_contract.rb
Overview
Subscription details.
Instance Attribute Summary collapse
-
#created_date ⇒ DateTime
following format: ‘yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.
-
#end_date ⇒ DateTime
date conforms to the following format: ‘yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.
-
#expiration_date ⇒ DateTime
the following format: ‘yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.
-
#id ⇒ String
current API Management service instance.
-
#name ⇒ String
subscription has no name.
-
#notification_date ⇒ DateTime
The date conforms to the following format: ‘yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.
-
#primary_key ⇒ String
Subscription primary key.
-
#product_id ⇒ String
product.
-
#secondary_key ⇒ String
Subscription secondary key.
-
#start_date ⇒ DateTime
the following format: ‘yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.
-
#state ⇒ SubscriptionStateContract
are * active – the subscription is active, * suspended – the subscription is blocked, and the subscriber cannot call any APIs of the product, * submitted – the subscription request has been made by the developer, but has not yet been approved or rejected, * rejected – the subscription request has been denied by an administrator, * cancelled – the subscription has been cancelled by the developer or administrator, * expired – the subscription reached its expiration date and was deactivated.
-
#state_comment ⇒ String
administrator.
-
#user_id ⇒ String
owner.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for SubscriptionContract class as Ruby Hash.
Instance Attribute Details
#created_date ⇒ DateTime
following format: ‘yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.
51 52 53 |
# File 'lib/2016-07-07/generated/azure_mgmt_api_management/models/subscription_contract.rb', line 51 def created_date @created_date end |
#end_date ⇒ DateTime
date conforms to the following format: ‘yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.
69 70 71 |
# File 'lib/2016-07-07/generated/azure_mgmt_api_management/models/subscription_contract.rb', line 69 def end_date @end_date end |
#expiration_date ⇒ DateTime
the following format: ‘yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.
63 64 65 |
# File 'lib/2016-07-07/generated/azure_mgmt_api_management/models/subscription_contract.rb', line 63 def expiration_date @expiration_date end |
#id ⇒ String
current API Management service instance. The value is a valid relative URL in the format of /subscriptions/sid where sid is a subscription identifier.
19 20 21 |
# File 'lib/2016-07-07/generated/azure_mgmt_api_management/models/subscription_contract.rb', line 19 def id @id end |
#name ⇒ String
subscription has no name.
33 34 35 |
# File 'lib/2016-07-07/generated/azure_mgmt_api_management/models/subscription_contract.rb', line 33 def name @name end |
#notification_date ⇒ DateTime
The date conforms to the following format: ‘yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.
75 76 77 |
# File 'lib/2016-07-07/generated/azure_mgmt_api_management/models/subscription_contract.rb', line 75 def notification_date @notification_date end |
#primary_key ⇒ String
Returns Subscription primary key.
78 79 80 |
# File 'lib/2016-07-07/generated/azure_mgmt_api_management/models/subscription_contract.rb', line 78 def primary_key @primary_key end |
#product_id ⇒ String
product. The value is a valid relative URL in the format of /products/productId where productId is a product identifier.
29 30 31 |
# File 'lib/2016-07-07/generated/azure_mgmt_api_management/models/subscription_contract.rb', line 29 def product_id @product_id end |
#secondary_key ⇒ String
Returns Subscription secondary key.
81 82 83 |
# File 'lib/2016-07-07/generated/azure_mgmt_api_management/models/subscription_contract.rb', line 81 def secondary_key @secondary_key end |
#start_date ⇒ DateTime
the following format: ‘yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.
57 58 59 |
# File 'lib/2016-07-07/generated/azure_mgmt_api_management/models/subscription_contract.rb', line 57 def start_date @start_date end |
#state ⇒ SubscriptionStateContract
are * active – the subscription is active, * suspended – the subscription is blocked, and the subscriber cannot call any APIs of the product, * submitted – the subscription request has been made by the developer, but has not yet been approved or rejected, * rejected – the subscription request has been denied by an administrator, * cancelled –the subscription has been cancelled by the developer or administrator,
-
expired – the subscription reached its expiration date and was
deactivated. Possible values include: ‘Suspended’, ‘Active’, ‘Expired’, ‘Submitted’, ‘Rejected’, ‘Cancelled’
45 46 47 |
# File 'lib/2016-07-07/generated/azure_mgmt_api_management/models/subscription_contract.rb', line 45 def state @state end |
#state_comment ⇒ String
administrator.
85 86 87 |
# File 'lib/2016-07-07/generated/azure_mgmt_api_management/models/subscription_contract.rb', line 85 def state_comment @state_comment end |
#user_id ⇒ String
owner. The value is a valid relative URL in the format of /users/uid where uid is a user identifier.
24 25 26 |
# File 'lib/2016-07-07/generated/azure_mgmt_api_management/models/subscription_contract.rb', line 24 def user_id @user_id end |
Class Method Details
.mapper ⇒ Object
Mapper for SubscriptionContract class as Ruby Hash. This will be used for serialization/deserialization.
92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 |
# File 'lib/2016-07-07/generated/azure_mgmt_api_management/models/subscription_contract.rb', line 92 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'SubscriptionContract', type: { name: 'Composite', class_name: 'SubscriptionContract', model_properties: { id: { client_side_validation: true, required: false, read_only: true, serialized_name: 'id', type: { name: 'String' } }, user_id: { client_side_validation: true, required: false, serialized_name: 'userId', type: { name: 'String' } }, product_id: { client_side_validation: true, required: false, serialized_name: 'productId', type: { name: 'String' } }, name: { client_side_validation: true, required: false, serialized_name: 'name', constraints: { MaxLength: 100, MinLength: 0 }, type: { name: 'String' } }, state: { client_side_validation: true, required: false, serialized_name: 'state', type: { name: 'Enum', module: 'SubscriptionStateContract' } }, created_date: { client_side_validation: true, required: false, read_only: true, serialized_name: 'createdDate', type: { name: 'DateTime' } }, start_date: { client_side_validation: true, required: false, serialized_name: 'startDate', type: { name: 'DateTime' } }, expiration_date: { client_side_validation: true, required: false, serialized_name: 'expirationDate', type: { name: 'DateTime' } }, end_date: { client_side_validation: true, required: false, serialized_name: 'endDate', type: { name: 'DateTime' } }, notification_date: { client_side_validation: true, required: false, serialized_name: 'notificationDate', type: { name: 'DateTime' } }, primary_key: { client_side_validation: true, required: false, serialized_name: 'primaryKey', constraints: { MaxLength: 256, MinLength: 1 }, type: { name: 'String' } }, secondary_key: { client_side_validation: true, required: false, serialized_name: 'secondaryKey', constraints: { MaxLength: 256, MinLength: 1 }, type: { name: 'String' } }, state_comment: { client_side_validation: true, required: false, serialized_name: 'stateComment', type: { name: 'String' } } } } } end |