code stringlengths 3 6.57k |
|---|
modify_default_endpoint(CloudDeployClient) |
modify_default_endpoint(CloudDeployAsyncClient) |
mock.patch.dict(os.environ, {"GOOGLE_API_USE_MTLS_ENDPOINT": "auto"}) |
mock.patch.object(transport_class, "__init__") |
client_class(client_options=options, transport=transport_name) |
mock.patch.object(transport_class, "__init__") |
client_class(transport=transport_name) |
mock.patch.object(transport_class, "__init__") |
client_class(transport=transport_name) |
pytest.mark.parametrize("client_class", [CloudDeployClient, CloudDeployAsyncClient]) |
modify_default_endpoint(CloudDeployClient) |
modify_default_endpoint(CloudDeployAsyncClient) |
test_cloud_deploy_client_get_mtls_endpoint_and_cert_source(client_class) |
mock.Mock() |
mock.patch.dict(os.environ, {"GOOGLE_API_USE_CLIENT_CERTIFICATE": "true"}) |
mock.patch.dict(os.environ, {"GOOGLE_API_USE_CLIENT_CERTIFICATE": "false"}) |
mock.Mock() |
mock.patch.dict(os.environ, {"GOOGLE_API_USE_MTLS_ENDPOINT": "never"}) |
client_class.get_mtls_endpoint_and_cert_source() |
mock.patch.dict(os.environ, {"GOOGLE_API_USE_MTLS_ENDPOINT": "always"}) |
client_class.get_mtls_endpoint_and_cert_source() |
mock.patch.dict(os.environ, {"GOOGLE_API_USE_CLIENT_CERTIFICATE": "true"}) |
client_class.get_mtls_endpoint_and_cert_source() |
mock.patch.dict(os.environ, {"GOOGLE_API_USE_CLIENT_CERTIFICATE": "true"}) |
client_class.get_mtls_endpoint_and_cert_source() |
client_options.ClientOptions(scopes=["1", "2"],) |
mock.patch.object(transport_class, "__init__") |
client_class(client_options=options, transport=transport_name) |
client_options.ClientOptions(credentials_file="credentials.json") |
mock.patch.object(transport_class, "__init__") |
client_class(client_options=options, transport=transport_name) |
test_cloud_deploy_client_client_options_from_dict() |
CloudDeployClient(client_options={"api_endpoint": "squid.clam.whelk"}) |
test_list_delivery_pipelines(request_type, transport: str = "grpc") |
ga_credentials.AnonymousCredentials() |
request_type() |
type(client.transport.list_delivery_pipelines) |
client.list_delivery_pipelines(request) |
len(call.mock_calls) |
cloud_deploy.ListDeliveryPipelinesRequest() |
isinstance(response, pagers.ListDeliveryPipelinesPager) |
test_list_delivery_pipelines_empty_call() |
ga_credentials.AnonymousCredentials() |
type(client.transport.list_delivery_pipelines) |
client.list_delivery_pipelines() |
call.assert_called() |
cloud_deploy.ListDeliveryPipelinesRequest() |
ga_credentials.AnonymousCredentials() |
request_type() |
type(client.transport.list_delivery_pipelines) |
client.list_delivery_pipelines(request) |
len(call.mock_calls) |
cloud_deploy.ListDeliveryPipelinesRequest() |
isinstance(response, pagers.ListDeliveryPipelinesAsyncPager) |
test_list_delivery_pipelines_async_from_dict() |
test_list_delivery_pipelines_async(request_type=dict) |
test_list_delivery_pipelines_field_headers() |
CloudDeployClient(credentials=ga_credentials.AnonymousCredentials() |
cloud_deploy.ListDeliveryPipelinesRequest() |
type(client.transport.list_delivery_pipelines) |
cloud_deploy.ListDeliveryPipelinesResponse() |
client.list_delivery_pipelines(request) |
len(call.mock_calls) |
assert ("x-goog-request-params", "parent=parent/value",) |
test_list_delivery_pipelines_field_headers_async() |
CloudDeployAsyncClient(credentials=ga_credentials.AnonymousCredentials() |
cloud_deploy.ListDeliveryPipelinesRequest() |
type(client.transport.list_delivery_pipelines) |
cloud_deploy.ListDeliveryPipelinesResponse() |
client.list_delivery_pipelines(request) |
len(call.mock_calls) |
assert ("x-goog-request-params", "parent=parent/value",) |
test_list_delivery_pipelines_flattened() |
CloudDeployClient(credentials=ga_credentials.AnonymousCredentials() |
type(client.transport.list_delivery_pipelines) |
cloud_deploy.ListDeliveryPipelinesResponse() |
client.list_delivery_pipelines(parent="parent_value",) |
len(call.mock_calls) |
test_list_delivery_pipelines_flattened_error() |
CloudDeployClient(credentials=ga_credentials.AnonymousCredentials() |
pytest.raises(ValueError) |
cloud_deploy.ListDeliveryPipelinesRequest() |
test_list_delivery_pipelines_flattened_async() |
CloudDeployAsyncClient(credentials=ga_credentials.AnonymousCredentials() |
type(client.transport.list_delivery_pipelines) |
cloud_deploy.ListDeliveryPipelinesResponse() |
cloud_deploy.ListDeliveryPipelinesResponse() |
client.list_delivery_pipelines(parent="parent_value",) |
len(call.mock_calls) |
test_list_delivery_pipelines_flattened_error_async() |
CloudDeployAsyncClient(credentials=ga_credentials.AnonymousCredentials() |
pytest.raises(ValueError) |
cloud_deploy.ListDeliveryPipelinesRequest() |
test_list_delivery_pipelines_pager(transport_name: str = "grpc") |
type(client.transport.list_delivery_pipelines) |
cloud_deploy.DeliveryPipeline() |
cloud_deploy.DeliveryPipeline() |
cloud_deploy.DeliveryPipeline() |
cloud_deploy.DeliveryPipeline() |
cloud_deploy.DeliveryPipeline() |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.