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

Commit

Permalink
chore: upgrade gapic-generator-python to 0.46.3 (#44)
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 373649163

Source-Link: googleapis/googleapis@7e1b14e

Source-Link: googleapis/googleapis-gen@0a3c7d2

fix: add async client to %name_%version/init.py
chore: add autogenerated snippets
chore: remove auth, policy, and options from the reserved names list
feat: support self-signed JWT flow for service accounts
chore: enable GAPIC metadata generation
chore: sort subpackages in %namespace/%name/init.py
  • Loading branch information
gcf-owl-bot[bot] committed May 14, 2021
1 parent 0571859 commit 7a84b3b
Show file tree
Hide file tree
Showing 22 changed files with 1,050 additions and 832 deletions.
1 change: 0 additions & 1 deletion docs/notebooks_v1beta1/notebook_service.rst
Expand Up @@ -5,7 +5,6 @@ NotebookService
:members:
:inherited-members:


.. automodule:: google.cloud.notebooks_v1beta1.services.notebook_service.pagers
:members:
:inherited-members:
18 changes: 9 additions & 9 deletions google/cloud/notebooks/__init__.py
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -15,12 +14,13 @@
# limitations under the License.
#

from google.cloud.notebooks_v1beta1.services.notebook_service.async_client import (
NotebookServiceAsyncClient,
)
from google.cloud.notebooks_v1beta1.services.notebook_service.client import (
NotebookServiceClient,
)
from google.cloud.notebooks_v1beta1.services.notebook_service.async_client import (
NotebookServiceAsyncClient,
)

from google.cloud.notebooks_v1beta1.types.environment import ContainerImage
from google.cloud.notebooks_v1beta1.types.environment import Environment
from google.cloud.notebooks_v1beta1.types.environment import VmImage
Expand Down Expand Up @@ -50,23 +50,24 @@
from google.cloud.notebooks_v1beta1.types.service import UpgradeInstanceRequest

__all__ = (
"NotebookServiceClient",
"NotebookServiceAsyncClient",
"ContainerImage",
"Environment",
"VmImage",
"Instance",
"CreateEnvironmentRequest",
"CreateInstanceRequest",
"DeleteEnvironmentRequest",
"DeleteInstanceRequest",
"Environment",
"GetEnvironmentRequest",
"GetInstanceRequest",
"Instance",
"IsInstanceUpgradeableRequest",
"IsInstanceUpgradeableResponse",
"ListEnvironmentsRequest",
"ListEnvironmentsResponse",
"ListInstancesRequest",
"ListInstancesResponse",
"NotebookServiceAsyncClient",
"NotebookServiceClient",
"OperationMetadata",
"RegisterInstanceRequest",
"ReportInstanceInfoRequest",
Expand All @@ -78,5 +79,4 @@
"StopInstanceRequest",
"UpgradeInstanceInternalRequest",
"UpgradeInstanceRequest",
"VmImage",
)
7 changes: 4 additions & 3 deletions google/cloud/notebooks_v1beta1/__init__.py
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -16,6 +15,8 @@
#

from .services.notebook_service import NotebookServiceClient
from .services.notebook_service import NotebookServiceAsyncClient

from .types.environment import ContainerImage
from .types.environment import Environment
from .types.environment import VmImage
Expand Down Expand Up @@ -44,8 +45,8 @@
from .types.service import UpgradeInstanceInternalRequest
from .types.service import UpgradeInstanceRequest


__all__ = (
"NotebookServiceAsyncClient",
"ContainerImage",
"CreateEnvironmentRequest",
"CreateInstanceRequest",
Expand All @@ -61,6 +62,7 @@
"ListEnvironmentsResponse",
"ListInstancesRequest",
"ListInstancesResponse",
"NotebookServiceClient",
"OperationMetadata",
"RegisterInstanceRequest",
"ReportInstanceInfoRequest",
Expand All @@ -73,5 +75,4 @@
"UpgradeInstanceInternalRequest",
"UpgradeInstanceRequest",
"VmImage",
"NotebookServiceClient",
)
213 changes: 213 additions & 0 deletions google/cloud/notebooks_v1beta1/gapic_metadata.json
@@ -0,0 +1,213 @@
{
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
"language": "python",
"libraryPackage": "google.cloud.notebooks_v1beta1",
"protoPackage": "google.cloud.notebooks.v1beta1",
"schema": "1.0",
"services": {
"NotebookService": {
"clients": {
"grpc": {
"libraryClient": "NotebookServiceClient",
"rpcs": {
"CreateEnvironment": {
"methods": [
"create_environment"
]
},
"CreateInstance": {
"methods": [
"create_instance"
]
},
"DeleteEnvironment": {
"methods": [
"delete_environment"
]
},
"DeleteInstance": {
"methods": [
"delete_instance"
]
},
"GetEnvironment": {
"methods": [
"get_environment"
]
},
"GetInstance": {
"methods": [
"get_instance"
]
},
"IsInstanceUpgradeable": {
"methods": [
"is_instance_upgradeable"
]
},
"ListEnvironments": {
"methods": [
"list_environments"
]
},
"ListInstances": {
"methods": [
"list_instances"
]
},
"RegisterInstance": {
"methods": [
"register_instance"
]
},
"ReportInstanceInfo": {
"methods": [
"report_instance_info"
]
},
"ResetInstance": {
"methods": [
"reset_instance"
]
},
"SetInstanceAccelerator": {
"methods": [
"set_instance_accelerator"
]
},
"SetInstanceLabels": {
"methods": [
"set_instance_labels"
]
},
"SetInstanceMachineType": {
"methods": [
"set_instance_machine_type"
]
},
"StartInstance": {
"methods": [
"start_instance"
]
},
"StopInstance": {
"methods": [
"stop_instance"
]
},
"UpgradeInstance": {
"methods": [
"upgrade_instance"
]
},
"UpgradeInstanceInternal": {
"methods": [
"upgrade_instance_internal"
]
}
}
},
"grpc-async": {
"libraryClient": "NotebookServiceAsyncClient",
"rpcs": {
"CreateEnvironment": {
"methods": [
"create_environment"
]
},
"CreateInstance": {
"methods": [
"create_instance"
]
},
"DeleteEnvironment": {
"methods": [
"delete_environment"
]
},
"DeleteInstance": {
"methods": [
"delete_instance"
]
},
"GetEnvironment": {
"methods": [
"get_environment"
]
},
"GetInstance": {
"methods": [
"get_instance"
]
},
"IsInstanceUpgradeable": {
"methods": [
"is_instance_upgradeable"
]
},
"ListEnvironments": {
"methods": [
"list_environments"
]
},
"ListInstances": {
"methods": [
"list_instances"
]
},
"RegisterInstance": {
"methods": [
"register_instance"
]
},
"ReportInstanceInfo": {
"methods": [
"report_instance_info"
]
},
"ResetInstance": {
"methods": [
"reset_instance"
]
},
"SetInstanceAccelerator": {
"methods": [
"set_instance_accelerator"
]
},
"SetInstanceLabels": {
"methods": [
"set_instance_labels"
]
},
"SetInstanceMachineType": {
"methods": [
"set_instance_machine_type"
]
},
"StartInstance": {
"methods": [
"start_instance"
]
},
"StopInstance": {
"methods": [
"stop_instance"
]
},
"UpgradeInstance": {
"methods": [
"upgrade_instance"
]
},
"UpgradeInstanceInternal": {
"methods": [
"upgrade_instance_internal"
]
}
}
}
}
}
}
}
1 change: 0 additions & 1 deletion google/cloud/notebooks_v1beta1/services/__init__.py
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -14,7 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#

from .client import NotebookServiceClient
from .async_client import NotebookServiceAsyncClient

Expand Down

0 comments on commit 7a84b3b

Please sign in to comment.