Skip to content
This repository has been archived by the owner on Jul 6, 2023. It is now read-only.

Commit

Permalink
feat: added federation API (#185)
Browse files Browse the repository at this point in the history
* chore: update to gapic-generator-python 1.5.0

feat: add support for `google.cloud.<api>.__version__`
PiperOrigin-RevId: 484665853

Source-Link: googleapis/googleapis@8eb249a

Source-Link: googleapis/googleapis-gen@c8aa327
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYzhhYTMyN2I1ZjQ3ODg2NWZjM2ZkOTFlM2MyNzY4ZTU0ZTI2YWQ0NCJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* update version in gapic_version.py

* add .release-please-manifest.json with correct version

* add owlbot.py to exclude generated gapic_version.py

* set manifest to true in .github/release-please.yml

* add release-please-config.json

* chore: Update to gapic-generator-python 1.6.0

feat(python): Add typing to proto.Message based class attributes

feat(python): Snippetgen handling of repeated enum field

PiperOrigin-RevId: 487326846

Source-Link: googleapis/googleapis@da380c7

Source-Link: googleapis/googleapis-gen@61ef576
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNjFlZjU3NjJlZTY3MzFhMGNiYmZlYTIyZmQwZWVjZWU1MWFiMWM4ZSJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* feat: new APIs added to reflect updates to the filestore service

- Add ENTERPRISE Tier
- Add snapshot APIs: RevertInstance, ListSnapshots, CreateSnapshot, DeleteSnapshot, UpdateSnapshot
- Add multi-share APIs: ListShares, GetShare, CreateShare, DeleteShare, UpdateShare
- Add ConnectMode to NetworkConfig (for Private Service Access support)
- New status codes (SUSPENDED/SUSPENDING, REVERTING/RESUMING)
- Add SuspensionReason (for KMS related suspension)
- Add new fields to Instance information: max_capacity_gb, capacity_step_size_gb, max_share_count, capacity_gb, multi_share_enabled

PiperOrigin-RevId: 487492758

Source-Link: googleapis/googleapis@5be5981

Source-Link: googleapis/googleapis-gen@ab0e217
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYWIwZTIxN2Y1NjBjYzJjMWFmYzExNDQxYzJlYWI2YjY5NTBlZmQyYiJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* update path to snippet metadata json

* chore: Update gapic-generator-python to v1.6.1

PiperOrigin-RevId: 488036204

Source-Link: googleapis/googleapis@08f275f

Source-Link: googleapis/googleapis-gen@555c094
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNTU1YzA5NDVlNjA2NDllMzg3MzlhZTY0YmM0NTcxOWNkZjcyMTc4ZiJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* chore(python): fix warehouse-package-name for metastore v1/v1beta/v1alpha

PiperOrigin-RevId: 490488377

Source-Link: googleapis/googleapis@dc9658d

Source-Link: googleapis/googleapis-gen@c07e108
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYzA3ZTEwOGNlZTAzYjk0NDA2NzE4NDFmMzJiM2VhMjliZWJmMmE0MCJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* feat: added federation API
feat: added EncryptionConfig field
feat: added NetworkConfig field
feat: added DatabaseType field
feat: added TelemetryConfiguration field

PiperOrigin-RevId: 490636886

Source-Link: googleapis/googleapis@791374c

Source-Link: googleapis/googleapis-gen@7a72bd9
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiN2E3MmJkOWNjYTA3ZmJlMDQyYWMwMjNmZmI1ZmQ1OTQxNDJkNzk1ZCJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Anthonios Partheniou <partheniou@google.com>
  • Loading branch information
3 people committed Nov 28, 2022
1 parent e781c82 commit 1c64e1a
Show file tree
Hide file tree
Showing 180 changed files with 26,473 additions and 1,077 deletions.
1 change: 1 addition & 0 deletions .github/release-please.yml
@@ -1,5 +1,6 @@
releaseType: python
handleGHRelease: true
manifest: true
# NOTE: this section is generated by synthtool.languages.python
# See https://github.com/googleapis/synthtool/blob/master/synthtool/languages/python.py
branches:
Expand Down
3 changes: 3 additions & 0 deletions .release-please-manifest.json
@@ -0,0 +1,3 @@
{
".": "1.6.3"
}
10 changes: 10 additions & 0 deletions docs/metastore_v1/dataproc_metastore_federation.rst
@@ -0,0 +1,10 @@
DataprocMetastoreFederation
---------------------------------------------

.. automodule:: google.cloud.metastore_v1.services.dataproc_metastore_federation
:members:
:inherited-members:

.. automodule:: google.cloud.metastore_v1.services.dataproc_metastore_federation.pagers
:members:
:inherited-members:
1 change: 1 addition & 0 deletions docs/metastore_v1/services.rst
Expand Up @@ -4,3 +4,4 @@ Services for Google Cloud Metastore v1 API
:maxdepth: 2

dataproc_metastore
dataproc_metastore_federation
1 change: 0 additions & 1 deletion docs/metastore_v1/types.rst
Expand Up @@ -3,5 +3,4 @@ Types for Google Cloud Metastore v1 API

.. automodule:: google.cloud.metastore_v1.types
:members:
:undoc-members:
:show-inheritance:
10 changes: 10 additions & 0 deletions docs/metastore_v1alpha/dataproc_metastore_federation.rst
@@ -0,0 +1,10 @@
DataprocMetastoreFederation
---------------------------------------------

.. automodule:: google.cloud.metastore_v1alpha.services.dataproc_metastore_federation
:members:
:inherited-members:

.. automodule:: google.cloud.metastore_v1alpha.services.dataproc_metastore_federation.pagers
:members:
:inherited-members:
1 change: 1 addition & 0 deletions docs/metastore_v1alpha/services.rst
Expand Up @@ -4,3 +4,4 @@ Services for Google Cloud Metastore v1alpha API
:maxdepth: 2

dataproc_metastore
dataproc_metastore_federation
1 change: 0 additions & 1 deletion docs/metastore_v1alpha/types.rst
Expand Up @@ -3,5 +3,4 @@ Types for Google Cloud Metastore v1alpha API

.. automodule:: google.cloud.metastore_v1alpha.types
:members:
:undoc-members:
:show-inheritance:
10 changes: 10 additions & 0 deletions docs/metastore_v1beta/dataproc_metastore_federation.rst
@@ -0,0 +1,10 @@
DataprocMetastoreFederation
---------------------------------------------

.. automodule:: google.cloud.metastore_v1beta.services.dataproc_metastore_federation
:members:
:inherited-members:

.. automodule:: google.cloud.metastore_v1beta.services.dataproc_metastore_federation.pagers
:members:
:inherited-members:
1 change: 1 addition & 0 deletions docs/metastore_v1beta/services.rst
Expand Up @@ -4,3 +4,4 @@ Services for Google Cloud Metastore v1beta API
:maxdepth: 2

dataproc_metastore
dataproc_metastore_federation
1 change: 0 additions & 1 deletion docs/metastore_v1beta/types.rst
Expand Up @@ -3,5 +3,4 @@ Types for Google Cloud Metastore v1beta API

.. automodule:: google.cloud.metastore_v1beta.types
:members:
:undoc-members:
:show-inheritance:
36 changes: 36 additions & 0 deletions google/cloud/metastore/__init__.py
Expand Up @@ -13,13 +13,23 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
from google.cloud.metastore import gapic_version as package_version

__version__ = package_version.__version__


from google.cloud.metastore_v1.services.dataproc_metastore.async_client import (
DataprocMetastoreAsyncClient,
)
from google.cloud.metastore_v1.services.dataproc_metastore.client import (
DataprocMetastoreClient,
)
from google.cloud.metastore_v1.services.dataproc_metastore_federation.async_client import (
DataprocMetastoreFederationAsyncClient,
)
from google.cloud.metastore_v1.services.dataproc_metastore_federation.client import (
DataprocMetastoreFederationClient,
)
from google.cloud.metastore_v1.types.metastore import (
Backup,
CreateBackupRequest,
Expand All @@ -28,6 +38,7 @@
DatabaseDumpSpec,
DeleteBackupRequest,
DeleteServiceRequest,
EncryptionConfig,
ExportMetadataRequest,
GetBackupRequest,
GetMetadataImportRequest,
Expand All @@ -45,25 +56,40 @@
MetadataExport,
MetadataImport,
MetadataManagementActivity,
NetworkConfig,
OperationMetadata,
Restore,
RestoreServiceRequest,
Secret,
Service,
TelemetryConfig,
UpdateMetadataImportRequest,
UpdateServiceRequest,
)
from google.cloud.metastore_v1.types.metastore_federation import (
BackendMetastore,
CreateFederationRequest,
DeleteFederationRequest,
Federation,
GetFederationRequest,
ListFederationsRequest,
ListFederationsResponse,
UpdateFederationRequest,
)

__all__ = (
"DataprocMetastoreClient",
"DataprocMetastoreAsyncClient",
"DataprocMetastoreFederationClient",
"DataprocMetastoreFederationAsyncClient",
"Backup",
"CreateBackupRequest",
"CreateMetadataImportRequest",
"CreateServiceRequest",
"DatabaseDumpSpec",
"DeleteBackupRequest",
"DeleteServiceRequest",
"EncryptionConfig",
"ExportMetadataRequest",
"GetBackupRequest",
"GetMetadataImportRequest",
Expand All @@ -81,11 +107,21 @@
"MetadataExport",
"MetadataImport",
"MetadataManagementActivity",
"NetworkConfig",
"OperationMetadata",
"Restore",
"RestoreServiceRequest",
"Secret",
"Service",
"TelemetryConfig",
"UpdateMetadataImportRequest",
"UpdateServiceRequest",
"BackendMetastore",
"CreateFederationRequest",
"DeleteFederationRequest",
"Federation",
"GetFederationRequest",
"ListFederationsRequest",
"ListFederationsResponse",
"UpdateFederationRequest",
)
16 changes: 16 additions & 0 deletions google/cloud/metastore/gapic_version.py
@@ -0,0 +1,16 @@
# -*- coding: utf-8 -*-
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "1.6.3" # {x-release-please-version}
2 changes: 1 addition & 1 deletion google/cloud/metastore/py.typed
@@ -1,2 +1,2 @@
# Marker file for PEP 561.
# The google-cloud-metastore package uses inline types.
# The google-cloud-dataproc-metastore package uses inline types.
34 changes: 34 additions & 0 deletions google/cloud/metastore_v1/__init__.py
Expand Up @@ -13,11 +13,19 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
from google.cloud.metastore import gapic_version as package_version

__version__ = package_version.__version__


from .services.dataproc_metastore import (
DataprocMetastoreAsyncClient,
DataprocMetastoreClient,
)
from .services.dataproc_metastore_federation import (
DataprocMetastoreFederationAsyncClient,
DataprocMetastoreFederationClient,
)
from .types.metastore import (
Backup,
CreateBackupRequest,
Expand All @@ -26,6 +34,7 @@
DatabaseDumpSpec,
DeleteBackupRequest,
DeleteServiceRequest,
EncryptionConfig,
ExportMetadataRequest,
GetBackupRequest,
GetMetadataImportRequest,
Expand All @@ -43,33 +52,55 @@
MetadataExport,
MetadataImport,
MetadataManagementActivity,
NetworkConfig,
OperationMetadata,
Restore,
RestoreServiceRequest,
Secret,
Service,
TelemetryConfig,
UpdateMetadataImportRequest,
UpdateServiceRequest,
)
from .types.metastore_federation import (
BackendMetastore,
CreateFederationRequest,
DeleteFederationRequest,
Federation,
GetFederationRequest,
ListFederationsRequest,
ListFederationsResponse,
UpdateFederationRequest,
)

__all__ = (
"DataprocMetastoreAsyncClient",
"DataprocMetastoreFederationAsyncClient",
"BackendMetastore",
"Backup",
"CreateBackupRequest",
"CreateFederationRequest",
"CreateMetadataImportRequest",
"CreateServiceRequest",
"DatabaseDumpSpec",
"DataprocMetastoreClient",
"DataprocMetastoreFederationClient",
"DeleteBackupRequest",
"DeleteFederationRequest",
"DeleteServiceRequest",
"EncryptionConfig",
"ExportMetadataRequest",
"Federation",
"GetBackupRequest",
"GetFederationRequest",
"GetMetadataImportRequest",
"GetServiceRequest",
"HiveMetastoreConfig",
"KerberosConfig",
"ListBackupsRequest",
"ListBackupsResponse",
"ListFederationsRequest",
"ListFederationsResponse",
"ListMetadataImportsRequest",
"ListMetadataImportsResponse",
"ListServicesRequest",
Expand All @@ -79,11 +110,14 @@
"MetadataExport",
"MetadataImport",
"MetadataManagementActivity",
"NetworkConfig",
"OperationMetadata",
"Restore",
"RestoreServiceRequest",
"Secret",
"Service",
"TelemetryConfig",
"UpdateFederationRequest",
"UpdateMetadataImportRequest",
"UpdateServiceRequest",
)
64 changes: 64 additions & 0 deletions google/cloud/metastore_v1/gapic_metadata.json
Expand Up @@ -168,6 +168,70 @@
}
}
}
},
"DataprocMetastoreFederation": {
"clients": {
"grpc": {
"libraryClient": "DataprocMetastoreFederationClient",
"rpcs": {
"CreateFederation": {
"methods": [
"create_federation"
]
},
"DeleteFederation": {
"methods": [
"delete_federation"
]
},
"GetFederation": {
"methods": [
"get_federation"
]
},
"ListFederations": {
"methods": [
"list_federations"
]
},
"UpdateFederation": {
"methods": [
"update_federation"
]
}
}
},
"grpc-async": {
"libraryClient": "DataprocMetastoreFederationAsyncClient",
"rpcs": {
"CreateFederation": {
"methods": [
"create_federation"
]
},
"DeleteFederation": {
"methods": [
"delete_federation"
]
},
"GetFederation": {
"methods": [
"get_federation"
]
},
"ListFederations": {
"methods": [
"list_federations"
]
},
"UpdateFederation": {
"methods": [
"update_federation"
]
}
}
}
}
}
}
}
2 changes: 1 addition & 1 deletion google/cloud/metastore_v1/py.typed
@@ -1,2 +1,2 @@
# Marker file for PEP 561.
# The google-cloud-metastore package uses inline types.
# The google-cloud-dataproc-metastore package uses inline types.

0 comments on commit 1c64e1a

Please sign in to comment.