Skip to content

Commit

Permalink
feat: Add custom constraints CRUD APIs, proper etag support in Org Po…
Browse files Browse the repository at this point in the history
…licy Update/Delete API (#257)

* feat: Add custom constraints CRUD APIs, proper etag support in Org Policy Update/Delete API
docs: updated comments

PiperOrigin-RevId: 591301652

Source-Link: googleapis/googleapis@db5ce67

Source-Link: googleapis/googleapis-gen@3c13326
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiM2MxMzMyNjZlZGFhZjgxYjE0YzJkZDhmZDQ3MDUxMjdkY2JjZTA2YiJ9

* 🦉 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>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Dec 16, 2023
1 parent 3f7e628 commit 4419e5f
Show file tree
Hide file tree
Showing 26 changed files with 8,716 additions and 1,283 deletions.
14 changes: 14 additions & 0 deletions google/cloud/orgpolicy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,33 +24,47 @@
)

from google.cloud.orgpolicy_v2.types.constraint import Constraint
from google.cloud.orgpolicy_v2.types.constraint import CustomConstraint
from google.cloud.orgpolicy_v2.types.orgpolicy import AlternatePolicySpec
from google.cloud.orgpolicy_v2.types.orgpolicy import CreateCustomConstraintRequest
from google.cloud.orgpolicy_v2.types.orgpolicy import CreatePolicyRequest
from google.cloud.orgpolicy_v2.types.orgpolicy import DeleteCustomConstraintRequest
from google.cloud.orgpolicy_v2.types.orgpolicy import DeletePolicyRequest
from google.cloud.orgpolicy_v2.types.orgpolicy import GetCustomConstraintRequest
from google.cloud.orgpolicy_v2.types.orgpolicy import GetEffectivePolicyRequest
from google.cloud.orgpolicy_v2.types.orgpolicy import GetPolicyRequest
from google.cloud.orgpolicy_v2.types.orgpolicy import ListConstraintsRequest
from google.cloud.orgpolicy_v2.types.orgpolicy import ListConstraintsResponse
from google.cloud.orgpolicy_v2.types.orgpolicy import ListCustomConstraintsRequest
from google.cloud.orgpolicy_v2.types.orgpolicy import ListCustomConstraintsResponse
from google.cloud.orgpolicy_v2.types.orgpolicy import ListPoliciesRequest
from google.cloud.orgpolicy_v2.types.orgpolicy import ListPoliciesResponse
from google.cloud.orgpolicy_v2.types.orgpolicy import Policy
from google.cloud.orgpolicy_v2.types.orgpolicy import PolicySpec
from google.cloud.orgpolicy_v2.types.orgpolicy import UpdateCustomConstraintRequest
from google.cloud.orgpolicy_v2.types.orgpolicy import UpdatePolicyRequest

__all__ = (
"OrgPolicyClient",
"OrgPolicyAsyncClient",
"Constraint",
"CustomConstraint",
"AlternatePolicySpec",
"CreateCustomConstraintRequest",
"CreatePolicyRequest",
"DeleteCustomConstraintRequest",
"DeletePolicyRequest",
"GetCustomConstraintRequest",
"GetEffectivePolicyRequest",
"GetPolicyRequest",
"ListConstraintsRequest",
"ListConstraintsResponse",
"ListCustomConstraintsRequest",
"ListCustomConstraintsResponse",
"ListPoliciesRequest",
"ListPoliciesResponse",
"Policy",
"PolicySpec",
"UpdateCustomConstraintRequest",
"UpdatePolicyRequest",
)
14 changes: 14 additions & 0 deletions google/cloud/orgpolicy_v2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,33 +22,47 @@
from .services.org_policy import OrgPolicyAsyncClient

from .types.constraint import Constraint
from .types.constraint import CustomConstraint
from .types.orgpolicy import AlternatePolicySpec
from .types.orgpolicy import CreateCustomConstraintRequest
from .types.orgpolicy import CreatePolicyRequest
from .types.orgpolicy import DeleteCustomConstraintRequest
from .types.orgpolicy import DeletePolicyRequest
from .types.orgpolicy import GetCustomConstraintRequest
from .types.orgpolicy import GetEffectivePolicyRequest
from .types.orgpolicy import GetPolicyRequest
from .types.orgpolicy import ListConstraintsRequest
from .types.orgpolicy import ListConstraintsResponse
from .types.orgpolicy import ListCustomConstraintsRequest
from .types.orgpolicy import ListCustomConstraintsResponse
from .types.orgpolicy import ListPoliciesRequest
from .types.orgpolicy import ListPoliciesResponse
from .types.orgpolicy import Policy
from .types.orgpolicy import PolicySpec
from .types.orgpolicy import UpdateCustomConstraintRequest
from .types.orgpolicy import UpdatePolicyRequest

__all__ = (
"OrgPolicyAsyncClient",
"AlternatePolicySpec",
"Constraint",
"CreateCustomConstraintRequest",
"CreatePolicyRequest",
"CustomConstraint",
"DeleteCustomConstraintRequest",
"DeletePolicyRequest",
"GetCustomConstraintRequest",
"GetEffectivePolicyRequest",
"GetPolicyRequest",
"ListConstraintsRequest",
"ListConstraintsResponse",
"ListCustomConstraintsRequest",
"ListCustomConstraintsResponse",
"ListPoliciesRequest",
"ListPoliciesResponse",
"OrgPolicyClient",
"Policy",
"PolicySpec",
"UpdateCustomConstraintRequest",
"UpdatePolicyRequest",
)
75 changes: 75 additions & 0 deletions google/cloud/orgpolicy_v2/gapic_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,31 @@
"grpc": {
"libraryClient": "OrgPolicyClient",
"rpcs": {
"CreateCustomConstraint": {
"methods": [
"create_custom_constraint"
]
},
"CreatePolicy": {
"methods": [
"create_policy"
]
},
"DeleteCustomConstraint": {
"methods": [
"delete_custom_constraint"
]
},
"DeletePolicy": {
"methods": [
"delete_policy"
]
},
"GetCustomConstraint": {
"methods": [
"get_custom_constraint"
]
},
"GetEffectivePolicy": {
"methods": [
"get_effective_policy"
Expand All @@ -35,11 +50,21 @@
"list_constraints"
]
},
"ListCustomConstraints": {
"methods": [
"list_custom_constraints"
]
},
"ListPolicies": {
"methods": [
"list_policies"
]
},
"UpdateCustomConstraint": {
"methods": [
"update_custom_constraint"
]
},
"UpdatePolicy": {
"methods": [
"update_policy"
Expand All @@ -50,16 +75,31 @@
"grpc-async": {
"libraryClient": "OrgPolicyAsyncClient",
"rpcs": {
"CreateCustomConstraint": {
"methods": [
"create_custom_constraint"
]
},
"CreatePolicy": {
"methods": [
"create_policy"
]
},
"DeleteCustomConstraint": {
"methods": [
"delete_custom_constraint"
]
},
"DeletePolicy": {
"methods": [
"delete_policy"
]
},
"GetCustomConstraint": {
"methods": [
"get_custom_constraint"
]
},
"GetEffectivePolicy": {
"methods": [
"get_effective_policy"
Expand All @@ -75,11 +115,21 @@
"list_constraints"
]
},
"ListCustomConstraints": {
"methods": [
"list_custom_constraints"
]
},
"ListPolicies": {
"methods": [
"list_policies"
]
},
"UpdateCustomConstraint": {
"methods": [
"update_custom_constraint"
]
},
"UpdatePolicy": {
"methods": [
"update_policy"
Expand All @@ -90,16 +140,31 @@
"rest": {
"libraryClient": "OrgPolicyClient",
"rpcs": {
"CreateCustomConstraint": {
"methods": [
"create_custom_constraint"
]
},
"CreatePolicy": {
"methods": [
"create_policy"
]
},
"DeleteCustomConstraint": {
"methods": [
"delete_custom_constraint"
]
},
"DeletePolicy": {
"methods": [
"delete_policy"
]
},
"GetCustomConstraint": {
"methods": [
"get_custom_constraint"
]
},
"GetEffectivePolicy": {
"methods": [
"get_effective_policy"
Expand All @@ -115,11 +180,21 @@
"list_constraints"
]
},
"ListCustomConstraints": {
"methods": [
"list_custom_constraints"
]
},
"ListPolicies": {
"methods": [
"list_policies"
]
},
"UpdateCustomConstraint": {
"methods": [
"update_custom_constraint"
]
},
"UpdatePolicy": {
"methods": [
"update_policy"
Expand Down
Loading

0 comments on commit 4419e5f

Please sign in to comment.