Class: Twilio::REST::Messaging::V1::RequestManagedCertInstance
- Inherits:
-
InstanceResource
- Object
- InstanceResource
- Twilio::REST::Messaging::V1::RequestManagedCertInstance
- Defined in:
- lib/twilio-ruby/rest/messaging/v1/request_managed_cert.rb
Instance Method Summary collapse
-
#certificate_sid ⇒ String
The unique string that we created to identify this Certificate resource.
-
#context ⇒ RequestManagedCertContext
Generate an instance context for the instance, the context is capable of performing various actions.
-
#date_created ⇒ Time
Date that this Domain was registered to the Twilio platform to create a new Domain object.
-
#date_expires ⇒ Time
Date that the private certificate associated with this domain expires.
-
#date_updated ⇒ Time
Date that this Domain was last updated.
-
#domain_name ⇒ String
Full url path for this domain.
-
#domain_sid ⇒ String
The unique string that we created to identify the Domain resource.
-
#initialize(version, payload, domain_sid: nil) ⇒ RequestManagedCertInstance
constructor
Initialize the RequestManagedCertInstance.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#managed ⇒ Boolean
A boolean flag indicating if the certificate is managed by Twilio.
-
#requesting ⇒ Boolean
A boolean flag indicating if a managed certificate needs to be fulfilled by Twilio.
-
#to_s ⇒ Object
Provide a user friendly representation.
-
#update ⇒ RequestManagedCertInstance
Update the RequestManagedCertInstance.
- #url ⇒ String
Constructor Details
#initialize(version, payload, domain_sid: nil) ⇒ RequestManagedCertInstance
Initialize the RequestManagedCertInstance
131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 |
# File 'lib/twilio-ruby/rest/messaging/v1/request_managed_cert.rb', line 131 def initialize(version, payload , domain_sid: nil) super(version) # Marshaled Properties @properties = { 'domain_sid' => payload['domain_sid'], 'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']), 'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']), 'date_expires' => Twilio.deserialize_iso8601_datetime(payload['date_expires']), 'domain_name' => payload['domain_name'], 'certificate_sid' => payload['certificate_sid'], 'url' => payload['url'], 'managed' => payload['managed'], 'requesting' => payload['requesting'], } # Context @instance_context = nil @params = { 'domain_sid' => domain_sid || @properties['domain_sid'] , } end |
Instance Method Details
#certificate_sid ⇒ String
Returns The unique string that we created to identify this Certificate resource.
195 196 197 |
# File 'lib/twilio-ruby/rest/messaging/v1/request_managed_cert.rb', line 195 def certificate_sid @properties['certificate_sid'] end |
#context ⇒ RequestManagedCertContext
Generate an instance context for the instance, the context is capable of performing various actions. All instance actions are proxied to the context
156 157 158 159 160 161 |
# File 'lib/twilio-ruby/rest/messaging/v1/request_managed_cert.rb', line 156 def context unless @instance_context @instance_context = RequestManagedCertContext.new(@version , @params['domain_sid']) end @instance_context end |
#date_created ⇒ Time
Returns Date that this Domain was registered to the Twilio platform to create a new Domain object.
177 178 179 |
# File 'lib/twilio-ruby/rest/messaging/v1/request_managed_cert.rb', line 177 def date_created @properties['date_created'] end |
#date_expires ⇒ Time
Returns Date that the private certificate associated with this domain expires. This is the expiration date of your existing cert.
183 184 185 |
# File 'lib/twilio-ruby/rest/messaging/v1/request_managed_cert.rb', line 183 def date_expires @properties['date_expires'] end |
#date_updated ⇒ Time
Returns Date that this Domain was last updated.
171 172 173 |
# File 'lib/twilio-ruby/rest/messaging/v1/request_managed_cert.rb', line 171 def date_updated @properties['date_updated'] end |
#domain_name ⇒ String
Returns Full url path for this domain.
189 190 191 |
# File 'lib/twilio-ruby/rest/messaging/v1/request_managed_cert.rb', line 189 def domain_name @properties['domain_name'] end |
#domain_sid ⇒ String
Returns The unique string that we created to identify the Domain resource.
165 166 167 |
# File 'lib/twilio-ruby/rest/messaging/v1/request_managed_cert.rb', line 165 def domain_sid @properties['domain_sid'] end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
234 235 236 237 |
# File 'lib/twilio-ruby/rest/messaging/v1/request_managed_cert.rb', line 234 def inspect values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ") "<Twilio.Messaging.V1.RequestManagedCertInstance #{values}>" end |
#managed ⇒ Boolean
Returns A boolean flag indicating if the certificate is managed by Twilio.
207 208 209 |
# File 'lib/twilio-ruby/rest/messaging/v1/request_managed_cert.rb', line 207 def managed @properties['managed'] end |
#requesting ⇒ Boolean
Returns A boolean flag indicating if a managed certificate needs to be fulfilled by Twilio.
213 214 215 |
# File 'lib/twilio-ruby/rest/messaging/v1/request_managed_cert.rb', line 213 def requesting @properties['requesting'] end |
#to_s ⇒ Object
Provide a user friendly representation
227 228 229 230 |
# File 'lib/twilio-ruby/rest/messaging/v1/request_managed_cert.rb', line 227 def to_s values = @params.map{|k, v| "#{k}: #{v}"}.join(" ") "<Twilio.Messaging.V1.RequestManagedCertInstance #{values}>" end |
#update ⇒ RequestManagedCertInstance
Update the RequestManagedCertInstance
220 221 222 223 |
# File 'lib/twilio-ruby/rest/messaging/v1/request_managed_cert.rb', line 220 def update context.update end |
#url ⇒ String
201 202 203 |
# File 'lib/twilio-ruby/rest/messaging/v1/request_managed_cert.rb', line 201 def url @properties['url'] end |