Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Jul 6, 2023. It is now read-only.

chore: Update gapic-generator-python to v1.8.5 #51

Merged
merged 3 commits into from
Feb 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
82 changes: 41 additions & 41 deletions 82 google/cloud/dataform_v1beta1/services/dataform/transports/rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import dataclasses
import json # type: ignore
import re
from typing import Callable, Dict, List, Optional, Sequence, Tuple, Union
from typing import Any, Callable, Dict, List, Optional, Sequence, Tuple, Union
import warnings

from google.api_core import gapic_v1, path_template, rest_helpers, rest_streaming
Expand Down Expand Up @@ -1032,7 +1032,7 @@ def pre_get_location(
self,
request: locations_pb2.GetLocationRequest,
metadata: Sequence[Tuple[str, str]],
) -> locations_pb2.Location:
) -> Tuple[locations_pb2.GetLocationRequest, Sequence[Tuple[str, str]]]:
"""Pre-rpc interceptor for get_location

Override in a subclass to manipulate the request or metadata
Expand All @@ -1041,7 +1041,7 @@ def pre_get_location(
return request, metadata

def post_get_location(
self, response: locations_pb2.GetLocationRequest
self, response: locations_pb2.Location
) -> locations_pb2.Location:
"""Post-rpc interceptor for get_location

Expand All @@ -1055,7 +1055,7 @@ def pre_list_locations(
self,
request: locations_pb2.ListLocationsRequest,
metadata: Sequence[Tuple[str, str]],
) -> locations_pb2.ListLocationsResponse:
) -> Tuple[locations_pb2.ListLocationsRequest, Sequence[Tuple[str, str]]]:
"""Pre-rpc interceptor for list_locations

Override in a subclass to manipulate the request or metadata
Expand All @@ -1064,7 +1064,7 @@ def pre_list_locations(
return request, metadata

def post_list_locations(
self, response: locations_pb2.ListLocationsRequest
self, response: locations_pb2.ListLocationsResponse
) -> locations_pb2.ListLocationsResponse:
"""Post-rpc interceptor for list_locations

Expand Down Expand Up @@ -1176,7 +1176,7 @@ class _CancelWorkflowInvocation(DataformRestStub):
def __hash__(self):
return hash("CancelWorkflowInvocation")

__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}

@classmethod
def _get_unset_required_fields(cls, message_dict):
Expand Down Expand Up @@ -1262,7 +1262,7 @@ class _CommitWorkspaceChanges(DataformRestStub):
def __hash__(self):
return hash("CommitWorkspaceChanges")

__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}

@classmethod
def _get_unset_required_fields(cls, message_dict):
Expand Down Expand Up @@ -1347,7 +1347,7 @@ class _CreateCompilationResult(DataformRestStub):
def __hash__(self):
return hash("CreateCompilationResult")

__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}

@classmethod
def _get_unset_required_fields(cls, message_dict):
Expand Down Expand Up @@ -1446,7 +1446,7 @@ class _CreateRepository(DataformRestStub):
def __hash__(self):
return hash("CreateRepository")

__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {
"repositoryId": "",
}

Expand Down Expand Up @@ -1545,7 +1545,7 @@ class _CreateWorkflowInvocation(DataformRestStub):
def __hash__(self):
return hash("CreateWorkflowInvocation")

__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}

@classmethod
def _get_unset_required_fields(cls, message_dict):
Expand Down Expand Up @@ -1645,7 +1645,7 @@ class _CreateWorkspace(DataformRestStub):
def __hash__(self):
return hash("CreateWorkspace")

__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {
"workspaceId": "",
}

Expand Down Expand Up @@ -1744,7 +1744,7 @@ class _DeleteRepository(DataformRestStub):
def __hash__(self):
return hash("DeleteRepository")

__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}

@classmethod
def _get_unset_required_fields(cls, message_dict):
Expand Down Expand Up @@ -1820,7 +1820,7 @@ class _DeleteWorkflowInvocation(DataformRestStub):
def __hash__(self):
return hash("DeleteWorkflowInvocation")

__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}

@classmethod
def _get_unset_required_fields(cls, message_dict):
Expand Down Expand Up @@ -1897,7 +1897,7 @@ class _DeleteWorkspace(DataformRestStub):
def __hash__(self):
return hash("DeleteWorkspace")

__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}

@classmethod
def _get_unset_required_fields(cls, message_dict):
Expand Down Expand Up @@ -1973,7 +1973,7 @@ class _FetchFileDiff(DataformRestStub):
def __hash__(self):
return hash("FetchFileDiff")

__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {
"path": "",
}

Expand Down Expand Up @@ -2061,7 +2061,7 @@ class _FetchFileGitStatuses(DataformRestStub):
def __hash__(self):
return hash("FetchFileGitStatuses")

__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}

@classmethod
def _get_unset_required_fields(cls, message_dict):
Expand Down Expand Up @@ -2149,7 +2149,7 @@ class _FetchGitAheadBehind(DataformRestStub):
def __hash__(self):
return hash("FetchGitAheadBehind")

__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}

@classmethod
def _get_unset_required_fields(cls, message_dict):
Expand Down Expand Up @@ -2237,7 +2237,7 @@ class _FetchRemoteBranches(DataformRestStub):
def __hash__(self):
return hash("FetchRemoteBranches")

__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}

@classmethod
def _get_unset_required_fields(cls, message_dict):
Expand Down Expand Up @@ -2325,7 +2325,7 @@ class _GetCompilationResult(DataformRestStub):
def __hash__(self):
return hash("GetCompilationResult")

__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}

@classmethod
def _get_unset_required_fields(cls, message_dict):
Expand Down Expand Up @@ -2415,7 +2415,7 @@ class _GetRepository(DataformRestStub):
def __hash__(self):
return hash("GetRepository")

__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}

@classmethod
def _get_unset_required_fields(cls, message_dict):
Expand Down Expand Up @@ -2501,7 +2501,7 @@ class _GetWorkflowInvocation(DataformRestStub):
def __hash__(self):
return hash("GetWorkflowInvocation")

__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}

@classmethod
def _get_unset_required_fields(cls, message_dict):
Expand Down Expand Up @@ -2591,7 +2591,7 @@ class _GetWorkspace(DataformRestStub):
def __hash__(self):
return hash("GetWorkspace")

__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}

@classmethod
def _get_unset_required_fields(cls, message_dict):
Expand Down Expand Up @@ -2677,7 +2677,7 @@ class _InstallNpmPackages(DataformRestStub):
def __hash__(self):
return hash("InstallNpmPackages")

__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}

@classmethod
def _get_unset_required_fields(cls, message_dict):
Expand Down Expand Up @@ -2774,7 +2774,7 @@ class _ListCompilationResults(DataformRestStub):
def __hash__(self):
return hash("ListCompilationResults")

__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}

@classmethod
def _get_unset_required_fields(cls, message_dict):
Expand Down Expand Up @@ -2862,7 +2862,7 @@ class _ListRepositories(DataformRestStub):
def __hash__(self):
return hash("ListRepositories")

__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}

@classmethod
def _get_unset_required_fields(cls, message_dict):
Expand Down Expand Up @@ -2950,7 +2950,7 @@ class _ListWorkflowInvocations(DataformRestStub):
def __hash__(self):
return hash("ListWorkflowInvocations")

__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}

@classmethod
def _get_unset_required_fields(cls, message_dict):
Expand Down Expand Up @@ -3038,7 +3038,7 @@ class _ListWorkspaces(DataformRestStub):
def __hash__(self):
return hash("ListWorkspaces")

__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}

@classmethod
def _get_unset_required_fields(cls, message_dict):
Expand Down Expand Up @@ -3124,7 +3124,7 @@ class _MakeDirectory(DataformRestStub):
def __hash__(self):
return hash("MakeDirectory")

__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}

@classmethod
def _get_unset_required_fields(cls, message_dict):
Expand Down Expand Up @@ -3219,7 +3219,7 @@ class _MoveDirectory(DataformRestStub):
def __hash__(self):
return hash("MoveDirectory")

__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}

@classmethod
def _get_unset_required_fields(cls, message_dict):
Expand Down Expand Up @@ -3314,7 +3314,7 @@ class _MoveFile(DataformRestStub):
def __hash__(self):
return hash("MoveFile")

__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}

@classmethod
def _get_unset_required_fields(cls, message_dict):
Expand Down Expand Up @@ -3409,7 +3409,7 @@ class _PullGitCommits(DataformRestStub):
def __hash__(self):
return hash("PullGitCommits")

__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}

@classmethod
def _get_unset_required_fields(cls, message_dict):
Expand Down Expand Up @@ -3494,7 +3494,7 @@ class _PushGitCommits(DataformRestStub):
def __hash__(self):
return hash("PushGitCommits")

__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}

@classmethod
def _get_unset_required_fields(cls, message_dict):
Expand Down Expand Up @@ -3579,7 +3579,7 @@ class _QueryCompilationResultActions(DataformRestStub):
def __hash__(self):
return hash("QueryCompilationResultActions")

__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}

@classmethod
def _get_unset_required_fields(cls, message_dict):
Expand Down Expand Up @@ -3668,7 +3668,7 @@ class _QueryDirectoryContents(DataformRestStub):
def __hash__(self):
return hash("QueryDirectoryContents")

__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}

@classmethod
def _get_unset_required_fields(cls, message_dict):
Expand Down Expand Up @@ -3756,7 +3756,7 @@ class _QueryWorkflowInvocationActions(DataformRestStub):
def __hash__(self):
return hash("QueryWorkflowInvocationActions")

__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}

@classmethod
def _get_unset_required_fields(cls, message_dict):
Expand Down Expand Up @@ -3845,7 +3845,7 @@ class _ReadFile(DataformRestStub):
def __hash__(self):
return hash("ReadFile")

__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {
"path": "",
}

Expand Down Expand Up @@ -3933,7 +3933,7 @@ class _RemoveDirectory(DataformRestStub):
def __hash__(self):
return hash("RemoveDirectory")

__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}

@classmethod
def _get_unset_required_fields(cls, message_dict):
Expand Down Expand Up @@ -4018,7 +4018,7 @@ class _RemoveFile(DataformRestStub):
def __hash__(self):
return hash("RemoveFile")

__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}

@classmethod
def _get_unset_required_fields(cls, message_dict):
Expand Down Expand Up @@ -4101,7 +4101,7 @@ class _ResetWorkspaceChanges(DataformRestStub):
def __hash__(self):
return hash("ResetWorkspaceChanges")

__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}

@classmethod
def _get_unset_required_fields(cls, message_dict):
Expand Down Expand Up @@ -4186,7 +4186,7 @@ class _UpdateRepository(DataformRestStub):
def __hash__(self):
return hash("UpdateRepository")

__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}

@classmethod
def _get_unset_required_fields(cls, message_dict):
Expand Down Expand Up @@ -4283,7 +4283,7 @@ class _WriteFile(DataformRestStub):
def __hash__(self):
return hash("WriteFile")

__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}

@classmethod
def _get_unset_required_fields(cls, message_dict):
Expand Down
2 changes: 2 additions & 0 deletions 2 google/cloud/dataform_v1beta1/types/dataform.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
from __future__ import annotations

from typing import MutableMapping, MutableSequence

from google.protobuf import field_mask_pb2 # type: ignore
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.