...

Source file src/google.golang.org/genproto/googleapis/cloud/orgpolicy/v2/alias.go

Documentation: google.golang.org/genproto/googleapis/cloud/orgpolicy/v2

     1  // Copyright 2022 Google LLC
     2  //
     3  // Licensed under the Apache License, Version 2.0 (the "License");
     4  // you may not use this file except in compliance with the License.
     5  // You may obtain a copy of the License at
     6  //
     7  //     http://www.apache.org/licenses/LICENSE-2.0
     8  //
     9  // Unless required by applicable law or agreed to in writing, software
    10  // distributed under the License is distributed on an "AS IS" BASIS,
    11  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  // See the License for the specific language governing permissions and
    13  // limitations under the License.
    14  
    15  // Code generated by aliasgen. DO NOT EDIT.
    16  
    17  // Package orgpolicy aliases all exported identifiers in package
    18  // "cloud.google.com/go/orgpolicy/apiv2/orgpolicypb".
    19  //
    20  // Deprecated: Please use types in: cloud.google.com/go/orgpolicy/apiv2/orgpolicypb.
    21  // Please read https://github.com/googleapis/google-cloud-go/blob/main/migration.md
    22  // for more details.
    23  package orgpolicy
    24  
    25  import (
    26  	src "cloud.google.com/go/orgpolicy/apiv2/orgpolicypb"
    27  	grpc "google.golang.org/grpc"
    28  )
    29  
    30  // Deprecated: Please use consts in: cloud.google.com/go/orgpolicy/apiv2/orgpolicypb
    31  const (
    32  	Constraint_ALLOW                          = src.Constraint_ALLOW
    33  	Constraint_CONSTRAINT_DEFAULT_UNSPECIFIED = src.Constraint_CONSTRAINT_DEFAULT_UNSPECIFIED
    34  	Constraint_DENY                           = src.Constraint_DENY
    35  )
    36  
    37  // Deprecated: Please use vars in: cloud.google.com/go/orgpolicy/apiv2/orgpolicypb
    38  var (
    39  	Constraint_ConstraintDefault_name               = src.Constraint_ConstraintDefault_name
    40  	Constraint_ConstraintDefault_value              = src.Constraint_ConstraintDefault_value
    41  	File_google_cloud_orgpolicy_v2_constraint_proto = src.File_google_cloud_orgpolicy_v2_constraint_proto
    42  	File_google_cloud_orgpolicy_v2_orgpolicy_proto  = src.File_google_cloud_orgpolicy_v2_orgpolicy_proto
    43  )
    44  
    45  // Similar to PolicySpec but with an extra 'launch' field for launch
    46  // reference. The PolicySpec here is specific for dry-run/darklaunch.
    47  //
    48  // Deprecated: Please use types in: cloud.google.com/go/orgpolicy/apiv2/orgpolicypb
    49  type AlternatePolicySpec = src.AlternatePolicySpec
    50  
    51  // A `constraint` describes a way to restrict resource's configuration. For
    52  // example, you could enforce a constraint that controls which cloud services
    53  // can be activated across an organization, or whether a Compute Engine
    54  // instance can have serial port connections established. `Constraints` can be
    55  // configured by the organization's policy administrator to fit the needs of
    56  // the organization by setting a `policy` that includes `constraints` at
    57  // different locations in the organization's resource hierarchy. Policies are
    58  // inherited down the resource hierarchy from higher levels, but can also be
    59  // overridden. For details about the inheritance rules please read about
    60  // [`policies`][google.cloud.OrgPolicy.v2.Policy]. `Constraints` have a default
    61  // behavior determined by the `constraint_default` field, which is the
    62  // enforcement behavior that is used in the absence of a `policy` being defined
    63  // or inherited for the resource in question.
    64  //
    65  // Deprecated: Please use types in: cloud.google.com/go/orgpolicy/apiv2/orgpolicypb
    66  type Constraint = src.Constraint
    67  
    68  // A `Constraint` that is either enforced or not. For example a constraint
    69  // `constraints/compute.disableSerialPortAccess`. If it is enforced on a VM
    70  // instance, serial port connections will not be opened to that instance.
    71  //
    72  // Deprecated: Please use types in: cloud.google.com/go/orgpolicy/apiv2/orgpolicypb
    73  type Constraint_BooleanConstraint = src.Constraint_BooleanConstraint
    74  type Constraint_BooleanConstraint_ = src.Constraint_BooleanConstraint_
    75  
    76  // Specifies the default behavior in the absence of any `Policy` for the
    77  // `Constraint`. This must not be `CONSTRAINT_DEFAULT_UNSPECIFIED`. Immutable
    78  // after creation.
    79  //
    80  // Deprecated: Please use types in: cloud.google.com/go/orgpolicy/apiv2/orgpolicypb
    81  type Constraint_ConstraintDefault = src.Constraint_ConstraintDefault
    82  
    83  // A `Constraint` that allows or disallows a list of string values, which are
    84  // configured by an Organization's policy administrator with a `Policy`.
    85  //
    86  // Deprecated: Please use types in: cloud.google.com/go/orgpolicy/apiv2/orgpolicypb
    87  type Constraint_ListConstraint = src.Constraint_ListConstraint
    88  type Constraint_ListConstraint_ = src.Constraint_ListConstraint_
    89  
    90  // The request sent to the [CreatePolicyRequest]
    91  // [google.cloud.orgpolicy.v2.OrgPolicy.CreatePolicy] method.
    92  //
    93  // Deprecated: Please use types in: cloud.google.com/go/orgpolicy/apiv2/orgpolicypb
    94  type CreatePolicyRequest = src.CreatePolicyRequest
    95  
    96  // The request sent to the [DeletePolicy]
    97  // [google.cloud.orgpolicy.v2.OrgPolicy.DeletePolicy] method.
    98  //
    99  // Deprecated: Please use types in: cloud.google.com/go/orgpolicy/apiv2/orgpolicypb
   100  type DeletePolicyRequest = src.DeletePolicyRequest
   101  
   102  // The request sent to the [GetEffectivePolicy]
   103  // [google.cloud.orgpolicy.v2.OrgPolicy.GetEffectivePolicy] method.
   104  //
   105  // Deprecated: Please use types in: cloud.google.com/go/orgpolicy/apiv2/orgpolicypb
   106  type GetEffectivePolicyRequest = src.GetEffectivePolicyRequest
   107  
   108  // The request sent to the [GetPolicy]
   109  // [google.cloud.orgpolicy.v2.OrgPolicy.GetPolicy] method.
   110  //
   111  // Deprecated: Please use types in: cloud.google.com/go/orgpolicy/apiv2/orgpolicypb
   112  type GetPolicyRequest = src.GetPolicyRequest
   113  
   114  // The request sent to the [ListConstraints]
   115  // [google.cloud.orgpolicy.v2.OrgPolicy.ListConstraints] method.
   116  //
   117  // Deprecated: Please use types in: cloud.google.com/go/orgpolicy/apiv2/orgpolicypb
   118  type ListConstraintsRequest = src.ListConstraintsRequest
   119  
   120  // The response returned from the [ListConstraints]
   121  // [google.cloud.orgpolicy.v2.OrgPolicy.ListConstraints] method.
   122  //
   123  // Deprecated: Please use types in: cloud.google.com/go/orgpolicy/apiv2/orgpolicypb
   124  type ListConstraintsResponse = src.ListConstraintsResponse
   125  
   126  // The request sent to the [ListPolicies]
   127  // [google.cloud.orgpolicy.v2.OrgPolicy.ListPolicies] method.
   128  //
   129  // Deprecated: Please use types in: cloud.google.com/go/orgpolicy/apiv2/orgpolicypb
   130  type ListPoliciesRequest = src.ListPoliciesRequest
   131  
   132  // The response returned from the [ListPolicies]
   133  // [google.cloud.orgpolicy.v2.OrgPolicy.ListPolicies] method. It will be empty
   134  // if no `Policies` are set on the resource.
   135  //
   136  // Deprecated: Please use types in: cloud.google.com/go/orgpolicy/apiv2/orgpolicypb
   137  type ListPoliciesResponse = src.ListPoliciesResponse
   138  
   139  // OrgPolicyClient is the client API for OrgPolicy service. For semantics
   140  // around ctx use and closing/ending streaming RPCs, please refer to
   141  // https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   142  //
   143  // Deprecated: Please use types in: cloud.google.com/go/orgpolicy/apiv2/orgpolicypb
   144  type OrgPolicyClient = src.OrgPolicyClient
   145  
   146  // OrgPolicyServer is the server API for OrgPolicy service.
   147  //
   148  // Deprecated: Please use types in: cloud.google.com/go/orgpolicy/apiv2/orgpolicypb
   149  type OrgPolicyServer = src.OrgPolicyServer
   150  
   151  // Defines a Cloud Organization `Policy` which is used to specify
   152  // `Constraints` for configurations of Cloud Platform resources.
   153  //
   154  // Deprecated: Please use types in: cloud.google.com/go/orgpolicy/apiv2/orgpolicypb
   155  type Policy = src.Policy
   156  
   157  // Defines a Cloud Organization `PolicySpec` which is used to specify
   158  // `Constraints` for configurations of Cloud Platform resources.
   159  //
   160  // Deprecated: Please use types in: cloud.google.com/go/orgpolicy/apiv2/orgpolicypb
   161  type PolicySpec = src.PolicySpec
   162  
   163  // A rule used to express this policy.
   164  //
   165  // Deprecated: Please use types in: cloud.google.com/go/orgpolicy/apiv2/orgpolicypb
   166  type PolicySpec_PolicyRule = src.PolicySpec_PolicyRule
   167  type PolicySpec_PolicyRule_AllowAll = src.PolicySpec_PolicyRule_AllowAll
   168  type PolicySpec_PolicyRule_DenyAll = src.PolicySpec_PolicyRule_DenyAll
   169  type PolicySpec_PolicyRule_Enforce = src.PolicySpec_PolicyRule_Enforce
   170  
   171  // A message that holds specific allowed and denied values. This message can
   172  // define specific values and subtrees of Cloud Resource Manager resource
   173  // hierarchy (`Organizations`, `Folders`, `Projects`) that are allowed or
   174  // denied. This is achieved by using the `under:` and optional `is:` prefixes.
   175  // The `under:` prefix is used to denote resource subtree values. The `is:`
   176  // prefix is used to denote specific values, and is required only if the value
   177  // contains a ":". Values prefixed with "is:" are treated the same as values
   178  // with no prefix. Ancestry subtrees must be in one of the following formats: -
   179  // "projects/<project-id>", e.g. "projects/tokyo-rain-123" -
   180  // "folders/<folder-id>", e.g. "folders/1234" -
   181  // "organizations/<organization-id>", e.g. "organizations/1234" The
   182  // `supports_under` field of the associated `Constraint` defines whether
   183  // ancestry prefixes can be used.
   184  //
   185  // Deprecated: Please use types in: cloud.google.com/go/orgpolicy/apiv2/orgpolicypb
   186  type PolicySpec_PolicyRule_StringValues = src.PolicySpec_PolicyRule_StringValues
   187  type PolicySpec_PolicyRule_Values = src.PolicySpec_PolicyRule_Values
   188  
   189  // UnimplementedOrgPolicyServer can be embedded to have forward compatible
   190  // implementations.
   191  //
   192  // Deprecated: Please use types in: cloud.google.com/go/orgpolicy/apiv2/orgpolicypb
   193  type UnimplementedOrgPolicyServer = src.UnimplementedOrgPolicyServer
   194  
   195  // The request sent to the [UpdatePolicyRequest]
   196  // [google.cloud.orgpolicy.v2.OrgPolicy.UpdatePolicy] method.
   197  //
   198  // Deprecated: Please use types in: cloud.google.com/go/orgpolicy/apiv2/orgpolicypb
   199  type UpdatePolicyRequest = src.UpdatePolicyRequest
   200  
   201  // Deprecated: Please use funcs in: cloud.google.com/go/orgpolicy/apiv2/orgpolicypb
   202  func NewOrgPolicyClient(cc grpc.ClientConnInterface) OrgPolicyClient {
   203  	return src.NewOrgPolicyClient(cc)
   204  }
   205  
   206  // Deprecated: Please use funcs in: cloud.google.com/go/orgpolicy/apiv2/orgpolicypb
   207  func RegisterOrgPolicyServer(s *grpc.Server, srv OrgPolicyServer) {
   208  	src.RegisterOrgPolicyServer(s, srv)
   209  }
   210  

View as plain text