Skip to content

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 authored Nov 28, 2022
1 parent 3e7537f commit 627f86f
Show file tree
Hide file tree
Showing 180 changed files with 26,473 additions and 1,077 deletions.
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
".": "1.6.3"
}
Original file line number Diff line number Diff line change
@@ -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:
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ Services for Google Cloud Metastore v1 API
:maxdepth: 2

dataproc_metastore
dataproc_metastore_federation
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ Types for Google Cloud Metastore v1 API

.. automodule:: google.cloud.metastore_v1.types
:members:
:undoc-members:
:show-inheritance:
Original file line number Diff line number Diff line change
@@ -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:
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ Services for Google Cloud Metastore v1alpha API
:maxdepth: 2

dataproc_metastore
dataproc_metastore_federation
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ Types for Google Cloud Metastore v1alpha API

.. automodule:: google.cloud.metastore_v1alpha.types
:members:
:undoc-members:
:show-inheritance:
Original file line number Diff line number Diff line change
@@ -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:
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ Services for Google Cloud Metastore v1beta API
:maxdepth: 2

dataproc_metastore
dataproc_metastore_federation
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ Types for Google Cloud Metastore v1beta API

.. automodule:: google.cloud.metastore_v1beta.types
:members:
:undoc-members:
:show-inheritance:
Original file line number Diff line number Diff line change
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",
)
Original file line number Diff line number Diff line change
@@ -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}
Original file line number Diff line number Diff line change
@@ -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.
Original file line number Diff line number Diff line change
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",
)
Original file line number Diff line number Diff line change
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"
]
}
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -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.
Loading

0 comments on commit 627f86f

Please sign in to comment.