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

Commit

Permalink
feat: add iam_v2beta (#206)
Browse files Browse the repository at this point in the history
  • Loading branch information
parthea authored Jun 27, 2022
1 parent a8b1cf0 commit f9bef11
Show file tree
Hide file tree
Showing 35 changed files with 8,093 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/.OwlBot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,15 @@ docker:
deep-remove-regex:
- /owl-bot-staging

deep-preserve-regex:
- /owl-bot-staging/iam/v1
- /owl-bot-staging/iam/v1beta

deep-copy-regex:
- source: /google/iam/credentials/(v.*)/.*-py/(.*)
dest: /owl-bot-staging/$1/$2
dest: /owl-bot-staging/iamcredentials/$1/$2
- source: /google/iam/(v.*)/.*-py/(.*)
dest: /owl-bot-staging/iam/$1/$2

begin-after-commit-hash: 130ce904e5d546c312943d10f48799590f9c0f66

10 changes: 10 additions & 0 deletions docs/iam_v2beta/policies.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Policies
--------------------------

.. automodule:: google.cloud.iam_v2beta.services.policies
:members:
:inherited-members:

.. automodule:: google.cloud.iam_v2beta.services.policies.pagers
:members:
:inherited-members:
6 changes: 6 additions & 0 deletions docs/iam_v2beta/services.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Services for Google Cloud Iam v2beta API
========================================
.. toctree::
:maxdepth: 2

policies
7 changes: 7 additions & 0 deletions docs/iam_v2beta/types.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Types for Google Cloud Iam v2beta API
=====================================

.. automodule:: google.cloud.iam_v2beta.types
:members:
:undoc-members:
:show-inheritance:
11 changes: 11 additions & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

.. include:: multiprocessing.rst

This package includes clients for multiple versions of Cloud Identity and Access Management.
By default, you will get version ``iam_credentials_v1``.


API Reference
-------------
Expand All @@ -11,6 +14,14 @@ API Reference
iam_credentials_v1/services
iam_credentials_v1/types

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

iam_v2beta/services
iam_v2beta/types


Migration Guide
---------------
Expand Down
44 changes: 44 additions & 0 deletions google/cloud/iam_v2beta/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# -*- 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.
#

from .services.policies import PoliciesAsyncClient, PoliciesClient
from .types.deny import DenyRule
from .types.policy import (
CreatePolicyRequest,
DeletePolicyRequest,
GetPolicyRequest,
ListPoliciesRequest,
ListPoliciesResponse,
Policy,
PolicyOperationMetadata,
PolicyRule,
UpdatePolicyRequest,
)

__all__ = (
"PoliciesAsyncClient",
"CreatePolicyRequest",
"DeletePolicyRequest",
"DenyRule",
"GetPolicyRequest",
"ListPoliciesRequest",
"ListPoliciesResponse",
"PoliciesClient",
"Policy",
"PolicyOperationMetadata",
"PolicyRule",
"UpdatePolicyRequest",
)
73 changes: 73 additions & 0 deletions google/cloud/iam_v2beta/gapic_metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
{
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
"language": "python",
"libraryPackage": "google.cloud.iam_v2beta",
"protoPackage": "google.iam.v2beta",
"schema": "1.0",
"services": {
"Policies": {
"clients": {
"grpc": {
"libraryClient": "PoliciesClient",
"rpcs": {
"CreatePolicy": {
"methods": [
"create_policy"
]
},
"DeletePolicy": {
"methods": [
"delete_policy"
]
},
"GetPolicy": {
"methods": [
"get_policy"
]
},
"ListPolicies": {
"methods": [
"list_policies"
]
},
"UpdatePolicy": {
"methods": [
"update_policy"
]
}
}
},
"grpc-async": {
"libraryClient": "PoliciesAsyncClient",
"rpcs": {
"CreatePolicy": {
"methods": [
"create_policy"
]
},
"DeletePolicy": {
"methods": [
"delete_policy"
]
},
"GetPolicy": {
"methods": [
"get_policy"
]
},
"ListPolicies": {
"methods": [
"list_policies"
]
},
"UpdatePolicy": {
"methods": [
"update_policy"
]
}
}
}
}
}
}
}
2 changes: 2 additions & 0 deletions google/cloud/iam_v2beta/py.typed
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Marker file for PEP 561.
# The google-cloud-iam package uses inline types.
15 changes: 15 additions & 0 deletions google/cloud/iam_v2beta/services/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# -*- 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.
#
22 changes: 22 additions & 0 deletions google/cloud/iam_v2beta/services/policies/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# -*- 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.
#
from .async_client import PoliciesAsyncClient
from .client import PoliciesClient

__all__ = (
"PoliciesClient",
"PoliciesAsyncClient",
)
Loading

0 comments on commit f9bef11

Please sign in to comment.