Skip to content
This repository was archived by the owner on Dec 31, 2023. It is now read-only.

feat: add text extraction health care option in create model #86

Merged
merged 25 commits into from
Oct 27, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
a636c05
changes without context
yoshi-automation Oct 23, 2020
f9cd96e
chore(java_templates): stop running pmd/spotbugs checks for samples
yoshi-automation Oct 23, 2020
804cc66
chore: upgrade gapic-generator-python to 0.32.2
yoshi-automation Oct 23, 2020
aa27d82
feat: added google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsSer…
yoshi-automation Oct 23, 2020
972edb5
feat!: Updated third_party Cloud Build clients with new Build message…
yoshi-automation Oct 23, 2020
397c3bb
chore: update python microgen version to 0.33.0
yoshi-automation Oct 23, 2020
e097aa7
migrate secret manager BUILD file python part to use microgen
yoshi-automation Oct 23, 2020
819f65d
feat: Add Java microgen rules to imports
yoshi-automation Oct 23, 2020
4696421
Publish SLM logging proto for documentation
yoshi-automation Oct 23, 2020
d70ff4b
docs: update OPTIONAL annotations for some fields.
yoshi-automation Oct 23, 2020
c194d32
Update gapic-generator-python pin to 0.33.4
yoshi-automation Oct 23, 2020
21b454c
chore: use Python microgenerator rules for aiplatform
yoshi-automation Oct 23, 2020
f5a7fb7
chore: use gapic-generator-python 0.33.6
yoshi-automation Oct 23, 2020
ba7ba07
fix: naming style updates
yoshi-automation Oct 23, 2020
2dd7651
Add Service Direcotry v1 protos and configs
yoshi-automation Oct 23, 2020
04574f6
fix: switch pubsub/v1 retry config to grpc_service_config
yoshi-automation Oct 23, 2020
b41b0a0
feat: Added text extraction health care option in create model.
yoshi-automation Oct 23, 2020
4e751e9
docs: fixed link from SentimentAnalysisResult
yoshi-automation Oct 23, 2020
1abfc87
chore: upgrade to gapic-generator-python 0.35.6
yoshi-automation Oct 23, 2020
b83d2c7
chore: upgrade to gapic-generator-python 0.35.6
yoshi-automation Oct 23, 2020
465e034
chore: update grpc dependency to v1.33.1
yoshi-automation Oct 23, 2020
63e814f
chore: update proto-plus, undo docs removal
busunkim96 Oct 27, 2020
aabb68b
fix: fix imports
busunkim96 Oct 27, 2020
31da1a9
fix: fix __init__.py again
busunkim96 Oct 27, 2020
d348416
fix: fix for real
busunkim96 Oct 27, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat: added google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsSer…
…vice service

PiperOrigin-RevId: 328756245

Source-Author: Google APIs <[email protected]>
Source-Date: Thu Aug 27 09:48:55 2020 -0700
Source-Repo: googleapis/googleapis
Source-Sha: 56f0db80b2378552f0323ac56ed6e35f51b1a53a
Source-Link: googleapis/googleapis@56f0db8
  • Loading branch information
yoshi-automation committed Oct 23, 2020
commit aa27d8219ab4342c9c904bc2fdf6b14797308b12
4 changes: 2 additions & 2 deletions google/cloud/automl_v1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@
__all__ = (
"AnnotationPayload",
"AnnotationSpec",
"AutoMlClient",
"BatchPredictInputConfig",
"BatchPredictOperationMetadata",
"BatchPredictOutputConfig",
Expand Down Expand Up @@ -164,7 +165,6 @@
"OutputConfig",
"PredictRequest",
"PredictResponse",
"PredictionServiceClient",
"TextClassificationDatasetMetadata",
"TextClassificationModelMetadata",
"TextExtractionAnnotation",
Expand All @@ -185,5 +185,5 @@
"UndeployModelRequest",
"UpdateDatasetRequest",
"UpdateModelRequest",
"AutoMlClient",
"PredictionServiceClient",
)
4 changes: 2 additions & 2 deletions google/cloud/automl_v1beta1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,6 @@
"AnnotationPayload",
"AnnotationSpec",
"ArrayStats",
"AutoMlClient",
"BatchPredictInputConfig",
"BatchPredictOperationMetadata",
"BatchPredictOutputConfig",
Expand Down Expand Up @@ -228,6 +227,7 @@
"OutputConfig",
"PredictRequest",
"PredictResponse",
"PredictionServiceClient",
"RegressionEvaluationMetrics",
"Row",
"StringStats",
Expand Down Expand Up @@ -269,5 +269,5 @@
"VideoObjectTrackingDatasetMetadata",
"VideoObjectTrackingEvaluationMetrics",
"VideoObjectTrackingModelMetadata",
"PredictionServiceClient",
"AutoMlClient",
)
8 changes: 4 additions & 4 deletions google/cloud/automl_v1beta1/services/auto_ml/async_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,14 @@ class AutoMlAsyncClient:
DEFAULT_ENDPOINT = AutoMlClient.DEFAULT_ENDPOINT
DEFAULT_MTLS_ENDPOINT = AutoMlClient.DEFAULT_MTLS_ENDPOINT

model_path = staticmethod(AutoMlClient.model_path)

column_spec_path = staticmethod(AutoMlClient.column_spec_path)

table_spec_path = staticmethod(AutoMlClient.table_spec_path)

model_path = staticmethod(AutoMlClient.model_path)

dataset_path = staticmethod(AutoMlClient.dataset_path)

column_spec_path = staticmethod(AutoMlClient.column_spec_path)

from_service_account_file = AutoMlClient.from_service_account_file
from_service_account_json = from_service_account_file

Expand Down
4 changes: 2 additions & 2 deletions synth.metadata
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "f75a734e2c257765764074562f191f0e130c34e5",
"internalRef": "328157915"
"sha": "56f0db80b2378552f0323ac56ed6e35f51b1a53a",
"internalRef": "328756245"
}
},
{
Expand Down
104 changes: 52 additions & 52 deletions tests/unit/gapic/automl_v1beta1/test_auto_ml.py
Original file line number Diff line number Diff line change
Expand Up @@ -6489,6 +6489,33 @@ def test_auto_ml_grpc_lro_async_client():
assert transport.operations_client is transport.operations_client


def test_table_spec_path():
project = "squid"
location = "clam"
dataset = "whelk"
table_spec = "octopus"

expected = "projects/{project}/locations/{location}/datasets/{dataset}/tableSpecs/{table_spec}".format(
project=project, location=location, dataset=dataset, table_spec=table_spec,
)
actual = AutoMlClient.table_spec_path(project, location, dataset, table_spec)
assert expected == actual


def test_parse_table_spec_path():
expected = {
"project": "oyster",
"location": "nudibranch",
"dataset": "cuttlefish",
"table_spec": "mussel",
}
path = AutoMlClient.table_spec_path(**expected)

# Check that the path construction is reversible.
actual = AutoMlClient.parse_table_spec_path(path)
assert expected == actual


def test_model_path():
project = "squid"
location = "clam"
Expand All @@ -6514,6 +6541,31 @@ def test_parse_model_path():
assert expected == actual


def test_dataset_path():
project = "squid"
location = "clam"
dataset = "whelk"

expected = "projects/{project}/locations/{location}/datasets/{dataset}".format(
project=project, location=location, dataset=dataset,
)
actual = AutoMlClient.dataset_path(project, location, dataset)
assert expected == actual


def test_parse_dataset_path():
expected = {
"project": "octopus",
"location": "oyster",
"dataset": "nudibranch",
}
path = AutoMlClient.dataset_path(**expected)

# Check that the path construction is reversible.
actual = AutoMlClient.parse_dataset_path(path)
assert expected == actual


def test_column_spec_path():
project = "squid"
location = "clam"
Expand Down Expand Up @@ -6549,58 +6601,6 @@ def test_parse_column_spec_path():
assert expected == actual


def test_table_spec_path():
project = "squid"
location = "clam"
dataset = "whelk"
table_spec = "octopus"

expected = "projects/{project}/locations/{location}/datasets/{dataset}/tableSpecs/{table_spec}".format(
project=project, location=location, dataset=dataset, table_spec=table_spec,
)
actual = AutoMlClient.table_spec_path(project, location, dataset, table_spec)
assert expected == actual


def test_parse_table_spec_path():
expected = {
"project": "oyster",
"location": "nudibranch",
"dataset": "cuttlefish",
"table_spec": "mussel",
}
path = AutoMlClient.table_spec_path(**expected)

# Check that the path construction is reversible.
actual = AutoMlClient.parse_table_spec_path(path)
assert expected == actual


def test_dataset_path():
project = "squid"
location = "clam"
dataset = "whelk"

expected = "projects/{project}/locations/{location}/datasets/{dataset}".format(
project=project, location=location, dataset=dataset,
)
actual = AutoMlClient.dataset_path(project, location, dataset)
assert expected == actual


def test_parse_dataset_path():
expected = {
"project": "octopus",
"location": "oyster",
"dataset": "nudibranch",
}
path = AutoMlClient.dataset_path(**expected)

# Check that the path construction is reversible.
actual = AutoMlClient.parse_dataset_path(path)
assert expected == actual


def test_client_withDEFAULT_CLIENT_INFO():
client_info = gapic_v1.client_info.ClientInfo()

Expand Down