Skip to content

Commit

Permalink
Merge branch 'main' into owl-bot-copy-packages-google-cloud-parallels…
Browse files Browse the repository at this point in the history
…tore
  • Loading branch information
ohmayr authored Oct 4, 2024
2 parents fbe0cf6 + c169348 commit 954de88
Show file tree
Hide file tree
Showing 82 changed files with 7,671 additions and 552 deletions.
5 changes: 3 additions & 2 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"packages/google-cloud-dataform": "0.5.11",
"packages/google-cloud-datalabeling": "1.10.5",
"packages/google-cloud-dataplex": "2.2.2",
"packages/google-cloud-dataproc": "5.12.0",
"packages/google-cloud-dataproc": "5.13.0",
"packages/google-cloud-dataproc-metastore": "1.15.5",
"packages/google-cloud-datastream": "1.9.5",
"packages/google-cloud-deploy": "2.0.1",
Expand Down Expand Up @@ -117,6 +117,7 @@
"packages/google-cloud-network-services": "0.5.14",
"packages/google-cloud-notebooks": "1.10.5",
"packages/google-cloud-optimization": "1.8.5",
"packages/google-cloud-oracledatabase": "0.1.0",
"packages/google-cloud-orchestration-airflow": "1.14.0",
"packages/google-cloud-os-config": "1.17.5",
"packages/google-cloud-os-login": "2.14.6",
Expand Down Expand Up @@ -183,7 +184,7 @@
"packages/google-maps-fleetengine-delivery": "0.2.4",
"packages/google-maps-mapsplatformdatasets": "0.4.2",
"packages/google-maps-places": "0.1.18",
"packages/google-maps-routeoptimization": "0.1.3",
"packages/google-maps-routeoptimization": "0.1.4",
"packages/google-maps-routing": "0.6.10",
"packages/google-maps-solar": "0.1.2",
"packages/google-shopping-css": "0.1.8",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "0.17.28" # {x-release-please-version}
__version__ = "0.0.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "0.17.28" # {x-release-please-version}
__version__ = "0.0.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,11 @@ class InstancePolicyOrTemplate(proto.Message):
instance_template (str):
Name of an instance template used to create VMs. Named the
field as 'instance_template' instead of 'template' to avoid
c++ keyword conflict.
C++ keyword conflict.
Batch only supports global instance templates. You can
specify the global instance template as a full or partial
URL.
This field is a member of `oneof`_ ``policy_template``.
install_gpu_drivers (bool):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "0.17.28" # {x-release-please-version}
__version__ = "0.0.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"language": "PYTHON",
"name": "google-cloud-batch",
"version": "0.17.28"
"version": "0.1.0"
},
"snippets": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"language": "PYTHON",
"name": "google-cloud-batch",
"version": "0.17.28"
"version": "0.1.0"
},
"snippets": [
{
Expand Down
12 changes: 12 additions & 0 deletions packages/google-cloud-dataproc/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,18 @@

[1]: https://pypi.org/project/google-cloud-dataproc/#history

## [5.13.0](https://github.com/googleapis/google-cloud-python/compare/google-cloud-dataproc-v5.12.0...google-cloud-dataproc-v5.13.0) (2024-09-30)


### Features

* add support for Spark Connect sessions in Dataproc Serverless for Spark ([0d35003](https://github.com/googleapis/google-cloud-python/commit/0d350038411bbdcf10eb7fb6820084abcb362c5a))


### Documentation

* update docs for `filter` field in `ListSessionsRequest` ([0d35003](https://github.com/googleapis/google-cloud-python/commit/0d350038411bbdcf10eb7fb6820084abcb362c5a))

## [5.12.0](https://github.com/googleapis/google-cloud-python/compare/google-cloud-dataproc-v5.11.0...google-cloud-dataproc-v5.12.0) (2024-09-16)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@
ListSessionsRequest,
ListSessionsResponse,
Session,
SparkConnectConfig,
TerminateSessionRequest,
)
from google.cloud.dataproc_v1.types.shared import (
Expand Down Expand Up @@ -362,6 +363,7 @@
"ListSessionsRequest",
"ListSessionsResponse",
"Session",
"SparkConnectConfig",
"TerminateSessionRequest",
"AutotuningConfig",
"EnvironmentConfig",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "5.12.0" # {x-release-please-version}
__version__ = "5.13.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@
ListSessionsRequest,
ListSessionsResponse,
Session,
SparkConnectConfig,
TerminateSessionRequest,
)
from .types.shared import (
Expand Down Expand Up @@ -353,6 +354,7 @@
"ShieldedInstanceConfig",
"SoftwareConfig",
"SparkBatch",
"SparkConnectConfig",
"SparkHistoryServerConfig",
"SparkJob",
"SparkRBatch",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "5.12.0" # {x-release-please-version}
__version__ = "5.13.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@
ListSessionsRequest,
ListSessionsResponse,
Session,
SparkConnectConfig,
TerminateSessionRequest,
)
from .shared import (
Expand Down Expand Up @@ -295,6 +296,7 @@
"ListSessionsRequest",
"ListSessionsResponse",
"Session",
"SparkConnectConfig",
"TerminateSessionRequest",
"AutotuningConfig",
"EnvironmentConfig",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,11 @@ class DeleteSessionTemplateRequest(proto.Message):
class SessionTemplate(proto.Message):
r"""A representation of a session template.
This message has `oneof`_ fields (mutually exclusive fields).
For each oneof, at most one member field can be set at the same time.
Setting any member of the oneof automatically clears all other
members.
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
Attributes:
Expand All @@ -189,6 +194,10 @@ class SessionTemplate(proto.Message):
jupyter_session (google.cloud.dataproc_v1.types.JupyterConfig):
Optional. Jupyter session config.
This field is a member of `oneof`_ ``session_config``.
spark_connect_session (google.cloud.dataproc_v1.types.SparkConnectConfig):
Optional. Spark Connect session config.
This field is a member of `oneof`_ ``session_config``.
creator (str):
Output only. The email address of the user
Expand Down Expand Up @@ -236,6 +245,12 @@ class SessionTemplate(proto.Message):
oneof="session_config",
message=sessions.JupyterConfig,
)
spark_connect_session: sessions.SparkConnectConfig = proto.Field(
proto.MESSAGE,
number=11,
oneof="session_config",
message=sessions.SparkConnectConfig,
)
creator: str = proto.Field(
proto.STRING,
number=5,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"DeleteSessionRequest",
"Session",
"JupyterConfig",
"SparkConnectConfig",
},
)

Expand Down Expand Up @@ -125,13 +126,16 @@ class ListSessionsRequest(proto.Message):
various fields in each session resource. Filters are case
sensitive, and may contain multiple clauses combined with
logical operators (AND, OR). Supported fields are
``session_id``, ``session_uuid``, ``state``, and
``create_time``.
``session_id``, ``session_uuid``, ``state``,
``create_time``, and ``labels``.
Example:
``state = ACTIVE and create_time < "2023-01-01T00:00:00Z"``
is a filter for sessions in an ACTIVE state that were
created before 2023-01-01.
``state = ACTIVE and labels.environment=production`` is a
filter for sessions in an ACTIVE state that have a
production environment label.
See https://google.aip.dev/assets/misc/ebnf-filtering.txt
for a detailed description of the filter syntax and a list
Expand Down Expand Up @@ -249,6 +253,11 @@ class DeleteSessionRequest(proto.Message):
class Session(proto.Message):
r"""A representation of a session.
This message has `oneof`_ fields (mutually exclusive fields).
For each oneof, at most one member field can be set at the same time.
Setting any member of the oneof automatically clears all other
members.
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
Attributes:
Expand All @@ -264,6 +273,10 @@ class Session(proto.Message):
jupyter_session (google.cloud.dataproc_v1.types.JupyterConfig):
Optional. Jupyter session config.
This field is a member of `oneof`_ ``session_config``.
spark_connect_session (google.cloud.dataproc_v1.types.SparkConnectConfig):
Optional. Spark Connect session config.
This field is a member of `oneof`_ ``session_config``.
runtime_info (google.cloud.dataproc_v1.types.RuntimeInfo):
Output only. Runtime information about
Expand Down Expand Up @@ -388,6 +401,12 @@ class SessionStateHistory(proto.Message):
oneof="session_config",
message="JupyterConfig",
)
spark_connect_session: "SparkConnectConfig" = proto.Field(
proto.MESSAGE,
number=17,
oneof="session_config",
message="SparkConnectConfig",
)
runtime_info: shared.RuntimeInfo = proto.Field(
proto.MESSAGE,
number=6,
Expand Down Expand Up @@ -478,4 +497,8 @@ class Kernel(proto.Enum):
)


class SparkConnectConfig(proto.Message):
r"""Spark Connect configuration for an interactive session."""


__all__ = tuple(sorted(__protobuf__.manifest))
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"language": "PYTHON",
"name": "google-cloud-dataproc",
"version": "5.12.0"
"version": "5.13.0"
},
"snippets": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3293,6 +3293,7 @@ def test_create_session_rest(request_type):
"uuid": "uuid_value",
"create_time": {"seconds": 751, "nanos": 543},
"jupyter_session": {"kernel": 1, "display_name": "display_name_value"},
"spark_connect_session": {},
"runtime_info": {
"endpoints": {},
"output_uri": "output_uri_value",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3412,6 +3412,7 @@ def test_create_session_template_rest(request_type):
"description": "description_value",
"create_time": {"seconds": 751, "nanos": 543},
"jupyter_session": {"kernel": 1, "display_name": "display_name_value"},
"spark_connect_session": {},
"creator": "creator_value",
"labels": {},
"runtime_config": {
Expand Down Expand Up @@ -3850,6 +3851,7 @@ def test_update_session_template_rest(request_type):
"description": "description_value",
"create_time": {"seconds": 751, "nanos": 543},
"jupyter_session": {"kernel": 1, "display_name": "display_name_value"},
"spark_connect_session": {},
"creator": "creator_value",
"labels": {},
"runtime_config": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "2.32.0" # {x-release-please-version}
__version__ = "0.0.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "2.32.0" # {x-release-please-version}
__version__ = "0.0.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -913,7 +913,7 @@ async def sample_streaming_analyze_content():
# Initialize request argument(s)
audio_config = dialogflow_v2.InputAudioConfig()
audio_config.audio_encoding = "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE"
audio_config.audio_encoding = "AUDIO_ENCODING_ALAW"
audio_config.sample_rate_hertz = 1817
audio_config.language_code = "language_code_value"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1409,7 +1409,7 @@ def sample_streaming_analyze_content():
# Initialize request argument(s)
audio_config = dialogflow_v2.InputAudioConfig()
audio_config.audio_encoding = "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE"
audio_config.audio_encoding = "AUDIO_ENCODING_ALAW"
audio_config.sample_rate_hertz = 1817
audio_config.language_code = "language_code_value"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ async def sample_detect_intent():
# Initialize request argument(s)
query_input = dialogflow_v2.QueryInput()
query_input.audio_config.audio_encoding = "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE"
query_input.audio_config.audio_encoding = "AUDIO_ENCODING_ALAW"
query_input.audio_config.sample_rate_hertz = 1817
query_input.audio_config.language_code = "language_code_value"
Expand Down Expand Up @@ -472,7 +472,7 @@ async def sample_streaming_detect_intent():
# Initialize request argument(s)
query_input = dialogflow_v2.QueryInput()
query_input.audio_config.audio_encoding = "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE"
query_input.audio_config.audio_encoding = "AUDIO_ENCODING_ALAW"
query_input.audio_config.sample_rate_hertz = 1817
query_input.audio_config.language_code = "language_code_value"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,7 @@ def sample_detect_intent():
# Initialize request argument(s)
query_input = dialogflow_v2.QueryInput()
query_input.audio_config.audio_encoding = "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE"
query_input.audio_config.audio_encoding = "AUDIO_ENCODING_ALAW"
query_input.audio_config.sample_rate_hertz = 1817
query_input.audio_config.language_code = "language_code_value"
Expand Down Expand Up @@ -944,7 +944,7 @@ def sample_streaming_detect_intent():
# Initialize request argument(s)
query_input = dialogflow_v2.QueryInput()
query_input.audio_config.audio_encoding = "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE"
query_input.audio_config.audio_encoding = "AUDIO_ENCODING_ALAW"
query_input.audio_config.sample_rate_hertz = 1817
query_input.audio_config.language_code = "language_code_value"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,9 @@ class AudioEncoding(proto.Enum):
5574. In other words, each RTP header is replaced with a
single byte containing the block length. Only Speex wideband
is supported. ``sample_rate_hertz`` must be 16000.
AUDIO_ENCODING_ALAW (8):
8-bit samples that compand 13-bit audio
samples using G.711 PCMU/a-law.
"""
AUDIO_ENCODING_UNSPECIFIED = 0
AUDIO_ENCODING_LINEAR_16 = 1
Expand All @@ -159,6 +162,7 @@ class AudioEncoding(proto.Enum):
AUDIO_ENCODING_AMR_WB = 5
AUDIO_ENCODING_OGG_OPUS = 6
AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE = 7
AUDIO_ENCODING_ALAW = 8


class SpeechModelVariant(proto.Enum):
Expand Down Expand Up @@ -258,13 +262,17 @@ class OutputAudioEncoding(proto.Enum):
OUTPUT_AUDIO_ENCODING_MULAW (5):
8-bit samples that compand 14-bit audio
samples using G.711 PCMU/mu-law.
OUTPUT_AUDIO_ENCODING_ALAW (6):
8-bit samples that compand 13-bit audio
samples using G.711 PCMU/a-law.
"""
OUTPUT_AUDIO_ENCODING_UNSPECIFIED = 0
OUTPUT_AUDIO_ENCODING_LINEAR_16 = 1
OUTPUT_AUDIO_ENCODING_MP3 = 2
OUTPUT_AUDIO_ENCODING_MP3_64_KBPS = 4
OUTPUT_AUDIO_ENCODING_OGG_OPUS = 3
OUTPUT_AUDIO_ENCODING_MULAW = 5
OUTPUT_AUDIO_ENCODING_ALAW = 6


class SpeechContext(proto.Message):
Expand Down
Loading

0 comments on commit 954de88

Please sign in to comment.