Skip to content

Commit 769b010

Browse files
1 parent cc7351c commit 769b010

File tree

1,555 files changed

+269
-600673
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,555 files changed

+269
-600673
lines changed

.kokoro/samples/python3.10/common.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ env_vars: {
1616
# Declare build specific Cloud project.
1717
env_vars: {
1818
key: "BUILD_SPECIFIC_GCLOUD_PROJECT"
19-
value: "ucaip-sample-tests"
19+
value: "python-docs-samples-tests-310"
2020
}
2121

2222
env_vars: {

.kokoro/samples/python3.7/common.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ env_vars: {
1616
# Declare build specific Cloud project.
1717
env_vars: {
1818
key: "BUILD_SPECIFIC_GCLOUD_PROJECT"
19-
value: "ucaip-sample-tests"
19+
value: "python-docs-samples-tests-py37"
2020
}
2121

2222
env_vars: {

.kokoro/samples/python3.8/common.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ env_vars: {
1616
# Declare build specific Cloud project.
1717
env_vars: {
1818
key: "BUILD_SPECIFIC_GCLOUD_PROJECT"
19-
value: "ucaip-sample-tests"
19+
value: "python-docs-samples-tests-py38"
2020
}
2121

2222
env_vars: {

.kokoro/samples/python3.9/common.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ env_vars: {
1616
# Declare build specific Cloud project.
1717
env_vars: {
1818
key: "BUILD_SPECIFIC_GCLOUD_PROJECT"
19-
value: "ucaip-sample-tests"
19+
value: "python-docs-samples-tests-py39"
2020
}
2121

2222
env_vars: {

google/cloud/aiplatform/v1/schema/predict/instance/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16+
from google.cloud.aiplatform.v1.schema.predict.instance import (
17+
gapic_version as package_version,
18+
)
19+
20+
__version__ = package_version.__version__
1621

1722

1823
from google.cloud.aiplatform.v1.schema.predict.instance_v1.types.image_classification import (

google/cloud/aiplatform/v1/schema/predict/instance_v1/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16+
from google.cloud.aiplatform.v1.schema.predict.instance import (
17+
gapic_version as package_version,
18+
)
19+
20+
__version__ = package_version.__version__
1621

1722

1823
from .types.image_classification import ImageClassificationPredictionInstance

google/cloud/aiplatform/v1/schema/predict/params/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16+
from google.cloud.aiplatform.v1.schema.predict.params import (
17+
gapic_version as package_version,
18+
)
19+
20+
__version__ = package_version.__version__
1621

1722

1823
from google.cloud.aiplatform.v1.schema.predict.params_v1.types.image_classification import (

google/cloud/aiplatform/v1/schema/predict/params_v1/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16+
from google.cloud.aiplatform.v1.schema.predict.params import (
17+
gapic_version as package_version,
18+
)
19+
20+
__version__ = package_version.__version__
1621

1722

1823
from .types.image_classification import ImageClassificationPredictionParams

google/cloud/aiplatform/v1/schema/predict/prediction/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16+
from google.cloud.aiplatform.v1.schema.predict.prediction import (
17+
gapic_version as package_version,
18+
)
19+
20+
__version__ = package_version.__version__
1621

1722

1823
from google.cloud.aiplatform.v1.schema.predict.prediction_v1.types.classification import (

google/cloud/aiplatform/v1/schema/predict/prediction_v1/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16+
from google.cloud.aiplatform.v1.schema.predict.prediction import (
17+
gapic_version as package_version,
18+
)
19+
20+
__version__ = package_version.__version__
1621

1722

1823
from .types.classification import ClassificationPredictionResult

google/cloud/aiplatform/v1/schema/trainingjob/definition/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16+
from google.cloud.aiplatform.v1.schema.trainingjob.definition import (
17+
gapic_version as package_version,
18+
)
19+
20+
__version__ = package_version.__version__
1621

1722

1823
from google.cloud.aiplatform.v1.schema.trainingjob.definition_v1.types.automl_image_classification import (

google/cloud/aiplatform/v1/schema/trainingjob/definition_v1/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16+
from google.cloud.aiplatform.v1.schema.trainingjob.definition import (
17+
gapic_version as package_version,
18+
)
19+
20+
__version__ = package_version.__version__
1621

1722

1823
from .types.automl_image_classification import AutoMlImageClassification

google/cloud/aiplatform/v1beta1/schema/predict/instance/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16+
from google.cloud.aiplatform.v1beta1.schema.predict.instance import (
17+
gapic_version as package_version,
18+
)
19+
20+
__version__ = package_version.__version__
1621

1722

1823
from google.cloud.aiplatform.v1beta1.schema.predict.instance_v1beta1.types.image_classification import (

google/cloud/aiplatform/v1beta1/schema/predict/instance_v1beta1/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16+
from google.cloud.aiplatform.v1beta1.schema.predict.instance import (
17+
gapic_version as package_version,
18+
)
19+
20+
__version__ = package_version.__version__
1621

1722

1823
from .types.image_classification import ImageClassificationPredictionInstance

google/cloud/aiplatform/v1beta1/schema/predict/params/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16+
from google.cloud.aiplatform.v1beta1.schema.predict.params import (
17+
gapic_version as package_version,
18+
)
19+
20+
__version__ = package_version.__version__
1621

1722

1823
from google.cloud.aiplatform.v1beta1.schema.predict.params_v1beta1.types.image_classification import (

google/cloud/aiplatform/v1beta1/schema/predict/params_v1beta1/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16+
from google.cloud.aiplatform.v1beta1.schema.predict.params import (
17+
gapic_version as package_version,
18+
)
19+
20+
__version__ = package_version.__version__
1621

1722

1823
from .types.image_classification import ImageClassificationPredictionParams

google/cloud/aiplatform/v1beta1/schema/predict/prediction/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16+
from google.cloud.aiplatform.v1beta1.schema.predict.prediction import (
17+
gapic_version as package_version,
18+
)
19+
20+
__version__ = package_version.__version__
1621

1722

1823
from google.cloud.aiplatform.v1beta1.schema.predict.prediction_v1beta1.types.classification import (

google/cloud/aiplatform/v1beta1/schema/predict/prediction_v1beta1/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16+
from google.cloud.aiplatform.v1beta1.schema.predict.prediction import (
17+
gapic_version as package_version,
18+
)
19+
20+
__version__ = package_version.__version__
1621

1722

1823
from .types.classification import ClassificationPredictionResult

google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16+
from google.cloud.aiplatform.v1beta1.schema.trainingjob.definition import (
17+
gapic_version as package_version,
18+
)
19+
20+
__version__ = package_version.__version__
1621

1722

1823
from google.cloud.aiplatform.v1beta1.schema.trainingjob.definition_v1beta1.types.automl_image_classification import (

google/cloud/aiplatform/v1beta1/schema/trainingjob/definition_v1beta1/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16+
from google.cloud.aiplatform.v1beta1.schema.trainingjob.definition import (
17+
gapic_version as package_version,
18+
)
19+
20+
__version__ = package_version.__version__
1621

1722

1823
from .types.automl_image_classification import AutoMlImageClassification

google/cloud/aiplatform_v1/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16+
from google.cloud.aiplatform import gapic_version as package_version
17+
18+
__version__ = package_version.__version__
19+
1620

1721
from .services.dataset_service import DatasetServiceClient
1822
from .services.dataset_service import DatasetServiceAsyncClient

google/cloud/aiplatform_v1/services/dataset_service/client.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from collections import OrderedDict
1717
import os
1818
import re
19-
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
19+
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union, cast
2020
import pkg_resources
2121

2222
from google.api_core import client_options as client_options_lib
@@ -451,7 +451,7 @@ def __init__(
451451
*,
452452
credentials: Optional[ga_credentials.Credentials] = None,
453453
transport: Union[str, DatasetServiceTransport, None] = None,
454-
client_options: Optional[client_options_lib.ClientOptions] = None,
454+
client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None,
455455
client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO,
456456
) -> None:
457457
"""Instantiates the dataset service client.
@@ -465,7 +465,7 @@ def __init__(
465465
transport (Union[str, DatasetServiceTransport]): The
466466
transport to use. If set to None, a transport is chosen
467467
automatically.
468-
client_options (google.api_core.client_options.ClientOptions): Custom options for the
468+
client_options (Optional[Union[google.api_core.client_options.ClientOptions, dict]]): Custom options for the
469469
client. It won't take effect if a ``transport`` instance is provided.
470470
(1) The ``api_endpoint`` property can be used to override the
471471
default endpoint provided by the client. GOOGLE_API_USE_MTLS_ENDPOINT
@@ -495,6 +495,7 @@ def __init__(
495495
client_options = client_options_lib.from_dict(client_options)
496496
if client_options is None:
497497
client_options = client_options_lib.ClientOptions()
498+
client_options = cast(client_options_lib.ClientOptions, client_options)
498499

499500
api_endpoint, client_cert_source_func = self.get_mtls_endpoint_and_cert_source(
500501
client_options

google/cloud/aiplatform_v1/services/endpoint_service/client.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from collections import OrderedDict
1717
import os
1818
import re
19-
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
19+
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union, cast
2020
import pkg_resources
2121

2222
from google.api_core import client_options as client_options_lib
@@ -409,7 +409,7 @@ def __init__(
409409
*,
410410
credentials: Optional[ga_credentials.Credentials] = None,
411411
transport: Union[str, EndpointServiceTransport, None] = None,
412-
client_options: Optional[client_options_lib.ClientOptions] = None,
412+
client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None,
413413
client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO,
414414
) -> None:
415415
"""Instantiates the endpoint service client.
@@ -423,7 +423,7 @@ def __init__(
423423
transport (Union[str, EndpointServiceTransport]): The
424424
transport to use. If set to None, a transport is chosen
425425
automatically.
426-
client_options (google.api_core.client_options.ClientOptions): Custom options for the
426+
client_options (Optional[Union[google.api_core.client_options.ClientOptions, dict]]): Custom options for the
427427
client. It won't take effect if a ``transport`` instance is provided.
428428
(1) The ``api_endpoint`` property can be used to override the
429429
default endpoint provided by the client. GOOGLE_API_USE_MTLS_ENDPOINT
@@ -453,6 +453,7 @@ def __init__(
453453
client_options = client_options_lib.from_dict(client_options)
454454
if client_options is None:
455455
client_options = client_options_lib.ClientOptions()
456+
client_options = cast(client_options_lib.ClientOptions, client_options)
456457

457458
api_endpoint, client_cert_source_func = self.get_mtls_endpoint_and_cert_source(
458459
client_options

google/cloud/aiplatform_v1/services/featurestore_online_serving_service/client.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from collections import OrderedDict
1717
import os
1818
import re
19-
from typing import Dict, Mapping, Optional, Iterable, Sequence, Tuple, Type, Union
19+
from typing import Dict, Mapping, Optional, Iterable, Sequence, Tuple, Type, Union, cast
2020
import pkg_resources
2121

2222
from google.api_core import client_options as client_options_lib
@@ -347,7 +347,7 @@ def __init__(
347347
*,
348348
credentials: Optional[ga_credentials.Credentials] = None,
349349
transport: Union[str, FeaturestoreOnlineServingServiceTransport, None] = None,
350-
client_options: Optional[client_options_lib.ClientOptions] = None,
350+
client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None,
351351
client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO,
352352
) -> None:
353353
"""Instantiates the featurestore online serving service client.
@@ -361,7 +361,7 @@ def __init__(
361361
transport (Union[str, FeaturestoreOnlineServingServiceTransport]): The
362362
transport to use. If set to None, a transport is chosen
363363
automatically.
364-
client_options (google.api_core.client_options.ClientOptions): Custom options for the
364+
client_options (Optional[Union[google.api_core.client_options.ClientOptions, dict]]): Custom options for the
365365
client. It won't take effect if a ``transport`` instance is provided.
366366
(1) The ``api_endpoint`` property can be used to override the
367367
default endpoint provided by the client. GOOGLE_API_USE_MTLS_ENDPOINT
@@ -391,6 +391,7 @@ def __init__(
391391
client_options = client_options_lib.from_dict(client_options)
392392
if client_options is None:
393393
client_options = client_options_lib.ClientOptions()
394+
client_options = cast(client_options_lib.ClientOptions, client_options)
394395

395396
api_endpoint, client_cert_source_func = self.get_mtls_endpoint_and_cert_source(
396397
client_options

google/cloud/aiplatform_v1/services/featurestore_service/client.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from collections import OrderedDict
1717
import os
1818
import re
19-
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
19+
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union, cast
2020
import pkg_resources
2121

2222
from google.api_core import client_options as client_options_lib
@@ -403,7 +403,7 @@ def __init__(
403403
*,
404404
credentials: Optional[ga_credentials.Credentials] = None,
405405
transport: Union[str, FeaturestoreServiceTransport, None] = None,
406-
client_options: Optional[client_options_lib.ClientOptions] = None,
406+
client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None,
407407
client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO,
408408
) -> None:
409409
"""Instantiates the featurestore service client.
@@ -417,7 +417,7 @@ def __init__(
417417
transport (Union[str, FeaturestoreServiceTransport]): The
418418
transport to use. If set to None, a transport is chosen
419419
automatically.
420-
client_options (google.api_core.client_options.ClientOptions): Custom options for the
420+
client_options (Optional[Union[google.api_core.client_options.ClientOptions, dict]]): Custom options for the
421421
client. It won't take effect if a ``transport`` instance is provided.
422422
(1) The ``api_endpoint`` property can be used to override the
423423
default endpoint provided by the client. GOOGLE_API_USE_MTLS_ENDPOINT
@@ -447,6 +447,7 @@ def __init__(
447447
client_options = client_options_lib.from_dict(client_options)
448448
if client_options is None:
449449
client_options = client_options_lib.ClientOptions()
450+
client_options = cast(client_options_lib.ClientOptions, client_options)
450451

451452
api_endpoint, client_cert_source_func = self.get_mtls_endpoint_and_cert_source(
452453
client_options

0 commit comments

Comments
 (0)