How to use the ansible.module_utils.gcp_utils.GcpSession function in ansible

To help you get started, we’ve selected a few ansible examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ansible / ansible / lib / ansible / modules / cloud / google / gcp_bigquery_dataset_info.py View on Github external
def fetch_list(module, link):
    auth = GcpSession(module, 'bigquery')
    return auth.list(link, return_if_object, array_name='datasets')
github ansible / ansible / lib / ansible / modules / cloud / google / gcp_compute_backend_service.py View on Github external
def create(module, link, kind):
    auth = GcpSession(module, 'compute')
    return wait_for_operation(module, auth.post(link, resource_to_request(module)))
github ansible / ansible / lib / ansible / modules / cloud / google / gcp_iam_role.py View on Github external
def fetch_resource(module, link, allow_not_found=True):
    auth = GcpSession(module, 'iam')
    return return_if_object(module, auth.get(link), allow_not_found)
github ansible / ansible / lib / ansible / modules / cloud / google / gcp_compute_target_http_proxy.py View on Github external
def delete(module, link, kind):
    auth = GcpSession(module, 'compute')
    return wait_for_operation(module, auth.delete(link))
github ansible / ansible / lib / ansible / modules / cloud / google / gcp_iam_service_account.py View on Github external
def fetch_resource(module, link, allow_not_found=True):
    auth = GcpSession(module, 'iam')
    return return_if_object(module, auth.get(link), allow_not_found)
github ansible / ansible / lib / ansible / modules / cloud / google / gcp_compute_target_vpn_gateway.py View on Github external
def delete(module, link, kind):
    auth = GcpSession(module, 'compute')
    return wait_for_operation(module, auth.delete(link))
github ansible / ansible / lib / ansible / modules / cloud / google / gcp_compute_reservation.py View on Github external
def create(module, link):
    auth = GcpSession(module, 'compute')
    return wait_for_operation(module, auth.post(link, resource_to_request(module)))
github ansible / ansible / lib / ansible / modules / cloud / google / gcp_cloudtasks_queue.py View on Github external
def update(module, link):
    auth = GcpSession(module, 'cloudtasks')
    return return_if_object(module, auth.put(link, resource_to_request(module)))
github ansible / ansible / lib / ansible / modules / cloud / google / gcp_compute_address.py View on Github external
def fetch_resource(module, link, kind, allow_not_found=True):
    auth = GcpSession(module, 'compute')
    return return_if_object(module, auth.get(link), kind, allow_not_found)