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

Commit

Permalink
feat: add v1 (#62)
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 387381480

Source-Link: googleapis/googleapis@6d27f5b

Source-Link: googleapis/googleapis-gen@1c17f2e

feat: bump release level from alpha to beta
  • Loading branch information
gcf-owl-bot[bot] committed Jul 28, 2021
1 parent 1d0ad6c commit 27d7fa0
Show file tree
Hide file tree
Showing 28 changed files with 9,738 additions and 26 deletions.
2 changes: 1 addition & 1 deletion .repo-metadata.json
Expand Up @@ -4,7 +4,7 @@
"product_documentation": "https://cloud.google.com/network-connectivity/",
"client_documentation": "https://googleapis.dev/python/networkconnectivity/latest",
"issue_tracker": "",
"release_level": "alpha",
"release_level": "beta",
"language": "python",
"library_type": "GAPIC_AUTO",
"repo": "googleapis/python-network-connectivity",
Expand Down
6 changes: 3 additions & 3 deletions README.rst
@@ -1,7 +1,7 @@
Python Client for Network Connectivity Center
=================================================

|alpha| |pypi| |versions|
|beta| |pypi| |versions|

`Network Connectivity Center`_: The Network Connectivity API will be home
to various services which provide information pertaining to network connectivity.
Expand All @@ -13,8 +13,8 @@ inconsistencies, etc.
- `Client Library Documentation`_
- `Product Documentation`_

.. |alpha| image:: https://img.shields.io/badge/support-alpha-orange.svg
:target: https://github.com/googleapis/google-cloud-python/blob/master/README.rst#alpha-support
.. |beta| image:: https://img.shields.io/badge/support-alpha-orange.svg
:target: https://github.com/googleapis/google-cloud-python/blob/master/README.rst#beta-support
.. |pypi| image:: https://img.shields.io/pypi/v/google-cloud-network-connectivity.svg
:target: https://pypi.org/project/google-cloud-network-connectivity/
.. |versions| image:: https://img.shields.io/pypi/pyversions/google-cloud-network-connectivity.svg
Expand Down
12 changes: 12 additions & 0 deletions docs/index.rst
Expand Up @@ -3,6 +3,18 @@
.. include:: multiprocessing.rst


This package includes clients for multiple versions of ``google-cloud-network-connectivity``.
By default, you will get version ``v1``.

API Reference
-------------
.. toctree::
:maxdepth: 2

networkconnectivity_v1/services
networkconnectivity_v1/types


API Reference
-------------
.. toctree::
Expand Down
10 changes: 10 additions & 0 deletions docs/networkconnectivity_v1/hub_service.rst
@@ -0,0 +1,10 @@
HubService
----------------------------

.. automodule:: google.cloud.networkconnectivity_v1.services.hub_service
:members:
:inherited-members:

.. automodule:: google.cloud.networkconnectivity_v1.services.hub_service.pagers
:members:
:inherited-members:
6 changes: 6 additions & 0 deletions docs/networkconnectivity_v1/services.rst
@@ -0,0 +1,6 @@
Services for Google Cloud Networkconnectivity v1 API
====================================================
.. toctree::
:maxdepth: 2

hub_service
7 changes: 7 additions & 0 deletions docs/networkconnectivity_v1/types.rst
@@ -0,0 +1,7 @@
Types for Google Cloud Networkconnectivity v1 API
=================================================

.. automodule:: google.cloud.networkconnectivity_v1.types
:members:
:undoc-members:
:show-inheritance:
48 changes: 29 additions & 19 deletions google/cloud/networkconnectivity/__init__.py
Expand Up @@ -14,42 +14,52 @@
# limitations under the License.
#

from google.cloud.networkconnectivity_v1alpha1.services.hub_service.client import (
from google.cloud.networkconnectivity_v1.services.hub_service.client import (
HubServiceClient,
)
from google.cloud.networkconnectivity_v1alpha1.services.hub_service.async_client import (
from google.cloud.networkconnectivity_v1.services.hub_service.async_client import (
HubServiceAsyncClient,
)

from google.cloud.networkconnectivity_v1alpha1.types.common import OperationMetadata
from google.cloud.networkconnectivity_v1alpha1.types.hub import CreateHubRequest
from google.cloud.networkconnectivity_v1alpha1.types.hub import CreateSpokeRequest
from google.cloud.networkconnectivity_v1alpha1.types.hub import DeleteHubRequest
from google.cloud.networkconnectivity_v1alpha1.types.hub import DeleteSpokeRequest
from google.cloud.networkconnectivity_v1alpha1.types.hub import GetHubRequest
from google.cloud.networkconnectivity_v1alpha1.types.hub import GetSpokeRequest
from google.cloud.networkconnectivity_v1alpha1.types.hub import Hub
from google.cloud.networkconnectivity_v1alpha1.types.hub import ListHubsRequest
from google.cloud.networkconnectivity_v1alpha1.types.hub import ListHubsResponse
from google.cloud.networkconnectivity_v1alpha1.types.hub import ListSpokesRequest
from google.cloud.networkconnectivity_v1alpha1.types.hub import ListSpokesResponse
from google.cloud.networkconnectivity_v1alpha1.types.hub import RouterApplianceInstance
from google.cloud.networkconnectivity_v1alpha1.types.hub import Spoke
from google.cloud.networkconnectivity_v1alpha1.types.hub import UpdateHubRequest
from google.cloud.networkconnectivity_v1alpha1.types.hub import UpdateSpokeRequest
from google.cloud.networkconnectivity_v1alpha1.types.hub import State
from google.cloud.networkconnectivity_v1.types.common import OperationMetadata
from google.cloud.networkconnectivity_v1.types.hub import ActivateSpokeRequest
from google.cloud.networkconnectivity_v1.types.hub import CreateHubRequest
from google.cloud.networkconnectivity_v1.types.hub import CreateSpokeRequest
from google.cloud.networkconnectivity_v1.types.hub import DeactivateSpokeRequest
from google.cloud.networkconnectivity_v1.types.hub import DeleteHubRequest
from google.cloud.networkconnectivity_v1.types.hub import DeleteSpokeRequest
from google.cloud.networkconnectivity_v1.types.hub import GetHubRequest
from google.cloud.networkconnectivity_v1.types.hub import GetSpokeRequest
from google.cloud.networkconnectivity_v1.types.hub import Hub
from google.cloud.networkconnectivity_v1.types.hub import LinkedInterconnectAttachments
from google.cloud.networkconnectivity_v1.types.hub import LinkedRouterApplianceInstances
from google.cloud.networkconnectivity_v1.types.hub import LinkedVpnTunnels
from google.cloud.networkconnectivity_v1.types.hub import ListHubsRequest
from google.cloud.networkconnectivity_v1.types.hub import ListHubsResponse
from google.cloud.networkconnectivity_v1.types.hub import ListSpokesRequest
from google.cloud.networkconnectivity_v1.types.hub import ListSpokesResponse
from google.cloud.networkconnectivity_v1.types.hub import RouterApplianceInstance
from google.cloud.networkconnectivity_v1.types.hub import Spoke
from google.cloud.networkconnectivity_v1.types.hub import UpdateHubRequest
from google.cloud.networkconnectivity_v1.types.hub import UpdateSpokeRequest
from google.cloud.networkconnectivity_v1.types.hub import State

__all__ = (
"HubServiceClient",
"HubServiceAsyncClient",
"OperationMetadata",
"ActivateSpokeRequest",
"CreateHubRequest",
"CreateSpokeRequest",
"DeactivateSpokeRequest",
"DeleteHubRequest",
"DeleteSpokeRequest",
"GetHubRequest",
"GetSpokeRequest",
"Hub",
"LinkedInterconnectAttachments",
"LinkedRouterApplianceInstances",
"LinkedVpnTunnels",
"ListHubsRequest",
"ListHubsResponse",
"ListSpokesRequest",
Expand Down
2 changes: 1 addition & 1 deletion google/cloud/networkconnectivity/py.typed
@@ -1,2 +1,2 @@
# Marker file for PEP 561.
# The google-cloud-network-connectivity package uses inline types.
# The google-cloud-networkconnectivity package uses inline types.
68 changes: 68 additions & 0 deletions google/cloud/networkconnectivity_v1/__init__.py
@@ -0,0 +1,68 @@
# -*- coding: utf-8 -*-
# Copyright 2020 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.
#

from .services.hub_service import HubServiceClient
from .services.hub_service import HubServiceAsyncClient

from .types.common import OperationMetadata
from .types.hub import ActivateSpokeRequest
from .types.hub import CreateHubRequest
from .types.hub import CreateSpokeRequest
from .types.hub import DeactivateSpokeRequest
from .types.hub import DeleteHubRequest
from .types.hub import DeleteSpokeRequest
from .types.hub import GetHubRequest
from .types.hub import GetSpokeRequest
from .types.hub import Hub
from .types.hub import LinkedInterconnectAttachments
from .types.hub import LinkedRouterApplianceInstances
from .types.hub import LinkedVpnTunnels
from .types.hub import ListHubsRequest
from .types.hub import ListHubsResponse
from .types.hub import ListSpokesRequest
from .types.hub import ListSpokesResponse
from .types.hub import RouterApplianceInstance
from .types.hub import Spoke
from .types.hub import UpdateHubRequest
from .types.hub import UpdateSpokeRequest
from .types.hub import State

__all__ = (
"HubServiceAsyncClient",
"ActivateSpokeRequest",
"CreateHubRequest",
"CreateSpokeRequest",
"DeactivateSpokeRequest",
"DeleteHubRequest",
"DeleteSpokeRequest",
"GetHubRequest",
"GetSpokeRequest",
"Hub",
"HubServiceClient",
"LinkedInterconnectAttachments",
"LinkedRouterApplianceInstances",
"LinkedVpnTunnels",
"ListHubsRequest",
"ListHubsResponse",
"ListSpokesRequest",
"ListSpokesResponse",
"OperationMetadata",
"RouterApplianceInstance",
"Spoke",
"State",
"UpdateHubRequest",
"UpdateSpokeRequest",
)
143 changes: 143 additions & 0 deletions google/cloud/networkconnectivity_v1/gapic_metadata.json
@@ -0,0 +1,143 @@
{
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
"language": "python",
"libraryPackage": "google.cloud.networkconnectivity_v1",
"protoPackage": "google.cloud.networkconnectivity.v1",
"schema": "1.0",
"services": {
"HubService": {
"clients": {
"grpc": {
"libraryClient": "HubServiceClient",
"rpcs": {
"ActivateSpoke": {
"methods": [
"activate_spoke"
]
},
"CreateHub": {
"methods": [
"create_hub"
]
},
"CreateSpoke": {
"methods": [
"create_spoke"
]
},
"DeactivateSpoke": {
"methods": [
"deactivate_spoke"
]
},
"DeleteHub": {
"methods": [
"delete_hub"
]
},
"DeleteSpoke": {
"methods": [
"delete_spoke"
]
},
"GetHub": {
"methods": [
"get_hub"
]
},
"GetSpoke": {
"methods": [
"get_spoke"
]
},
"ListHubs": {
"methods": [
"list_hubs"
]
},
"ListSpokes": {
"methods": [
"list_spokes"
]
},
"UpdateHub": {
"methods": [
"update_hub"
]
},
"UpdateSpoke": {
"methods": [
"update_spoke"
]
}
}
},
"grpc-async": {
"libraryClient": "HubServiceAsyncClient",
"rpcs": {
"ActivateSpoke": {
"methods": [
"activate_spoke"
]
},
"CreateHub": {
"methods": [
"create_hub"
]
},
"CreateSpoke": {
"methods": [
"create_spoke"
]
},
"DeactivateSpoke": {
"methods": [
"deactivate_spoke"
]
},
"DeleteHub": {
"methods": [
"delete_hub"
]
},
"DeleteSpoke": {
"methods": [
"delete_spoke"
]
},
"GetHub": {
"methods": [
"get_hub"
]
},
"GetSpoke": {
"methods": [
"get_spoke"
]
},
"ListHubs": {
"methods": [
"list_hubs"
]
},
"ListSpokes": {
"methods": [
"list_spokes"
]
},
"UpdateHub": {
"methods": [
"update_hub"
]
},
"UpdateSpoke": {
"methods": [
"update_spoke"
]
}
}
}
}
}
}
}
2 changes: 2 additions & 0 deletions google/cloud/networkconnectivity_v1/py.typed
@@ -0,0 +1,2 @@
# Marker file for PEP 561.
# The google-cloud-networkconnectivity package uses inline types.
15 changes: 15 additions & 0 deletions google/cloud/networkconnectivity_v1/services/__init__.py
@@ -0,0 +1,15 @@
# -*- coding: utf-8 -*-
# Copyright 2020 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.
#

0 comments on commit 27d7fa0

Please sign in to comment.