def update(module, link, kind):
    auth = GcpSession(module, 'bigquery')
    return return_if_object(module, auth.put(link, resource_to_request(module)), kind)
Beispiel #2
0
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)))
Beispiel #5
0
def update(module, link):
    auth = GcpSession(module, 'serviceusage')
    return wait_for_operation(module, auth.put(link, resource_to_request(module)))
Beispiel #6
0
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))
Beispiel #8
0
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)))