Skip to content

Commit

Permalink
fix!: [google-cloud-parallelstore] An existing field source_gcs_uri
Browse files Browse the repository at this point in the history
… is renamed to `source_gcs_bucket` in message `.google.cloud.parallelstore.v1beta.ImportDataRequest` (#12678)

BEGIN_COMMIT_OVERRIDE
fix!: An existing field `source_gcs_uri` is renamed to
`source_gcs_bucket` in message
`.google.cloud.parallelstore.v1beta.ImportDataRequest`
fix!: An existing field `destination_path` is renamed to
`destination_parallelstore` in message
`.google.cloud.parallelstore.v1beta.ImportDataRequest`
fix!: An existing field `source_path` is renamed to
`source_parallelstore` in message
`.google.cloud.parallelstore.v1beta.ExportDataRequest`
fix!: An existing field `destination_gcs_uri` is renamed to
`destination_gcs_bucket` in message
`.google.cloud.parallelstore.v1beta.ExportDataRequest`
feat: A new message `SourceGcsBucket` is added
feat: A new message `DestinationGcsBucket` is added
feat: A new message `SourceParallelstore` is added
feat: A new message `DestinationParallelstore` is added
END_COMMIT_OVERRIDE

- [ ] Regenerate this pull request now.

fix!: An existing field `destination_path` is renamed to
`destination_parallelstore` in message
`.google.cloud.parallelstore.v1beta.ImportDataRequest`
fix!: An existing field `source_path` is renamed to
`source_parallelstore` in message
`.google.cloud.parallelstore.v1beta.ExportDataRequest`
fix!: An existing field `destination_gcs_uri` is renamed to
`destination_gcs_bucket` in message
`.google.cloud.parallelstore.v1beta.ExportDataRequest`
feat: A new message `SourceGcsBucket` is added
feat: A new message `DestinationGcsBucket` is added
feat: A new message `SourceParallelstore` is added
feat: A new message `DestinationParallelstore` is added

PiperOrigin-RevId: 631870782

Source-Link:
googleapis/googleapis@29bdbeb

Source-Link:
googleapis/googleapis-gen@c8f3df6
Copy-Tag:
eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXBhcmFsbGVsc3RvcmUvLk93bEJvdC55YW1sIiwiaCI6ImM4ZjNkZjZiYjUyMTExMDY1MjhmYmY2N2YzNGM1ZTNhZGY5NmVlZTEifQ==

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: ohmayr <omairnaveed@ymail.com>
  • Loading branch information
3 people committed May 10, 2024
1 parent f38aae4 commit e3c48d7
Show file tree
Hide file tree
Showing 15 changed files with 175 additions and 79 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
from google.cloud.parallelstore_v1beta.types.parallelstore import (
CreateInstanceRequest,
DeleteInstanceRequest,
DestinationGcsBucket,
DestinationParallelstore,
ExportDataMetadata,
ExportDataRequest,
ExportDataResponse,
Expand All @@ -38,6 +40,8 @@
ListInstancesRequest,
ListInstancesResponse,
OperationMetadata,
SourceGcsBucket,
SourceParallelstore,
TransferCounters,
TransferOperationMetadata,
TransferType,
Expand All @@ -49,6 +53,8 @@
"ParallelstoreAsyncClient",
"CreateInstanceRequest",
"DeleteInstanceRequest",
"DestinationGcsBucket",
"DestinationParallelstore",
"ExportDataMetadata",
"ExportDataRequest",
"ExportDataResponse",
Expand All @@ -60,6 +66,8 @@
"ListInstancesRequest",
"ListInstancesResponse",
"OperationMetadata",
"SourceGcsBucket",
"SourceParallelstore",
"TransferCounters",
"TransferOperationMetadata",
"UpdateInstanceRequest",
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.1.2" # {x-release-please-version}
__version__ = "0.0.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
from .types.parallelstore import (
CreateInstanceRequest,
DeleteInstanceRequest,
DestinationGcsBucket,
DestinationParallelstore,
ExportDataMetadata,
ExportDataRequest,
ExportDataResponse,
Expand All @@ -33,6 +35,8 @@
ListInstancesRequest,
ListInstancesResponse,
OperationMetadata,
SourceGcsBucket,
SourceParallelstore,
TransferCounters,
TransferOperationMetadata,
TransferType,
Expand All @@ -43,6 +47,8 @@
"ParallelstoreAsyncClient",
"CreateInstanceRequest",
"DeleteInstanceRequest",
"DestinationGcsBucket",
"DestinationParallelstore",
"ExportDataMetadata",
"ExportDataRequest",
"ExportDataResponse",
Expand All @@ -55,6 +61,8 @@
"ListInstancesResponse",
"OperationMetadata",
"ParallelstoreClient",
"SourceGcsBucket",
"SourceParallelstore",
"TransferCounters",
"TransferOperationMetadata",
"TransferType",
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.1.2" # {x-release-please-version}
__version__ = "0.0.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -960,9 +960,11 @@ async def sample_import_data():
client = parallelstore_v1beta.ParallelstoreAsyncClient()
# Initialize request argument(s)
source_gcs_bucket = parallelstore_v1beta.SourceGcsBucket()
source_gcs_bucket.uri = "uri_value"
request = parallelstore_v1beta.ImportDataRequest(
source_gcs_uri="source_gcs_uri_value",
destination_path="destination_path_value",
source_gcs_bucket=source_gcs_bucket,
name="name_value",
)
Expand Down Expand Up @@ -1064,9 +1066,11 @@ async def sample_export_data():
client = parallelstore_v1beta.ParallelstoreAsyncClient()
# Initialize request argument(s)
destination_gcs_bucket = parallelstore_v1beta.DestinationGcsBucket()
destination_gcs_bucket.uri = "uri_value"
request = parallelstore_v1beta.ExportDataRequest(
source_path="source_path_value",
destination_gcs_uri="destination_gcs_uri_value",
destination_gcs_bucket=destination_gcs_bucket,
name="name_value",
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1400,9 +1400,11 @@ def sample_import_data():
client = parallelstore_v1beta.ParallelstoreClient()
# Initialize request argument(s)
source_gcs_bucket = parallelstore_v1beta.SourceGcsBucket()
source_gcs_bucket.uri = "uri_value"
request = parallelstore_v1beta.ImportDataRequest(
source_gcs_uri="source_gcs_uri_value",
destination_path="destination_path_value",
source_gcs_bucket=source_gcs_bucket,
name="name_value",
)
Expand Down Expand Up @@ -1502,9 +1504,11 @@ def sample_export_data():
client = parallelstore_v1beta.ParallelstoreClient()
# Initialize request argument(s)
destination_gcs_bucket = parallelstore_v1beta.DestinationGcsBucket()
destination_gcs_bucket.uri = "uri_value"
request = parallelstore_v1beta.ExportDataRequest(
source_path="source_path_value",
destination_gcs_uri="destination_gcs_uri_value",
destination_gcs_bucket=destination_gcs_bucket,
name="name_value",
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
from .parallelstore import (
CreateInstanceRequest,
DeleteInstanceRequest,
DestinationGcsBucket,
DestinationParallelstore,
ExportDataMetadata,
ExportDataRequest,
ExportDataResponse,
Expand All @@ -27,6 +29,8 @@
ListInstancesRequest,
ListInstancesResponse,
OperationMetadata,
SourceGcsBucket,
SourceParallelstore,
TransferCounters,
TransferOperationMetadata,
TransferType,
Expand All @@ -36,6 +40,8 @@
__all__ = (
"CreateInstanceRequest",
"DeleteInstanceRequest",
"DestinationGcsBucket",
"DestinationParallelstore",
"ExportDataMetadata",
"ExportDataRequest",
"ExportDataResponse",
Expand All @@ -47,6 +53,8 @@
"ListInstancesRequest",
"ListInstancesResponse",
"OperationMetadata",
"SourceGcsBucket",
"SourceParallelstore",
"TransferCounters",
"TransferOperationMetadata",
"UpdateInstanceRequest",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@
"UpdateInstanceRequest",
"DeleteInstanceRequest",
"OperationMetadata",
"SourceGcsBucket",
"DestinationGcsBucket",
"SourceParallelstore",
"DestinationParallelstore",
"ImportDataRequest",
"ExportDataRequest",
"ImportDataResponse",
Expand Down Expand Up @@ -520,6 +524,68 @@ class OperationMetadata(proto.Message):
)


class SourceGcsBucket(proto.Message):
r"""Google Cloud Storage as a source.
Attributes:
uri (str):
Required. URI to a Cloud Storage object in format:
'gs://<bucket_name>/<path_inside_bucket>'.
"""

uri: str = proto.Field(
proto.STRING,
number=1,
)


class DestinationGcsBucket(proto.Message):
r"""Google Cloud Storage as a destination.
Attributes:
uri (str):
Required. URI to a Cloud Storage object in format:
'gs://<bucket_name>/<path_inside_bucket>'.
"""

uri: str = proto.Field(
proto.STRING,
number=1,
)


class SourceParallelstore(proto.Message):
r"""Pa as a source.
Attributes:
path (str):
Optional. Root directory path to the
Paralellstore filesystem, starting with '/'.
Defaults to '/' if unset.
"""

path: str = proto.Field(
proto.STRING,
number=1,
)


class DestinationParallelstore(proto.Message):
r"""Parallelstore as a destination.
Attributes:
path (str):
Optional. Root directory path to the
Paralellstore filesystem, starting with '/'.
Defaults to '/' if unset.
"""

path: str = proto.Field(
proto.STRING,
number=1,
)


class ImportDataRequest(proto.Message):
r"""Message representing the request importing data from
parallelstore to Cloud Storage.
Expand All @@ -528,15 +594,12 @@ class ImportDataRequest(proto.Message):
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
Attributes:
source_gcs_uri (str):
URI to a Cloud Storage object in format:
'gs://<bucket_name>/<path_inside_bucket>'.
source_gcs_bucket (google.cloud.parallelstore_v1beta.types.SourceGcsBucket):
Cloud Storage source.
This field is a member of `oneof`_ ``source``.
destination_path (str):
Optional. Root directory path to the
Paralellstore filesystem, starting with '/'.
Sets to '/' if no value is set.
destination_parallelstore (google.cloud.parallelstore_v1beta.types.DestinationParallelstore):
Parallelstore destination.
This field is a member of `oneof`_ ``destination``.
name (str):
Expand All @@ -563,15 +626,17 @@ class ImportDataRequest(proto.Message):
(00000000-0000-0000-0000-000000000000).
"""

source_gcs_uri: str = proto.Field(
proto.STRING,
source_gcs_bucket: "SourceGcsBucket" = proto.Field(
proto.MESSAGE,
number=2,
oneof="source",
message="SourceGcsBucket",
)
destination_path: str = proto.Field(
proto.STRING,
destination_parallelstore: "DestinationParallelstore" = proto.Field(
proto.MESSAGE,
number=3,
oneof="destination",
message="DestinationParallelstore",
)
name: str = proto.Field(
proto.STRING,
Expand All @@ -591,15 +656,12 @@ class ExportDataRequest(proto.Message):
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
Attributes:
source_path (str):
Optional. Root directory path to the
Paralellstore filesystem, starting with '/'.
Sets to '/' if no value is set.
source_parallelstore (google.cloud.parallelstore_v1beta.types.SourceParallelstore):
Parallelstore source.
This field is a member of `oneof`_ ``source``.
destination_gcs_uri (str):
URI to a Cloud Storage object in format:
'gs://<bucket_name>/<path_inside_bucket>'.
destination_gcs_bucket (google.cloud.parallelstore_v1beta.types.DestinationGcsBucket):
Cloud Storage destination.
This field is a member of `oneof`_ ``destination``.
name (str):
Expand All @@ -626,15 +688,17 @@ class ExportDataRequest(proto.Message):
(00000000-0000-0000-0000-000000000000).
"""

source_path: str = proto.Field(
proto.STRING,
source_parallelstore: "SourceParallelstore" = proto.Field(
proto.MESSAGE,
number=2,
oneof="source",
message="SourceParallelstore",
)
destination_gcs_uri: str = proto.Field(
proto.STRING,
destination_gcs_bucket: "DestinationGcsBucket" = proto.Field(
proto.MESSAGE,
number=3,
oneof="destination",
message="DestinationGcsBucket",
)
name: str = proto.Field(
proto.STRING,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,11 @@ async def sample_export_data():
client = parallelstore_v1beta.ParallelstoreAsyncClient()

# Initialize request argument(s)
destination_gcs_bucket = parallelstore_v1beta.DestinationGcsBucket()
destination_gcs_bucket.uri = "uri_value"

request = parallelstore_v1beta.ExportDataRequest(
source_path="source_path_value",
destination_gcs_uri="destination_gcs_uri_value",
destination_gcs_bucket=destination_gcs_bucket,
name="name_value",
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,11 @@ def sample_export_data():
client = parallelstore_v1beta.ParallelstoreClient()

# Initialize request argument(s)
destination_gcs_bucket = parallelstore_v1beta.DestinationGcsBucket()
destination_gcs_bucket.uri = "uri_value"

request = parallelstore_v1beta.ExportDataRequest(
source_path="source_path_value",
destination_gcs_uri="destination_gcs_uri_value",
destination_gcs_bucket=destination_gcs_bucket,
name="name_value",
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,11 @@ async def sample_import_data():
client = parallelstore_v1beta.ParallelstoreAsyncClient()

# Initialize request argument(s)
source_gcs_bucket = parallelstore_v1beta.SourceGcsBucket()
source_gcs_bucket.uri = "uri_value"

request = parallelstore_v1beta.ImportDataRequest(
source_gcs_uri="source_gcs_uri_value",
destination_path="destination_path_value",
source_gcs_bucket=source_gcs_bucket,
name="name_value",
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,11 @@ def sample_import_data():
client = parallelstore_v1beta.ParallelstoreClient()

# Initialize request argument(s)
source_gcs_bucket = parallelstore_v1beta.SourceGcsBucket()
source_gcs_bucket.uri = "uri_value"

request = parallelstore_v1beta.ImportDataRequest(
source_gcs_uri="source_gcs_uri_value",
destination_path="destination_path_value",
source_gcs_bucket=source_gcs_bucket,
name="name_value",
)

Expand Down
Loading

0 comments on commit e3c48d7

Please sign in to comment.