Skip to content

Commit b254665

Browse files
feat: added EndpointLocation (v1, v1beta, v1alpha) (#11763)
BEGIN_COMMIT_OVERRIDE feat: added EndpointLocation (v1, v1beta, v1alpha) END_COMMIT_OVERRIDE - [ ] Regenerate this pull request now. PiperOrigin-RevId: 568664317 Source-Link: googleapis/googleapis@9b6656e Source-Link: googleapis/googleapis-gen@1cdc6ea Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRhdGFwcm9jLW1ldGFzdG9yZS8uT3dsQm90LnlhbWwiLCJoIjoiMWNkYzZlYTRiMDY4ZWU5NzlmMjIxNDNlMWFmMzk5MTlkYzRiMTlkOSJ9 --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: ohmayr <[email protected]>
1 parent bfc25b7 commit b254665

File tree

15 files changed

+106
-43
lines changed

15 files changed

+106
-43
lines changed

packages/google-cloud-dataproc-metastore/CONTRIBUTING.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,12 +143,12 @@ Running System Tests
143143
$ nox -s system
144144

145145
# Run a single system test
146-
$ nox -s system- -- -k <name of test>
146+
$ nox -s system-3.11 -- -k <name of test>
147147

148148

149149
.. note::
150150

151-
System tests are only configured to run under Python.
151+
System tests are only configured to run under Python 3.8, 3.9, 3.10 and 3.11.
152152
For expediency, we do not run them in older versions of Python 3.
153153

154154
This alone will not run the tests. You'll need to change some local

packages/google-cloud-dataproc-metastore/google/cloud/metastore/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "1.12.1" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-cloud-dataproc-metastore/google/cloud/metastore_v1/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "1.12.1" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-cloud-dataproc-metastore/google/cloud/metastore_v1/types/metastore.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -579,6 +579,8 @@ class AuxiliaryVersionConfig(proto.Message):
579579
class NetworkConfig(proto.Message):
580580
r"""Network configuration for the Dataproc Metastore service.
581581
582+
Next available ID: 4
583+
582584
Attributes:
583585
consumers (MutableSequence[google.cloud.metastore_v1.types.NetworkConfig.Consumer]):
584586
Immutable. The consumer-side network
@@ -589,6 +591,7 @@ class NetworkConfig(proto.Message):
589591
class Consumer(proto.Message):
590592
r"""Contains information of the customer's network
591593
configurations.
594+
Next available ID: 5
592595
593596
594597
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
@@ -609,6 +612,9 @@ class Consumer(proto.Message):
609612
endpoint_uri (str):
610613
Output only. The URI of the endpoint used to
611614
access the metastore service.
615+
endpoint_location (str):
616+
Output only. The location of the endpoint URI. Format:
617+
``projects/{project}/locations/{location}``.
612618
"""
613619

614620
subnetwork: str = proto.Field(
@@ -620,6 +626,10 @@ class Consumer(proto.Message):
620626
proto.STRING,
621627
number=3,
622628
)
629+
endpoint_location: str = proto.Field(
630+
proto.STRING,
631+
number=4,
632+
)
623633

624634
consumers: MutableSequence[Consumer] = proto.RepeatedField(
625635
proto.MESSAGE,

packages/google-cloud-dataproc-metastore/google/cloud/metastore_v1alpha/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "1.12.1" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-cloud-dataproc-metastore/google/cloud/metastore_v1alpha/types/metastore.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -672,6 +672,8 @@ class AuxiliaryVersionConfig(proto.Message):
672672
class NetworkConfig(proto.Message):
673673
r"""Network configuration for the Dataproc Metastore service.
674674
675+
Next available ID: 4
676+
675677
Attributes:
676678
consumers (MutableSequence[google.cloud.metastore_v1alpha.types.NetworkConfig.Consumer]):
677679
Immutable. The consumer-side network
@@ -686,6 +688,7 @@ class NetworkConfig(proto.Message):
686688
class Consumer(proto.Message):
687689
r"""Contains information of the customer's network
688690
configurations.
691+
Next available ID: 5
689692
690693
691694
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
@@ -706,6 +709,9 @@ class Consumer(proto.Message):
706709
endpoint_uri (str):
707710
Output only. The URI of the endpoint used to
708711
access the metastore service.
712+
endpoint_location (str):
713+
Output only. The location of the endpoint URI. Format:
714+
``projects/{project}/locations/{location}``.
709715
"""
710716

711717
subnetwork: str = proto.Field(
@@ -717,6 +723,10 @@ class Consumer(proto.Message):
717723
proto.STRING,
718724
number=3,
719725
)
726+
endpoint_location: str = proto.Field(
727+
proto.STRING,
728+
number=4,
729+
)
720730

721731
consumers: MutableSequence[Consumer] = proto.RepeatedField(
722732
proto.MESSAGE,

packages/google-cloud-dataproc-metastore/google/cloud/metastore_v1beta/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "1.12.1" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-cloud-dataproc-metastore/google/cloud/metastore_v1beta/types/metastore.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -672,6 +672,8 @@ class AuxiliaryVersionConfig(proto.Message):
672672
class NetworkConfig(proto.Message):
673673
r"""Network configuration for the Dataproc Metastore service.
674674
675+
Next available ID: 4
676+
675677
Attributes:
676678
consumers (MutableSequence[google.cloud.metastore_v1beta.types.NetworkConfig.Consumer]):
677679
Immutable. The consumer-side network
@@ -686,6 +688,7 @@ class NetworkConfig(proto.Message):
686688
class Consumer(proto.Message):
687689
r"""Contains information of the customer's network
688690
configurations.
691+
Next available ID: 5
689692
690693
691694
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
@@ -706,6 +709,9 @@ class Consumer(proto.Message):
706709
endpoint_uri (str):
707710
Output only. The URI of the endpoint used to
708711
access the metastore service.
712+
endpoint_location (str):
713+
Output only. The location of the endpoint URI. Format:
714+
``projects/{project}/locations/{location}``.
709715
"""
710716

711717
subnetwork: str = proto.Field(
@@ -717,6 +723,10 @@ class Consumer(proto.Message):
717723
proto.STRING,
718724
number=3,
719725
)
726+
endpoint_location: str = proto.Field(
727+
proto.STRING,
728+
number=4,
729+
)
720730

721731
consumers: MutableSequence[Consumer] = proto.RepeatedField(
722732
proto.MESSAGE,

packages/google-cloud-dataproc-metastore/noxfile.py

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
UNIT_TEST_EXTRAS = []
4747
UNIT_TEST_EXTRAS_BY_PYTHON = {}
4848

49-
SYSTEM_TEST_PYTHON_VERSIONS = []
49+
SYSTEM_TEST_PYTHON_VERSIONS = ["3.8", "3.9", "3.10", "3.11"]
5050
SYSTEM_TEST_STANDARD_DEPENDENCIES = [
5151
"mock",
5252
"pytest",
@@ -405,24 +405,3 @@ def prerelease_deps(session):
405405
session.run("python", "-c", "import google.auth; print(google.auth.__version__)")
406406

407407
session.run("py.test", "tests/unit")
408-
409-
system_test_path = os.path.join("tests", "system.py")
410-
system_test_folder_path = os.path.join("tests", "system")
411-
412-
# Only run system tests if found.
413-
if os.path.exists(system_test_path):
414-
session.run(
415-
"py.test",
416-
"--verbose",
417-
f"--junitxml=system_{session.python}_sponge_log.xml",
418-
system_test_path,
419-
*session.posargs,
420-
)
421-
if os.path.exists(system_test_folder_path):
422-
session.run(
423-
"py.test",
424-
"--verbose",
425-
f"--junitxml=system_{session.python}_sponge_log.xml",
426-
system_test_folder_path,
427-
*session.posargs,
428-
)

packages/google-cloud-dataproc-metastore/samples/generated_samples/snippet_metadata_google.cloud.metastore.v1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
],
99
"language": "PYTHON",
1010
"name": "google-cloud-dataproc-metastore",
11-
"version": "1.12.1"
11+
"version": "0.1.0"
1212
},
1313
"snippets": [
1414
{

0 commit comments

Comments
 (0)