...

Source file src/google.golang.org/genproto/googleapis/iam/v1/alias.go

Documentation: google.golang.org/genproto/googleapis/iam/v1

     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 iam aliases all exported identifiers in package
    18  // "cloud.google.com/go/iam/apiv1/iampb".
    19  //
    20  // Deprecated: Please use types in: cloud.google.com/go/iam/apiv1/iampb.
    21  // Please read https://github.com/googleapis/google-cloud-go/blob/main/migration.md
    22  // for more details.
    23  package iam
    24  
    25  import (
    26  	src "cloud.google.com/go/iam/apiv1/iampb"
    27  	grpc "google.golang.org/grpc"
    28  )
    29  
    30  // Deprecated: Please use consts in: cloud.google.com/go/iam/apiv1/iampb
    31  const (
    32  	AuditConfigDelta_ACTION_UNSPECIFIED = src.AuditConfigDelta_ACTION_UNSPECIFIED
    33  	AuditConfigDelta_ADD                = src.AuditConfigDelta_ADD
    34  	AuditConfigDelta_REMOVE             = src.AuditConfigDelta_REMOVE
    35  	AuditLogConfig_ADMIN_READ           = src.AuditLogConfig_ADMIN_READ
    36  	AuditLogConfig_DATA_READ            = src.AuditLogConfig_DATA_READ
    37  	AuditLogConfig_DATA_WRITE           = src.AuditLogConfig_DATA_WRITE
    38  	AuditLogConfig_LOG_TYPE_UNSPECIFIED = src.AuditLogConfig_LOG_TYPE_UNSPECIFIED
    39  	BindingDelta_ACTION_UNSPECIFIED     = src.BindingDelta_ACTION_UNSPECIFIED
    40  	BindingDelta_ADD                    = src.BindingDelta_ADD
    41  	BindingDelta_REMOVE                 = src.BindingDelta_REMOVE
    42  )
    43  
    44  // Deprecated: Please use vars in: cloud.google.com/go/iam/apiv1/iampb
    45  var (
    46  	AuditConfigDelta_Action_name        = src.AuditConfigDelta_Action_name
    47  	AuditConfigDelta_Action_value       = src.AuditConfigDelta_Action_value
    48  	AuditLogConfig_LogType_name         = src.AuditLogConfig_LogType_name
    49  	AuditLogConfig_LogType_value        = src.AuditLogConfig_LogType_value
    50  	BindingDelta_Action_name            = src.BindingDelta_Action_name
    51  	BindingDelta_Action_value           = src.BindingDelta_Action_value
    52  	File_google_iam_v1_iam_policy_proto = src.File_google_iam_v1_iam_policy_proto
    53  	File_google_iam_v1_options_proto    = src.File_google_iam_v1_options_proto
    54  	File_google_iam_v1_policy_proto     = src.File_google_iam_v1_policy_proto
    55  )
    56  
    57  // Specifies the audit configuration for a service. The configuration
    58  // determines which permission types are logged, and what identities, if any,
    59  // are exempted from logging. An AuditConfig must have one or more
    60  // AuditLogConfigs. If there are AuditConfigs for both `allServices` and a
    61  // specific service, the union of the two AuditConfigs is used for that
    62  // service: the log_types specified in each AuditConfig are enabled, and the
    63  // exempted_members in each AuditLogConfig are exempted. Example Policy with
    64  // multiple AuditConfigs: { "audit_configs": [ { "service": "allServices",
    65  // "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [
    66  // "user:jose@example.com" ] }, { "log_type": "DATA_WRITE" }, { "log_type":
    67  // "ADMIN_READ" } ] }, { "service": "sampleservice.googleapis.com",
    68  // "audit_log_configs": [ { "log_type": "DATA_READ" }, { "log_type":
    69  // "DATA_WRITE", "exempted_members": [ "user:aliya@example.com" ] } ] } ] } For
    70  // sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
    71  // logging. It also exempts jose@example.com from DATA_READ logging, and
    72  // aliya@example.com from DATA_WRITE logging.
    73  //
    74  // Deprecated: Please use types in: cloud.google.com/go/iam/apiv1/iampb
    75  type AuditConfig = src.AuditConfig
    76  
    77  // One delta entry for AuditConfig. Each individual change (only one
    78  // exempted_member in each entry) to a AuditConfig will be a separate entry.
    79  //
    80  // Deprecated: Please use types in: cloud.google.com/go/iam/apiv1/iampb
    81  type AuditConfigDelta = src.AuditConfigDelta
    82  
    83  // The type of action performed on an audit configuration in a policy.
    84  //
    85  // Deprecated: Please use types in: cloud.google.com/go/iam/apiv1/iampb
    86  type AuditConfigDelta_Action = src.AuditConfigDelta_Action
    87  
    88  // Provides the configuration for logging a type of permissions. Example: {
    89  // "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [
    90  // "user:jose@example.com" ] }, { "log_type": "DATA_WRITE" } ] } This enables
    91  // 'DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from
    92  // DATA_READ logging.
    93  //
    94  // Deprecated: Please use types in: cloud.google.com/go/iam/apiv1/iampb
    95  type AuditLogConfig = src.AuditLogConfig
    96  
    97  // The list of valid permission types for which logging can be configured.
    98  // Admin writes are always logged, and are not configurable.
    99  //
   100  // Deprecated: Please use types in: cloud.google.com/go/iam/apiv1/iampb
   101  type AuditLogConfig_LogType = src.AuditLogConfig_LogType
   102  
   103  // Associates `members`, or principals, with a `role`.
   104  //
   105  // Deprecated: Please use types in: cloud.google.com/go/iam/apiv1/iampb
   106  type Binding = src.Binding
   107  
   108  // One delta entry for Binding. Each individual change (only one member in
   109  // each entry) to a binding will be a separate entry.
   110  //
   111  // Deprecated: Please use types in: cloud.google.com/go/iam/apiv1/iampb
   112  type BindingDelta = src.BindingDelta
   113  
   114  // The type of action performed on a Binding in a policy.
   115  //
   116  // Deprecated: Please use types in: cloud.google.com/go/iam/apiv1/iampb
   117  type BindingDelta_Action = src.BindingDelta_Action
   118  
   119  // Request message for `GetIamPolicy` method.
   120  //
   121  // Deprecated: Please use types in: cloud.google.com/go/iam/apiv1/iampb
   122  type GetIamPolicyRequest = src.GetIamPolicyRequest
   123  
   124  // Encapsulates settings provided to GetIamPolicy.
   125  //
   126  // Deprecated: Please use types in: cloud.google.com/go/iam/apiv1/iampb
   127  type GetPolicyOptions = src.GetPolicyOptions
   128  
   129  // IAMPolicyClient is the client API for IAMPolicy service. For semantics
   130  // around ctx use and closing/ending streaming RPCs, please refer to
   131  // https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   132  //
   133  // Deprecated: Please use types in: cloud.google.com/go/iam/apiv1/iampb
   134  type IAMPolicyClient = src.IAMPolicyClient
   135  
   136  // IAMPolicyServer is the server API for IAMPolicy service.
   137  //
   138  // Deprecated: Please use types in: cloud.google.com/go/iam/apiv1/iampb
   139  type IAMPolicyServer = src.IAMPolicyServer
   140  
   141  // An Identity and Access Management (IAM) policy, which specifies access
   142  // controls for Google Cloud resources. A `Policy` is a collection of
   143  // `bindings`. A `binding` binds one or more `members`, or principals, to a
   144  // single `role`. Principals can be user accounts, service accounts, Google
   145  // groups, and domains (such as G Suite). A `role` is a named list of
   146  // permissions; each `role` can be an IAM predefined role or a user-created
   147  // custom role. For some types of Google Cloud resources, a `binding` can also
   148  // specify a `condition`, which is a logical expression that allows access to a
   149  // resource only if the expression evaluates to `true`. A condition can add
   150  // constraints based on attributes of the request, the resource, or both. To
   151  // learn which resources support conditions in their IAM policies, see the [IAM
   152  // documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
   153  // **JSON example:** { "bindings": [ { "role":
   154  // "roles/resourcemanager.organizationAdmin", "members": [
   155  // "user:mike@example.com", "group:admins@example.com", "domain:google.com",
   156  // "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role":
   157  // "roles/resourcemanager.organizationViewer", "members": [
   158  // "user:eve@example.com" ], "condition": { "title": "expirable access",
   159  // "description": "Does not grant access after Sep 2020", "expression":
   160  // "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag":
   161  // "BwWWja0YfJA=", "version": 3 } **YAML example:** bindings: - members: -
   162  // user:mike@example.com - group:admins@example.com - domain:google.com -
   163  // serviceAccount:my-project-id@appspot.gserviceaccount.com role:
   164  // roles/resourcemanager.organizationAdmin - members: - user:eve@example.com
   165  // role: roles/resourcemanager.organizationViewer condition: title: expirable
   166  // access description: Does not grant access after Sep 2020 expression:
   167  // request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA=
   168  // version: 3 For a description of IAM and its features, see the [IAM
   169  // documentation](https://cloud.google.com/iam/docs/).
   170  //
   171  // Deprecated: Please use types in: cloud.google.com/go/iam/apiv1/iampb
   172  type Policy = src.Policy
   173  
   174  // The difference delta between two policies.
   175  //
   176  // Deprecated: Please use types in: cloud.google.com/go/iam/apiv1/iampb
   177  type PolicyDelta = src.PolicyDelta
   178  
   179  // Request message for `SetIamPolicy` method.
   180  //
   181  // Deprecated: Please use types in: cloud.google.com/go/iam/apiv1/iampb
   182  type SetIamPolicyRequest = src.SetIamPolicyRequest
   183  
   184  // Request message for `TestIamPermissions` method.
   185  //
   186  // Deprecated: Please use types in: cloud.google.com/go/iam/apiv1/iampb
   187  type TestIamPermissionsRequest = src.TestIamPermissionsRequest
   188  
   189  // Response message for `TestIamPermissions` method.
   190  //
   191  // Deprecated: Please use types in: cloud.google.com/go/iam/apiv1/iampb
   192  type TestIamPermissionsResponse = src.TestIamPermissionsResponse
   193  
   194  // UnimplementedIAMPolicyServer can be embedded to have forward compatible
   195  // implementations.
   196  //
   197  // Deprecated: Please use types in: cloud.google.com/go/iam/apiv1/iampb
   198  type UnimplementedIAMPolicyServer = src.UnimplementedIAMPolicyServer
   199  
   200  // Deprecated: Please use funcs in: cloud.google.com/go/iam/apiv1/iampb
   201  func NewIAMPolicyClient(cc grpc.ClientConnInterface) IAMPolicyClient {
   202  	return src.NewIAMPolicyClient(cc)
   203  }
   204  
   205  // Deprecated: Please use funcs in: cloud.google.com/go/iam/apiv1/iampb
   206  func RegisterIAMPolicyServer(s *grpc.Server, srv IAMPolicyServer) {
   207  	src.RegisterIAMPolicyServer(s, srv)
   208  }
   209  

View as plain text