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

Commit 762c28c

Browse files
chore: upgrade gapic-generator-python to 0.46.3 (#45)
PiperOrigin-RevId: 373649163 Source-Link: googleapis/googleapis@7e1b14e Source-Link: https://github.com/googleapis/googleapis-gen/commit/0a3c7d272d697796db75857bac73905c68e498c3 fix: add async client to %name_%version/init.py chore: add autogenerated snippets chore: remove auth, policy, and options from the reserved names list feat: support self-signed JWT flow for service accounts chore: enable GAPIC metadata generation chore: sort subpackages in %namespace/%name/init.py
1 parent 8448b04 commit 762c28c

31 files changed

+1133
-686
lines changed

google/cloud/dataqna/__init__.py

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# -*- coding: utf-8 -*-
2-
32
# Copyright 2020 Google LLC
43
#
54
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,38 +14,39 @@
1514
# limitations under the License.
1615
#
1716

18-
from google.cloud.dataqna_v1alpha.services.auto_suggestion_service.async_client import (
19-
AutoSuggestionServiceAsyncClient,
20-
)
2117
from google.cloud.dataqna_v1alpha.services.auto_suggestion_service.client import (
2218
AutoSuggestionServiceClient,
2319
)
24-
from google.cloud.dataqna_v1alpha.services.question_service.async_client import (
25-
QuestionServiceAsyncClient,
20+
from google.cloud.dataqna_v1alpha.services.auto_suggestion_service.async_client import (
21+
AutoSuggestionServiceAsyncClient,
2622
)
2723
from google.cloud.dataqna_v1alpha.services.question_service.client import (
2824
QuestionServiceClient,
2925
)
26+
from google.cloud.dataqna_v1alpha.services.question_service.async_client import (
27+
QuestionServiceAsyncClient,
28+
)
29+
3030
from google.cloud.dataqna_v1alpha.types.annotated_string import AnnotatedString
31+
from google.cloud.dataqna_v1alpha.types.auto_suggestion_service import Suggestion
32+
from google.cloud.dataqna_v1alpha.types.auto_suggestion_service import SuggestionInfo
3133
from google.cloud.dataqna_v1alpha.types.auto_suggestion_service import (
3234
SuggestQueriesRequest,
3335
)
3436
from google.cloud.dataqna_v1alpha.types.auto_suggestion_service import (
3537
SuggestQueriesResponse,
3638
)
37-
from google.cloud.dataqna_v1alpha.types.auto_suggestion_service import Suggestion
38-
from google.cloud.dataqna_v1alpha.types.auto_suggestion_service import SuggestionInfo
3939
from google.cloud.dataqna_v1alpha.types.auto_suggestion_service import SuggestionType
4040
from google.cloud.dataqna_v1alpha.types.question import BigQueryJob
4141
from google.cloud.dataqna_v1alpha.types.question import DataQuery
4242
from google.cloud.dataqna_v1alpha.types.question import DebugFlags
4343
from google.cloud.dataqna_v1alpha.types.question import ExecutionInfo
4444
from google.cloud.dataqna_v1alpha.types.question import HumanReadable
45-
from google.cloud.dataqna_v1alpha.types.question import InterpretEntity
46-
from google.cloud.dataqna_v1alpha.types.question import InterpretError
4745
from google.cloud.dataqna_v1alpha.types.question import Interpretation
4846
from google.cloud.dataqna_v1alpha.types.question import InterpretationStructure
47+
from google.cloud.dataqna_v1alpha.types.question import InterpretError
4948
from google.cloud.dataqna_v1alpha.types.question import Question
49+
from google.cloud.dataqna_v1alpha.types.question import InterpretEntity
5050
from google.cloud.dataqna_v1alpha.types.question_service import CreateQuestionRequest
5151
from google.cloud.dataqna_v1alpha.types.question_service import ExecuteQuestionRequest
5252
from google.cloud.dataqna_v1alpha.types.question_service import GetQuestionRequest
@@ -57,30 +57,30 @@
5757
from google.cloud.dataqna_v1alpha.types.user_feedback import UserFeedback
5858

5959
__all__ = (
60-
"AnnotatedString",
61-
"AutoSuggestionServiceAsyncClient",
6260
"AutoSuggestionServiceClient",
61+
"AutoSuggestionServiceAsyncClient",
62+
"QuestionServiceClient",
63+
"QuestionServiceAsyncClient",
64+
"AnnotatedString",
65+
"Suggestion",
66+
"SuggestionInfo",
67+
"SuggestQueriesRequest",
68+
"SuggestQueriesResponse",
69+
"SuggestionType",
6370
"BigQueryJob",
64-
"CreateQuestionRequest",
6571
"DataQuery",
6672
"DebugFlags",
67-
"ExecuteQuestionRequest",
6873
"ExecutionInfo",
69-
"GetQuestionRequest",
70-
"GetUserFeedbackRequest",
7174
"HumanReadable",
72-
"InterpretEntity",
73-
"InterpretError",
7475
"Interpretation",
7576
"InterpretationStructure",
77+
"InterpretError",
7678
"Question",
77-
"QuestionServiceAsyncClient",
78-
"QuestionServiceClient",
79-
"SuggestQueriesRequest",
80-
"SuggestQueriesResponse",
81-
"Suggestion",
82-
"SuggestionInfo",
83-
"SuggestionType",
79+
"InterpretEntity",
80+
"CreateQuestionRequest",
81+
"ExecuteQuestionRequest",
82+
"GetQuestionRequest",
83+
"GetUserFeedbackRequest",
8484
"UpdateUserFeedbackRequest",
8585
"UserFeedback",
8686
)

google/cloud/dataqna_v1alpha/__init__.py

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# -*- coding: utf-8 -*-
2-
32
# Copyright 2020 Google LLC
43
#
54
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -16,32 +15,36 @@
1615
#
1716

1817
from .services.auto_suggestion_service import AutoSuggestionServiceClient
18+
from .services.auto_suggestion_service import AutoSuggestionServiceAsyncClient
1919
from .services.question_service import QuestionServiceClient
20+
from .services.question_service import QuestionServiceAsyncClient
21+
2022
from .types.annotated_string import AnnotatedString
21-
from .types.auto_suggestion_service import SuggestQueriesRequest
22-
from .types.auto_suggestion_service import SuggestQueriesResponse
2323
from .types.auto_suggestion_service import Suggestion
2424
from .types.auto_suggestion_service import SuggestionInfo
25+
from .types.auto_suggestion_service import SuggestQueriesRequest
26+
from .types.auto_suggestion_service import SuggestQueriesResponse
2527
from .types.auto_suggestion_service import SuggestionType
2628
from .types.question import BigQueryJob
2729
from .types.question import DataQuery
2830
from .types.question import DebugFlags
2931
from .types.question import ExecutionInfo
3032
from .types.question import HumanReadable
31-
from .types.question import InterpretEntity
32-
from .types.question import InterpretError
3333
from .types.question import Interpretation
3434
from .types.question import InterpretationStructure
35+
from .types.question import InterpretError
3536
from .types.question import Question
37+
from .types.question import InterpretEntity
3638
from .types.question_service import CreateQuestionRequest
3739
from .types.question_service import ExecuteQuestionRequest
3840
from .types.question_service import GetQuestionRequest
3941
from .types.question_service import GetUserFeedbackRequest
4042
from .types.question_service import UpdateUserFeedbackRequest
4143
from .types.user_feedback import UserFeedback
4244

43-
4445
__all__ = (
46+
"AutoSuggestionServiceAsyncClient",
47+
"QuestionServiceAsyncClient",
4548
"AnnotatedString",
4649
"AutoSuggestionServiceClient",
4750
"BigQueryJob",
@@ -58,12 +61,12 @@
5861
"Interpretation",
5962
"InterpretationStructure",
6063
"Question",
64+
"QuestionServiceClient",
6165
"SuggestQueriesRequest",
6266
"SuggestQueriesResponse",
6367
"Suggestion",
6468
"SuggestionInfo",
6569
"SuggestionType",
6670
"UpdateUserFeedbackRequest",
6771
"UserFeedback",
68-
"QuestionServiceClient",
6972
)
Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
{
2+
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
3+
"language": "python",
4+
"libraryPackage": "google.cloud.dataqna_v1alpha",
5+
"protoPackage": "google.cloud.dataqna.v1alpha",
6+
"schema": "1.0",
7+
"services": {
8+
"AutoSuggestionService": {
9+
"clients": {
10+
"grpc": {
11+
"libraryClient": "AutoSuggestionServiceClient",
12+
"rpcs": {
13+
"SuggestQueries": {
14+
"methods": [
15+
"suggest_queries"
16+
]
17+
}
18+
}
19+
},
20+
"grpc-async": {
21+
"libraryClient": "AutoSuggestionServiceAsyncClient",
22+
"rpcs": {
23+
"SuggestQueries": {
24+
"methods": [
25+
"suggest_queries"
26+
]
27+
}
28+
}
29+
}
30+
}
31+
},
32+
"QuestionService": {
33+
"clients": {
34+
"grpc": {
35+
"libraryClient": "QuestionServiceClient",
36+
"rpcs": {
37+
"CreateQuestion": {
38+
"methods": [
39+
"create_question"
40+
]
41+
},
42+
"ExecuteQuestion": {
43+
"methods": [
44+
"execute_question"
45+
]
46+
},
47+
"GetQuestion": {
48+
"methods": [
49+
"get_question"
50+
]
51+
},
52+
"GetUserFeedback": {
53+
"methods": [
54+
"get_user_feedback"
55+
]
56+
},
57+
"UpdateUserFeedback": {
58+
"methods": [
59+
"update_user_feedback"
60+
]
61+
}
62+
}
63+
},
64+
"grpc-async": {
65+
"libraryClient": "QuestionServiceAsyncClient",
66+
"rpcs": {
67+
"CreateQuestion": {
68+
"methods": [
69+
"create_question"
70+
]
71+
},
72+
"ExecuteQuestion": {
73+
"methods": [
74+
"execute_question"
75+
]
76+
},
77+
"GetQuestion": {
78+
"methods": [
79+
"get_question"
80+
]
81+
},
82+
"GetUserFeedback": {
83+
"methods": [
84+
"get_user_feedback"
85+
]
86+
},
87+
"UpdateUserFeedback": {
88+
"methods": [
89+
"update_user_feedback"
90+
]
91+
}
92+
}
93+
}
94+
}
95+
}
96+
}
97+
}

google/cloud/dataqna_v1alpha/services/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# -*- coding: utf-8 -*-
2-
32
# Copyright 2020 Google LLC
43
#
54
# Licensed under the Apache License, Version 2.0 (the "License");

google/cloud/dataqna_v1alpha/services/auto_suggestion_service/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# -*- coding: utf-8 -*-
2-
32
# Copyright 2020 Google LLC
43
#
54
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,7 +13,6 @@
1413
# See the License for the specific language governing permissions and
1514
# limitations under the License.
1615
#
17-
1816
from .client import AutoSuggestionServiceClient
1917
from .async_client import AutoSuggestionServiceAsyncClient
2018

0 commit comments

Comments
 (0)