def update(module, link, kind): auth = GcpSession(module, 'bigquery') return return_if_object(module, auth.put(link, resource_to_request(module)), kind)
def update(module, link, kind): auth = GcpSession(module, 'compute') return wait_for_operation(module, auth.put(link, resource_to_request(module)))
def update(module, link, fetch): auth = GcpSession(module, 'iam') params = {'updateMask': updateMask(resource_to_request(module), response_to_hash(module, fetch))} request = resource_to_request(module) del request['name'] return return_if_object(module, auth.put(link, request, params=params))
def update(module, link): auth = GcpSession(module, 'runtimeconfig') return return_if_object(module, auth.put(link, resource_to_request(module)))
def update(module, link): auth = GcpSession(module, 'serviceusage') return wait_for_operation(module, auth.put(link, resource_to_request(module)))
def create(module, link): auth = GcpSession(module, 'pubsub') return return_if_object(module, auth.put(link, resource_to_request(module)))
def update(module, link, fetch): auth = GcpSession(module, 'cloudfunctions') params = {'updateMask': updateMask(resource_to_request(module), response_to_hash(module, fetch))} request = resource_to_request(module) del request['name'] return wait_for_operation(module, auth.put(link, request, params=params))
def update(module, link): auth = GcpSession(module, 'bigtable') return return_if_object(module, auth.put(link, resource_to_request(module)))
def update(module, link, kind, fetch): update_fields(module, resource_to_request(module), response_to_hash(module, fetch)) auth = GcpSession(module, 'compute') return wait_for_operation(module, auth.put(link, resource_to_request(module)))