async def sample_generate_config_report():
    # Create a client
    client = servicemanagement_v1.ServiceManagerAsyncClient()

    # Initialize request argument(s)
    request = servicemanagement_v1.GenerateConfigReportRequest()

    # Make the request
    response = await client.generate_config_report(request=request)

    # Handle the response
    print(response)
async def sample_list_services():
    # Create a client
    client = servicemanagement_v1.ServiceManagerAsyncClient()

    # Initialize request argument(s)
    request = servicemanagement_v1.ListServicesRequest()

    # Make the request
    page_result = client.list_services(request=request)

    # Handle the response
    async for response in page_result:
        print(response)
예제 #3
0
async def sample_create_service_config():
    # Create a client
    client = servicemanagement_v1.ServiceManagerAsyncClient()

    # Initialize request argument(s)
    request = servicemanagement_v1.CreateServiceConfigRequest(
        service_name="service_name_value", )

    # Make the request
    response = await client.create_service_config(request=request)

    # Handle the response
    print(response)
async def sample_get_service_rollout():
    # Create a client
    client = servicemanagement_v1.ServiceManagerAsyncClient()

    # Initialize request argument(s)
    request = servicemanagement_v1.GetServiceRolloutRequest(
        service_name="service_name_value",
        rollout_id="rollout_id_value",
    )

    # Make the request
    response = await client.get_service_rollout(request=request)

    # Handle the response
    print(response)
async def sample_create_service():
    # Create a client
    client = servicemanagement_v1.ServiceManagerAsyncClient()

    # Initialize request argument(s)
    request = servicemanagement_v1.CreateServiceRequest()

    # Make the request
    operation = client.create_service(request=request)

    print("Waiting for operation to complete...")

    response = await operation.result()

    # Handle the response
    print(response)
예제 #6
0
async def sample_list_service_rollouts():
    # Create a client
    client = servicemanagement_v1.ServiceManagerAsyncClient()

    # Initialize request argument(s)
    request = servicemanagement_v1.ListServiceRolloutsRequest(
        service_name="service_name_value",
        filter="filter_value",
    )

    # Make the request
    page_result = client.list_service_rollouts(request=request)

    # Handle the response
    async for response in page_result:
        print(response)
예제 #7
0
async def sample_submit_config_source():
    # Create a client
    client = servicemanagement_v1.ServiceManagerAsyncClient()

    # Initialize request argument(s)
    request = servicemanagement_v1.SubmitConfigSourceRequest(
        service_name="service_name_value", )

    # Make the request
    operation = client.submit_config_source(request=request)

    print("Waiting for operation to complete...")

    response = await operation.result()

    # Handle the response
    print(response)