Class: CiscoWebex::ResourceGroups::Memberships
- Inherits:
-
Object
- Object
- CiscoWebex::ResourceGroups::Memberships
- Defined in:
- lib/Admin/ResourceGroups.rb
Instance Method Summary collapse
- #create(params) ⇒ Object
- #delete(id) ⇒ Object
- #get(id) ⇒ Object
-
#initialize(token = nil) ⇒ Memberships
constructor
initialize object with stored token.
- #list(params = {}, limit = 5000) ⇒ Object
- #patch(id, params) ⇒ Object
- #search(params = {}) ⇒ Object
- #template ⇒ Object
- #this ⇒ Object
- #update(id, params) ⇒ Object
Constructor Details
#initialize(token = nil) ⇒ Memberships
initialize object with stored token
66 67 68 69 70 71 72 73 |
# File 'lib/Admin/ResourceGroups.rb', line 66 def initialize(token=nil) if token == nil STDERR.puts "Must provide API key for CiscoWebex::Admin::ResourceGroups::Memberships" return false else @auth_token = token if token end end |
Instance Method Details
#create(params) ⇒ Object
97 98 99 100 |
# File 'lib/Admin/ResourceGroups.rb', line 97 def create(params) STDERR.puts "CiscoWebex::Admin::ResourceGroups::Memberships.post() - Metod not implemented" return False end |
#delete(id) ⇒ Object
102 103 104 105 |
# File 'lib/Admin/ResourceGroups.rb', line 102 def delete(id) STDERR.puts "CiscoWebex::Admin::ResourceGroups::Memberships.delete() - Metod not implemented" return False end |
#get(id) ⇒ Object
84 85 86 |
# File 'lib/Admin/ResourceGroups.rb', line 84 def get(id) return CiscoWebex::Rest.get(@auth_token, "/v1/resourceGroups/memberships/#{id}", {}, limit) rescue false end |
#list(params = {}, limit = 5000) ⇒ Object
88 89 90 |
# File 'lib/Admin/ResourceGroups.rb', line 88 def list(params={}, limit=5000) return CiscoWebex::Rest.get(@auth_token, "/v1/resourceGroups/memberships", params, limit) rescue false end |
#patch(id, params) ⇒ Object
111 112 113 114 |
# File 'lib/Admin/ResourceGroups.rb', line 111 def patch(id, params) STDERR.puts "CiscoWebex::Admin::ResourceGroups::Memberships.patch() - Metod not implemented" return False end |
#search(params = {}) ⇒ Object
92 93 94 95 |
# File 'lib/Admin/ResourceGroups.rb', line 92 def search(params={}) params = { "resourceGroupId"=> params } if params.class == String return CiscoWebex::Toolbox.search(list(), params) end |
#template ⇒ Object
79 80 81 82 |
# File 'lib/Admin/ResourceGroups.rb', line 79 def template() STDERR.puts "CiscoWebex::Admin::ResourceGroups::Memberships.template() - Metod not implemented" return False end |
#this ⇒ Object
75 76 77 |
# File 'lib/Admin/ResourceGroups.rb', line 75 def this() puts "CiscoWebex::Admin::ResourceGroups::Memberships" end |
#update(id, params) ⇒ Object
107 108 109 |
# File 'lib/Admin/ResourceGroups.rb', line 107 def update(id, params) return CiscoWebex::Rest.put(@auth_token, "/v1/resourceGroups/memberships/#{id}", params, limit) rescue false end |