package orgpolicy
import "google.golang.org/genproto/googleapis/cloud/orgpolicy/v2"
Package orgpolicy aliases all exported identifiers in package "cloud.google.com/go/orgpolicy/apiv2/orgpolicypb".
Deprecated: Please use types in: cloud.google.com/go/orgpolicy/apiv2/orgpolicypb. Please read https://github.com/googleapis/google-cloud-go/blob/main/migration.md for more details.
Index ¶
- Constants
- Variables
- func RegisterOrgPolicyServer(s *grpc.Server, srv OrgPolicyServer)
- type AlternatePolicySpec
- type Constraint
- type Constraint_BooleanConstraint
- type Constraint_BooleanConstraint_
- type Constraint_ConstraintDefault
- type Constraint_ListConstraint
- type Constraint_ListConstraint_
- type CreatePolicyRequest
- type DeletePolicyRequest
- type GetEffectivePolicyRequest
- type GetPolicyRequest
- type ListConstraintsRequest
- type ListConstraintsResponse
- type ListPoliciesRequest
- type ListPoliciesResponse
- type OrgPolicyClient
- type OrgPolicyServer
- type Policy
- type PolicySpec
- type PolicySpec_PolicyRule
- type PolicySpec_PolicyRule_AllowAll
- type PolicySpec_PolicyRule_DenyAll
- type PolicySpec_PolicyRule_Enforce
- type PolicySpec_PolicyRule_StringValues
- type PolicySpec_PolicyRule_Values
- type UnimplementedOrgPolicyServer
- type UpdatePolicyRequest
Constants ¶
const ( Constraint_ALLOW = src.Constraint_ALLOW Constraint_CONSTRAINT_DEFAULT_UNSPECIFIED = src.Constraint_CONSTRAINT_DEFAULT_UNSPECIFIED Constraint_DENY = src.Constraint_DENY )
Deprecated: Please use consts in: cloud.google.com/go/orgpolicy/apiv2/orgpolicypb
Variables ¶
var ( Constraint_ConstraintDefault_name = src.Constraint_ConstraintDefault_name Constraint_ConstraintDefault_value = src.Constraint_ConstraintDefault_value File_google_cloud_orgpolicy_v2_constraint_proto = src.File_google_cloud_orgpolicy_v2_constraint_proto File_google_cloud_orgpolicy_v2_orgpolicy_proto = src.File_google_cloud_orgpolicy_v2_orgpolicy_proto )
Deprecated: Please use vars in: cloud.google.com/go/orgpolicy/apiv2/orgpolicypb
Functions ¶
func RegisterOrgPolicyServer ¶
func RegisterOrgPolicyServer(s *grpc.Server, srv OrgPolicyServer)
Deprecated: Please use funcs in: cloud.google.com/go/orgpolicy/apiv2/orgpolicypb
Types ¶
type AlternatePolicySpec ¶
type AlternatePolicySpec = src.AlternatePolicySpec
Similar to PolicySpec but with an extra 'launch' field for launch reference. The PolicySpec here is specific for dry-run/darklaunch.
Deprecated: Please use types in: cloud.google.com/go/orgpolicy/apiv2/orgpolicypb
type Constraint ¶
type Constraint = src.Constraint
A `constraint` describes a way to restrict resource's configuration. For example, you could enforce a constraint that controls which cloud services can be activated across an organization, or whether a Compute Engine instance can have serial port connections established. `Constraints` can be configured by the organization's policy administrator to fit the needs of the organization by setting a `policy` that includes `constraints` at different locations in the organization's resource hierarchy. Policies are inherited down the resource hierarchy from higher levels, but can also be overridden. For details about the inheritance rules please read about [`policies`][google.cloud.OrgPolicy.v2.Policy]. `Constraints` have a default behavior determined by the `constraint_default` field, which is the enforcement behavior that is used in the absence of a `policy` being defined or inherited for the resource in question.
Deprecated: Please use types in: cloud.google.com/go/orgpolicy/apiv2/orgpolicypb
type Constraint_BooleanConstraint ¶
type Constraint_BooleanConstraint = src.Constraint_BooleanConstraint
A `Constraint` that is either enforced or not. For example a constraint `constraints/compute.disableSerialPortAccess`. If it is enforced on a VM instance, serial port connections will not be opened to that instance.
Deprecated: Please use types in: cloud.google.com/go/orgpolicy/apiv2/orgpolicypb
type Constraint_BooleanConstraint_ ¶
type Constraint_BooleanConstraint_ = src.Constraint_BooleanConstraint_
type Constraint_ConstraintDefault ¶
type Constraint_ConstraintDefault = src.Constraint_ConstraintDefault
Specifies the default behavior in the absence of any `Policy` for the `Constraint`. This must not be `CONSTRAINT_DEFAULT_UNSPECIFIED`. Immutable after creation.
Deprecated: Please use types in: cloud.google.com/go/orgpolicy/apiv2/orgpolicypb
type Constraint_ListConstraint ¶
type Constraint_ListConstraint = src.Constraint_ListConstraint
A `Constraint` that allows or disallows a list of string values, which are configured by an Organization's policy administrator with a `Policy`.
Deprecated: Please use types in: cloud.google.com/go/orgpolicy/apiv2/orgpolicypb
type Constraint_ListConstraint_ ¶
type Constraint_ListConstraint_ = src.Constraint_ListConstraint_
type CreatePolicyRequest ¶
type CreatePolicyRequest = src.CreatePolicyRequest
The request sent to the CreatePolicyRequest [google.cloud.orgpolicy.v2.OrgPolicy.CreatePolicy] method.
Deprecated: Please use types in: cloud.google.com/go/orgpolicy/apiv2/orgpolicypb
type DeletePolicyRequest ¶
type DeletePolicyRequest = src.DeletePolicyRequest
The request sent to the [DeletePolicy] [google.cloud.orgpolicy.v2.OrgPolicy.DeletePolicy] method.
Deprecated: Please use types in: cloud.google.com/go/orgpolicy/apiv2/orgpolicypb
type GetEffectivePolicyRequest ¶
type GetEffectivePolicyRequest = src.GetEffectivePolicyRequest
The request sent to the [GetEffectivePolicy] [google.cloud.orgpolicy.v2.OrgPolicy.GetEffectivePolicy] method.
Deprecated: Please use types in: cloud.google.com/go/orgpolicy/apiv2/orgpolicypb
type GetPolicyRequest ¶
type GetPolicyRequest = src.GetPolicyRequest
The request sent to the [GetPolicy] [google.cloud.orgpolicy.v2.OrgPolicy.GetPolicy] method.
Deprecated: Please use types in: cloud.google.com/go/orgpolicy/apiv2/orgpolicypb
type ListConstraintsRequest ¶
type ListConstraintsRequest = src.ListConstraintsRequest
The request sent to the [ListConstraints] [google.cloud.orgpolicy.v2.OrgPolicy.ListConstraints] method.
Deprecated: Please use types in: cloud.google.com/go/orgpolicy/apiv2/orgpolicypb
type ListConstraintsResponse ¶
type ListConstraintsResponse = src.ListConstraintsResponse
The response returned from the [ListConstraints] [google.cloud.orgpolicy.v2.OrgPolicy.ListConstraints] method.
Deprecated: Please use types in: cloud.google.com/go/orgpolicy/apiv2/orgpolicypb
type ListPoliciesRequest ¶
type ListPoliciesRequest = src.ListPoliciesRequest
The request sent to the [ListPolicies] [google.cloud.orgpolicy.v2.OrgPolicy.ListPolicies] method.
Deprecated: Please use types in: cloud.google.com/go/orgpolicy/apiv2/orgpolicypb
type ListPoliciesResponse ¶
type ListPoliciesResponse = src.ListPoliciesResponse
The response returned from the [ListPolicies] [google.cloud.orgpolicy.v2.OrgPolicy.ListPolicies] method. It will be empty if no `Policies` are set on the resource.
Deprecated: Please use types in: cloud.google.com/go/orgpolicy/apiv2/orgpolicypb
type OrgPolicyClient ¶
type OrgPolicyClient = src.OrgPolicyClient
OrgPolicyClient is the client API for OrgPolicy service. For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
Deprecated: Please use types in: cloud.google.com/go/orgpolicy/apiv2/orgpolicypb
func NewOrgPolicyClient ¶
func NewOrgPolicyClient(cc grpc.ClientConnInterface) OrgPolicyClient
Deprecated: Please use funcs in: cloud.google.com/go/orgpolicy/apiv2/orgpolicypb
type OrgPolicyServer ¶
type OrgPolicyServer = src.OrgPolicyServer
OrgPolicyServer is the server API for OrgPolicy service.
Deprecated: Please use types in: cloud.google.com/go/orgpolicy/apiv2/orgpolicypb
type Policy ¶
Defines a Cloud Organization `Policy` which is used to specify `Constraints` for configurations of Cloud Platform resources.
Deprecated: Please use types in: cloud.google.com/go/orgpolicy/apiv2/orgpolicypb
type PolicySpec ¶
type PolicySpec = src.PolicySpec
Defines a Cloud Organization `PolicySpec` which is used to specify `Constraints` for configurations of Cloud Platform resources.
Deprecated: Please use types in: cloud.google.com/go/orgpolicy/apiv2/orgpolicypb
type PolicySpec_PolicyRule ¶
type PolicySpec_PolicyRule = src.PolicySpec_PolicyRule
A rule used to express this policy.
Deprecated: Please use types in: cloud.google.com/go/orgpolicy/apiv2/orgpolicypb
type PolicySpec_PolicyRule_AllowAll ¶
type PolicySpec_PolicyRule_AllowAll = src.PolicySpec_PolicyRule_AllowAll
type PolicySpec_PolicyRule_DenyAll ¶
type PolicySpec_PolicyRule_DenyAll = src.PolicySpec_PolicyRule_DenyAll
type PolicySpec_PolicyRule_Enforce ¶
type PolicySpec_PolicyRule_Enforce = src.PolicySpec_PolicyRule_Enforce
type PolicySpec_PolicyRule_StringValues ¶
type PolicySpec_PolicyRule_StringValues = src.PolicySpec_PolicyRule_StringValues
A message that holds specific allowed and denied values. This message can define specific values and subtrees of Cloud Resource Manager resource hierarchy (`Organizations`, `Folders`, `Projects`) that are allowed or denied. This is achieved by using the `under:` and optional `is:` prefixes. The `under:` prefix is used to denote resource subtree values. The `is:` prefix is used to denote specific values, and is required only if the value contains a ":". Values prefixed with "is:" are treated the same as values with no prefix. Ancestry subtrees must be in one of the following formats: - "projects/<project-id>", e.g. "projects/tokyo-rain-123" - "folders/<folder-id>", e.g. "folders/1234" - "organizations/<organization-id>", e.g. "organizations/1234" The `supports_under` field of the associated `Constraint` defines whether ancestry prefixes can be used.
Deprecated: Please use types in: cloud.google.com/go/orgpolicy/apiv2/orgpolicypb
type PolicySpec_PolicyRule_Values ¶
type PolicySpec_PolicyRule_Values = src.PolicySpec_PolicyRule_Values
type UnimplementedOrgPolicyServer ¶
type UnimplementedOrgPolicyServer = src.UnimplementedOrgPolicyServer
UnimplementedOrgPolicyServer can be embedded to have forward compatible implementations.
Deprecated: Please use types in: cloud.google.com/go/orgpolicy/apiv2/orgpolicypb
type UpdatePolicyRequest ¶
type UpdatePolicyRequest = src.UpdatePolicyRequest
The request sent to the UpdatePolicyRequest [google.cloud.orgpolicy.v2.OrgPolicy.UpdatePolicy] method.
Deprecated: Please use types in: cloud.google.com/go/orgpolicy/apiv2/orgpolicypb
Source Files ¶
alias.go
- Version
- v0.0.0-20250219182151-9fdb1cabc7b2 (latest)
- Published
- Feb 19, 2025
- Platform
- linux/amd64
- Imports
- 2 packages
- Last checked
- 56 minutes ago –
Tools for package owners.