Class: Watchfor::Client::MaintenanceWindows

Inherits:
Namespace
  • Object
show all
Defined in:
lib/watchfor/client.rb

Instance Method Summary collapse

Methods inherited from Namespace

#initialize

Constructor Details

This class inherits a constructor from Watchfor::Client::Namespace

Instance Method Details

#create(body, idempotency_key: nil) ⇒ Object



130
# File 'lib/watchfor/client.rb', line 130

def create(body, idempotency_key: nil) = @c.request("POST", "/maintenance-windows", body: body, idempotency_key: idempotency_key)

#delete(id) ⇒ Object



132
# File 'lib/watchfor/client.rb', line 132

def delete(id) = @c.request("DELETE", "/maintenance-windows/#{id}")

#get(id) ⇒ Object



129
# File 'lib/watchfor/client.rb', line 129

def get(id) = @c.request("GET", "/maintenance-windows/#{id}")

#list(**query) ⇒ Object



128
# File 'lib/watchfor/client.rb', line 128

def list(**query) = @c.request("GET", "/maintenance-windows", query: query)

#update(id, body) ⇒ Object



131
# File 'lib/watchfor/client.rb', line 131

def update(id, body) = @c.request("PATCH", "/maintenance-windows/#{id}", body: body)