Class: Fog::Identity::OpenStack::V3::Endpoint
- Inherits:
-
Model
- Object
- Model
- Fog::Identity::OpenStack::V3::Endpoint
- Defined in:
- lib/fog/openstack/models/identity_v3/endpoint.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
40 41 42 43 44 |
# File 'lib/fog/openstack/models/identity_v3/endpoint.rb', line 40 def create merge_attributes( service.create_endpoint(attributes).body['endpoint']) self end |
#destroy ⇒ Object
22 23 24 25 26 |
# File 'lib/fog/openstack/models/identity_v3/endpoint.rb', line 22 def destroy requires :id service.delete_endpoint(self.id) true end |
#save ⇒ Object
35 36 37 38 |
# File 'lib/fog/openstack/models/identity_v3/endpoint.rb', line 35 def save requires :name identity ? update : create end |
#to_s ⇒ Object
18 19 20 |
# File 'lib/fog/openstack/models/identity_v3/endpoint.rb', line 18 def to_s self.name end |
#update(attr = nil) ⇒ Object
28 29 30 31 32 33 |
# File 'lib/fog/openstack/models/identity_v3/endpoint.rb', line 28 def update(attr = nil) requires :id merge_attributes( service.update_endpoint(self.id, attr || attributes).body['endpoint']) self end |