Skip to content
This repository has been archived by the owner on Sep 5, 2023. It is now read-only.

Commit

Permalink
chore: upgrade gapic-generator-python to 0.42.2 (#119)
Browse files Browse the repository at this point in the history
* changes without context

        autosynth cannot find the source of changes triggered by earlier changes in this
        repository, or by version upgrades to tools such as linters.

* feat: Add Pub/Sub endpoints for Cloud Channel API.

PiperOrigin-RevId: 355059873

Source-Author: Google APIs <noreply@google.com>
Source-Date: Mon Feb 1 17:13:22 2021 -0800
Source-Repo: googleapis/googleapis
Source-Sha: 6ef9eaea379fc1cc0355e06a5a20b594543ee693
Source-Link: googleapis/googleapis@6ef9eae

* fix: Fix constraint resource pattern annotation

PiperOrigin-RevId: 355915985

Source-Author: Google APIs <noreply@google.com>
Source-Date: Fri Feb 5 13:27:16 2021 -0800
Source-Repo: googleapis/googleapis
Source-Sha: 35ce99fec72979f6f9b2a5adae835a49648a3231
Source-Link: googleapis/googleapis@35ce99f

* chore: update gapic-generator-python

PiperOrigin-RevId: 355923884

Source-Author: Google APIs <noreply@google.com>
Source-Date: Fri Feb 5 14:04:52 2021 -0800
Source-Repo: googleapis/googleapis
Source-Sha: 5e3dacee19405529b841b53797df799c2383536c
Source-Link: googleapis/googleapis@5e3dace

* chore: remove non-existent package option in java_gapic_library rules for cloud APIs

Committer: @miraleung
PiperOrigin-RevId: 356328938

Source-Author: Google APIs <noreply@google.com>
Source-Date: Mon Feb 8 12:39:42 2021 -0800
Source-Repo: googleapis/googleapis
Source-Sha: 78e0057d81c6969507bf1195b5aad8ac3e7feafd
Source-Link: googleapis/googleapis@78e0057

* feat: Make resolution status field available for error groups. Now callers can set the status of an error group by passing this to UpdateGroup. When not specified, it's treated like OPEN. feat: Make source location available for error groups created from GAE.

PiperOrigin-RevId: 356330876

Source-Author: Google APIs <noreply@google.com>
Source-Date: Mon Feb 8 12:48:44 2021 -0800
Source-Repo: googleapis/googleapis
Source-Sha: c1e59709c1d28795fe9b70eb479579556056bfad
Source-Link: googleapis/googleapis@c1e5970

* feat: added ApplySoftwareUpdate API docs: various clarifications, new documentation for ApplySoftwareUpdate chore: update proto annotations

PiperOrigin-RevId: 356380191

Source-Author: Google APIs <noreply@google.com>
Source-Date: Mon Feb 8 16:30:59 2021 -0800
Source-Repo: googleapis/googleapis
Source-Sha: 84cf54e45ed5970980ae868e0a1e5ad1266a8830
Source-Link: googleapis/googleapis@84cf54e

* fix: Remove dependency on AppEngine's proto definitions. This also removes the source_references field.

PiperOrigin-RevId: 356540804

Source-Author: Google APIs <noreply@google.com>
Source-Date: Tue Feb 9 10:53:59 2021 -0800
Source-Repo: googleapis/googleapis
Source-Sha: 4f60776fe99f1fd8261b6a0493a5f5f4d7e8d969
Source-Link: googleapis/googleapis@4f60776

* docs: Update rules for currency_code in budget_amount.

PiperOrigin-RevId: 357051517

Source-Author: Google APIs <noreply@google.com>
Source-Date: Thu Feb 11 13:54:03 2021 -0800
Source-Repo: googleapis/googleapis
Source-Sha: f3a60f63c13fb434745ea59b990a82d6ffc803b5
Source-Link: googleapis/googleapis@f3a60f6

* feat: Publish new fields to support Customer Managed Encryption Keys (CMEK) on the existing Cloud Bigtable service methods.

PiperOrigin-RevId: 359130387

Source-Author: Google APIs <noreply@google.com>
Source-Date: Tue Feb 23 14:08:20 2021 -0800
Source-Repo: googleapis/googleapis
Source-Sha: eabec5a21219401bad79e1cc7d900c1658aee5fd
Source-Link: googleapis/googleapis@eabec5a

* chore: update gapic-generator-python to 0.40.11

PiperOrigin-RevId: 359562873

Source-Author: Google APIs <noreply@google.com>
Source-Date: Thu Feb 25 10:52:32 2021 -0800
Source-Repo: googleapis/googleapis
Source-Sha: 07932bb995e7dc91b43620ea8402c6668c7d102c
Source-Link: googleapis/googleapis@07932bb

* feat: add PHP µ-generator build targets to googleads

Committer: @aohren
PiperOrigin-RevId: 361555541

Source-Author: Google APIs <noreply@google.com>
Source-Date: Mon Mar 8 07:00:53 2021 -0800
Source-Repo: googleapis/googleapis
Source-Sha: 65d71a60baf9650404a4d9d65f29e9ba8db490d1
Source-Link: googleapis/googleapis@65d71a6

* chore: upgrade gapic-generator-python to 0.42.2

PiperOrigin-RevId: 361662015

Source-Author: Google APIs <noreply@google.com>
Source-Date: Mon Mar 8 14:47:18 2021 -0800
Source-Repo: googleapis/googleapis
Source-Sha: 28a591963253d52ce3a25a918cafbdd9928de8cf
Source-Link: googleapis/googleapis@28a5919

* feat: added fallback option when restoring an agent docs: clarified experiment length

PiperOrigin-RevId: 362090097

Source-Author: Google APIs <noreply@google.com>
Source-Date: Wed Mar 10 10:50:48 2021 -0800
Source-Repo: googleapis/googleapis
Source-Sha: 4b16c60a8fffe213d3a5002f85696fef2b6a8172
Source-Link: googleapis/googleapis@4b16c60

* feat:added mosaic layout docs:clarified alignment_period max value and updated IAM docs link

PiperOrigin-RevId: 362979558

Source-Author: Google APIs <noreply@google.com>
Source-Date: Mon Mar 15 10:55:19 2021 -0700
Source-Repo: googleapis/googleapis
Source-Sha: 0dafa3963ef6fcb8a7f5daaa4bec12adb04de518
Source-Link: googleapis/googleapis@0dafa39

* fix!: remove rpc or fields that are unintended to release fix!: remove StreamingAnalyzeContent, CreateCallMatcher, ListCallMatchers, DeleteCallMatcher rpc from v2/v2beta1 fix!: remove `input_audio` field from AnalyzeContentRequest from v2/v2beta1 fix!: remove proto message CreateCallMatcherRequest, CreateCallMatcherResponse, ListCallMatchersRequest, ListCallMatchersResponse, DeleteCallMatcherRequest, DeleteCallMatcherResponse, CallMatcher, StreamingAnalyzeContentRequest, StreamingAnalyzeContentResponse, AudioInput from v2/v2beta1, TelephonyDtmfEvents, TelephonyDtmf from v2

Committer: @sheimi
PiperOrigin-RevId: 363762006

Source-Author: Google APIs <noreply@google.com>
Source-Date: Thu Mar 18 15:37:05 2021 -0700
Source-Repo: googleapis/googleapis
Source-Sha: 8d17d8fafbb87ac64bb3179b99ac34ed41375a51
Source-Link: googleapis/googleapis@8d17d8f
  • Loading branch information
yoshi-automation committed Mar 19, 2021
1 parent cde0673 commit 931c1c4
Show file tree
Hide file tree
Showing 20 changed files with 1,623 additions and 244 deletions.
32 changes: 30 additions & 2 deletions google/cloud/datacatalog_v1/services/data_catalog/async_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,36 @@ class DataCatalogAsyncClient:
DataCatalogClient.parse_common_location_path
)

from_service_account_info = DataCatalogClient.from_service_account_info
from_service_account_file = DataCatalogClient.from_service_account_file
@classmethod
def from_service_account_info(cls, info: dict, *args, **kwargs):
"""Creates an instance of this client using the provided credentials info.
Args:
info (dict): The service account private key info.
args: Additional arguments to pass to the constructor.
kwargs: Additional arguments to pass to the constructor.
Returns:
DataCatalogAsyncClient: The constructed client.
"""
return DataCatalogClient.from_service_account_info.__func__(DataCatalogAsyncClient, info, *args, **kwargs) # type: ignore

@classmethod
def from_service_account_file(cls, filename: str, *args, **kwargs):
"""Creates an instance of this client using the provided credentials
file.
Args:
filename (str): The path to the service account private key json
file.
args: Additional arguments to pass to the constructor.
kwargs: Additional arguments to pass to the constructor.
Returns:
DataCatalogAsyncClient: The constructed client.
"""
return DataCatalogClient.from_service_account_file.__func__(DataCatalogAsyncClient, filename, *args, **kwargs) # type: ignore

from_service_account_json = from_service_account_file

@property
Expand Down
29 changes: 19 additions & 10 deletions google/cloud/datacatalog_v1/services/data_catalog/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -2795,13 +2795,16 @@ def set_iam_policy(
"the individual field arguments should be set."
)

# The request isn't a proto-plus wrapped type,
# so it must be constructed via keyword expansion.
if isinstance(request, dict):
# The request isn't a proto-plus wrapped type,
# so it must be constructed via keyword expansion.
request = iam_policy.SetIamPolicyRequest(**request)

elif not request:
request = iam_policy.SetIamPolicyRequest(resource=resource,)
# Null request, just make one.
request = iam_policy.SetIamPolicyRequest()

if resource is not None:
request.resource = resource

# Wrap the RPC method; this adds retry and timeout information,
# and friendly error handling.
Expand Down Expand Up @@ -2939,13 +2942,16 @@ def get_iam_policy(
"the individual field arguments should be set."
)

# The request isn't a proto-plus wrapped type,
# so it must be constructed via keyword expansion.
if isinstance(request, dict):
# The request isn't a proto-plus wrapped type,
# so it must be constructed via keyword expansion.
request = iam_policy.GetIamPolicyRequest(**request)

elif not request:
request = iam_policy.GetIamPolicyRequest(resource=resource,)
# Null request, just make one.
request = iam_policy.GetIamPolicyRequest()

if resource is not None:
request.resource = resource

# Wrap the RPC method; this adds retry and timeout information,
# and friendly error handling.
Expand Down Expand Up @@ -3003,10 +3009,13 @@ def test_iam_permissions(
"""
# Create or coerce a protobuf request object.

# The request isn't a proto-plus wrapped type,
# so it must be constructed via keyword expansion.
if isinstance(request, dict):
# The request isn't a proto-plus wrapped type,
# so it must be constructed via keyword expansion.
request = iam_policy.TestIamPermissionsRequest(**request)
elif not request:
# Null request, just make one.
request = iam_policy.TestIamPermissionsRequest()

# Wrap the RPC method; this adds retry and timeout information,
# and friendly error handling.
Expand Down
11 changes: 10 additions & 1 deletion google/cloud/datacatalog_v1/services/data_catalog/pagers.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,16 @@
# limitations under the License.
#

from typing import Any, AsyncIterable, Awaitable, Callable, Iterable, Sequence, Tuple
from typing import (
Any,
AsyncIterable,
Awaitable,
Callable,
Iterable,
Sequence,
Tuple,
Optional,
)

from google.cloud.datacatalog_v1.types import datacatalog
from google.cloud.datacatalog_v1.types import search
Expand Down
148 changes: 74 additions & 74 deletions google/cloud/datacatalog_v1/types/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,115 +15,115 @@
# limitations under the License.
#

from .timestamps import SystemTimestamps
from .datacatalog import (
CreateEntryGroupRequest,
CreateEntryRequest,
CreateTagRequest,
CreateTagTemplateFieldRequest,
CreateTagTemplateRequest,
DeleteEntryGroupRequest,
DeleteEntryRequest,
DeleteTagRequest,
DeleteTagTemplateFieldRequest,
DeleteTagTemplateRequest,
Entry,
EntryGroup,
GetEntryGroupRequest,
GetEntryRequest,
GetTagTemplateRequest,
ListEntriesRequest,
ListEntriesResponse,
ListEntryGroupsRequest,
ListEntryGroupsResponse,
ListTagsRequest,
ListTagsResponse,
LookupEntryRequest,
RenameTagTemplateFieldRequest,
SearchCatalogRequest,
SearchCatalogResponse,
UpdateEntryGroupRequest,
UpdateEntryRequest,
UpdateTagRequest,
UpdateTagTemplateFieldRequest,
UpdateTagTemplateRequest,
EntryType,
)
from .gcs_fileset_spec import (
GcsFilesetSpec,
GcsFileSpec,
)
from .schema import (
Schema,
ColumnSchema,
Schema,
)
from .search import (
SearchCatalogResult,
SearchResultType,
)
from .table_spec import (
BigQueryDateShardedSpec,
BigQueryTableSpec,
ViewSpec,
TableSpec,
BigQueryDateShardedSpec,
ViewSpec,
TableSourceType,
)
from .tags import (
FieldType,
Tag,
TagField,
TagTemplate,
TagTemplateField,
FieldType,
)
from .datacatalog import (
SearchCatalogRequest,
SearchCatalogResponse,
CreateEntryGroupRequest,
UpdateEntryGroupRequest,
GetEntryGroupRequest,
DeleteEntryGroupRequest,
ListEntryGroupsRequest,
ListEntryGroupsResponse,
CreateEntryRequest,
UpdateEntryRequest,
DeleteEntryRequest,
GetEntryRequest,
LookupEntryRequest,
Entry,
EntryGroup,
CreateTagTemplateRequest,
GetTagTemplateRequest,
UpdateTagTemplateRequest,
DeleteTagTemplateRequest,
CreateTagRequest,
UpdateTagRequest,
DeleteTagRequest,
CreateTagTemplateFieldRequest,
UpdateTagTemplateFieldRequest,
RenameTagTemplateFieldRequest,
DeleteTagTemplateFieldRequest,
ListTagsRequest,
ListTagsResponse,
ListEntriesRequest,
ListEntriesResponse,
EntryType,
)
from .timestamps import SystemTimestamps

__all__ = (
"IntegratedSystem",
"SystemTimestamps",
"CreateEntryGroupRequest",
"CreateEntryRequest",
"CreateTagRequest",
"CreateTagTemplateFieldRequest",
"CreateTagTemplateRequest",
"DeleteEntryGroupRequest",
"DeleteEntryRequest",
"DeleteTagRequest",
"DeleteTagTemplateFieldRequest",
"DeleteTagTemplateRequest",
"Entry",
"EntryGroup",
"GetEntryGroupRequest",
"GetEntryRequest",
"GetTagTemplateRequest",
"ListEntriesRequest",
"ListEntriesResponse",
"ListEntryGroupsRequest",
"ListEntryGroupsResponse",
"ListTagsRequest",
"ListTagsResponse",
"LookupEntryRequest",
"RenameTagTemplateFieldRequest",
"SearchCatalogRequest",
"SearchCatalogResponse",
"UpdateEntryGroupRequest",
"UpdateEntryRequest",
"UpdateTagRequest",
"UpdateTagTemplateFieldRequest",
"UpdateTagTemplateRequest",
"EntryType",
"GcsFilesetSpec",
"GcsFileSpec",
"Schema",
"ColumnSchema",
"Schema",
"SearchCatalogResult",
"SearchResultType",
"BigQueryDateShardedSpec",
"BigQueryTableSpec",
"ViewSpec",
"TableSpec",
"BigQueryDateShardedSpec",
"ViewSpec",
"TableSourceType",
"FieldType",
"Tag",
"TagField",
"TagTemplate",
"TagTemplateField",
"FieldType",
"SearchCatalogRequest",
"SearchCatalogResponse",
"CreateEntryGroupRequest",
"UpdateEntryGroupRequest",
"GetEntryGroupRequest",
"DeleteEntryGroupRequest",
"ListEntryGroupsRequest",
"ListEntryGroupsResponse",
"CreateEntryRequest",
"UpdateEntryRequest",
"DeleteEntryRequest",
"GetEntryRequest",
"LookupEntryRequest",
"Entry",
"EntryGroup",
"CreateTagTemplateRequest",
"GetTagTemplateRequest",
"UpdateTagTemplateRequest",
"DeleteTagTemplateRequest",
"CreateTagRequest",
"UpdateTagRequest",
"DeleteTagRequest",
"CreateTagTemplateFieldRequest",
"UpdateTagTemplateFieldRequest",
"RenameTagTemplateFieldRequest",
"DeleteTagTemplateFieldRequest",
"ListTagsRequest",
"ListTagsResponse",
"ListEntriesRequest",
"ListEntriesResponse",
"EntryType",
"SystemTimestamps",
)
4 changes: 2 additions & 2 deletions google/cloud/datacatalog_v1beta1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@
"ListTaxonomiesResponse",
"LookupEntryRequest",
"PolicyTag",
"PolicyTagManagerClient",
"PolicyTagManagerSerializationClient",
"RenameTagTemplateFieldRequest",
"Schema",
"SearchCatalogRequest",
Expand All @@ -165,5 +165,5 @@
"UpdateTagTemplateRequest",
"UpdateTaxonomyRequest",
"ViewSpec",
"PolicyTagManagerSerializationClient",
"PolicyTagManagerClient",
)
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,36 @@ class DataCatalogAsyncClient:
DataCatalogClient.parse_common_location_path
)

from_service_account_info = DataCatalogClient.from_service_account_info
from_service_account_file = DataCatalogClient.from_service_account_file
@classmethod
def from_service_account_info(cls, info: dict, *args, **kwargs):
"""Creates an instance of this client using the provided credentials info.
Args:
info (dict): The service account private key info.
args: Additional arguments to pass to the constructor.
kwargs: Additional arguments to pass to the constructor.
Returns:
DataCatalogAsyncClient: The constructed client.
"""
return DataCatalogClient.from_service_account_info.__func__(DataCatalogAsyncClient, info, *args, **kwargs) # type: ignore

@classmethod
def from_service_account_file(cls, filename: str, *args, **kwargs):
"""Creates an instance of this client using the provided credentials
file.
Args:
filename (str): The path to the service account private key json
file.
args: Additional arguments to pass to the constructor.
kwargs: Additional arguments to pass to the constructor.
Returns:
DataCatalogAsyncClient: The constructed client.
"""
return DataCatalogClient.from_service_account_file.__func__(DataCatalogAsyncClient, filename, *args, **kwargs) # type: ignore

from_service_account_json = from_service_account_file

@property
Expand Down

0 comments on commit 931c1c4

Please sign in to comment.