Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: enable "rest" transport in Python for services supporting numeric enums #863

Merged
merged 40 commits into from
Apr 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
757bb79
feat: enable "rest" transport in Python for services supporting numer…
gcf-owl-bot[bot] Feb 8, 2023
49f7821
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] Feb 8, 2023
b669896
feat: Add google.api.method.signature to update methods
gcf-owl-bot[bot] Feb 15, 2023
2e52af5
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] Feb 15, 2023
e98a9d5
Merge branch 'main' into owl-bot-copy
acocuzzo Feb 15, 2023
f5e2cb4
docs: Update Pub/Sub topic retention limit from 7 days to 31 days
gcf-owl-bot[bot] Feb 15, 2023
25d08a7
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] Feb 15, 2023
0d27486
docs: Replacing HTML code with Markdown
gcf-owl-bot[bot] Feb 15, 2023
8898102
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] Feb 15, 2023
15bc11b
docs: Clarify subscription description
gcf-owl-bot[bot] Feb 15, 2023
3780c99
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] Feb 15, 2023
2c8ae9d
docs: Clarify BigQueryConfig PERMISSION_DENIED state
gcf-owl-bot[bot] Feb 15, 2023
4182d7e
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] Feb 15, 2023
a60b695
fix: Add service_yaml_parameters to py_gapic_library BUILD.bazel targets
gcf-owl-bot[bot] Feb 16, 2023
ccc0291
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] Feb 16, 2023
eb045b1
feat: Add temporary_failed_ack_ids to ModifyAckDeadlineConfirmation
gcf-owl-bot[bot] Feb 17, 2023
8f96fba
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] Feb 17, 2023
2368d61
feat: Make INTERNAL a retryable error for Pull
gcf-owl-bot[bot] Feb 17, 2023
f886462
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] Feb 17, 2023
070da3d
Merge branch 'main' into owl-bot-copy
acocuzzo Feb 17, 2023
99b0734
Add rest to system tests
acocuzzo Feb 17, 2023
5ec0d1d
add publish_messages
acocuzzo Feb 18, 2023
a9ee10c
add publish_messages
acocuzzo Feb 18, 2023
64eaec4
add publish_large_messages
acocuzzo Feb 18, 2023
1120e5a
Add rest transport to system tests
acocuzzo Feb 18, 2023
96ffd63
Fix linter errors
acocuzzo Feb 18, 2023
14231a7
remove streamingpull from rest system tests
acocuzzo Feb 19, 2023
4498995
docs: Add x-ref for ordering messages
gcf-owl-bot[bot] Feb 21, 2023
f33d849
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] Feb 21, 2023
f3d2337
Merge branch 'main' into owl-bot-copy
acocuzzo Feb 23, 2023
11c2003
chore: Update gapic-generator-python to v1.8.5
gcf-owl-bot[bot] Feb 24, 2023
c93da3f
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] Feb 24, 2023
45647c8
chore: Update gapic-generator-python to v1.9.0
gcf-owl-bot[bot] Mar 17, 2023
137f1f8
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] Mar 17, 2023
1823d7b
docs: Fix formatting of request arg in docstring
gcf-owl-bot[bot] Mar 22, 2023
d3e0448
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] Mar 22, 2023
34ef473
Merge branch 'main' into owl-bot-copy
acocuzzo Apr 1, 2023
e5bc982
Merge branch 'main' into owl-bot-copy
acocuzzo Apr 4, 2023
58ff11a
remove iam_policy and large messages from REST testing
acocuzzo Apr 5, 2023
73a1f4d
Merge branch 'main' into owl-bot-copy
acocuzzo Apr 5, 2023
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
190 changes: 190 additions & 0 deletions google/pubsub_v1/gapic_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,56 @@
]
}
}
},
"rest": {
"libraryClient": "PublisherClient",
"rpcs": {
"CreateTopic": {
"methods": [
"create_topic"
]
},
"DeleteTopic": {
"methods": [
"delete_topic"
]
},
"DetachSubscription": {
"methods": [
"detach_subscription"
]
},
"GetTopic": {
"methods": [
"get_topic"
]
},
"ListTopicSnapshots": {
"methods": [
"list_topic_snapshots"
]
},
"ListTopicSubscriptions": {
"methods": [
"list_topic_subscriptions"
]
},
"ListTopics": {
"methods": [
"list_topics"
]
},
"Publish": {
"methods": [
"publish"
]
},
"UpdateTopic": {
"methods": [
"update_topic"
]
}
}
}
}
},
Expand Down Expand Up @@ -220,6 +270,61 @@
]
}
}
},
"rest": {
"libraryClient": "SchemaServiceClient",
"rpcs": {
"CommitSchema": {
"methods": [
"commit_schema"
]
},
"CreateSchema": {
"methods": [
"create_schema"
]
},
"DeleteSchema": {
"methods": [
"delete_schema"
]
},
"DeleteSchemaRevision": {
"methods": [
"delete_schema_revision"
]
},
"GetSchema": {
"methods": [
"get_schema"
]
},
"ListSchemaRevisions": {
"methods": [
"list_schema_revisions"
]
},
"ListSchemas": {
"methods": [
"list_schemas"
]
},
"RollbackSchema": {
"methods": [
"rollback_schema"
]
},
"ValidateMessage": {
"methods": [
"validate_message"
]
},
"ValidateSchema": {
"methods": [
"validate_schema"
]
}
}
}
}
},
Expand Down Expand Up @@ -394,6 +499,91 @@
]
}
}
},
"rest": {
"libraryClient": "SubscriberClient",
"rpcs": {
"Acknowledge": {
"methods": [
"acknowledge"
]
},
"CreateSnapshot": {
"methods": [
"create_snapshot"
]
},
"CreateSubscription": {
"methods": [
"create_subscription"
]
},
"DeleteSnapshot": {
"methods": [
"delete_snapshot"
]
},
"DeleteSubscription": {
"methods": [
"delete_subscription"
]
},
"GetSnapshot": {
"methods": [
"get_snapshot"
]
},
"GetSubscription": {
"methods": [
"get_subscription"
]
},
"ListSnapshots": {
"methods": [
"list_snapshots"
]
},
"ListSubscriptions": {
"methods": [
"list_subscriptions"
]
},
"ModifyAckDeadline": {
"methods": [
"modify_ack_deadline"
]
},
"ModifyPushConfig": {
"methods": [
"modify_push_config"
]
},
"Pull": {
"methods": [
"pull"
]
},
"Seek": {
"methods": [
"seek"
]
},
"StreamingPull": {
"methods": [
"streaming_pull"
]
},
"UpdateSnapshot": {
"methods": [
"update_snapshot"
]
},
"UpdateSubscription": {
"methods": [
"update_subscription"
]
}
}
}
}
}
Expand Down
2 changes: 2 additions & 0 deletions google/pubsub_v1/services/publisher/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
from .transports.base import PublisherTransport, DEFAULT_CLIENT_INFO
from .transports.grpc import PublisherGrpcTransport
from .transports.grpc_asyncio import PublisherGrpcAsyncIOTransport
from .transports.rest import PublisherRestTransport


class PublisherClientMeta(type):
Expand All @@ -73,6 +74,7 @@ class PublisherClientMeta(type):
_transport_registry = OrderedDict() # type: Dict[str, Type[PublisherTransport]]
_transport_registry["grpc"] = PublisherGrpcTransport
_transport_registry["grpc_asyncio"] = PublisherGrpcAsyncIOTransport
_transport_registry["rest"] = PublisherRestTransport

def get_transport_class(
cls,
Expand Down
5 changes: 5 additions & 0 deletions google/pubsub_v1/services/publisher/transports/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,20 @@
from .base import PublisherTransport
from .grpc import PublisherGrpcTransport
from .grpc_asyncio import PublisherGrpcAsyncIOTransport
from .rest import PublisherRestTransport
from .rest import PublisherRestInterceptor


# Compile a registry of transports.
_transport_registry = OrderedDict() # type: Dict[str, Type[PublisherTransport]]
_transport_registry["grpc"] = PublisherGrpcTransport
_transport_registry["grpc_asyncio"] = PublisherGrpcAsyncIOTransport
_transport_registry["rest"] = PublisherRestTransport

__all__ = (
"PublisherTransport",
"PublisherGrpcTransport",
"PublisherGrpcAsyncIOTransport",
"PublisherRestTransport",
"PublisherRestInterceptor",
)
Loading