class Google::Apis::AccesscontextmanagerV1::GcpUserAccessBinding

Restricts access to Cloud Console and Google Cloud APIs for a set of users using Context-Aware Access.

Attributes

access_levels[RW]

Required. Access level that a user must have to be granted access. Only one access level is supported, not multiple. This repeated field must have exactly one element. Example: “accessPolicies/9522/accessLevels/device_trusted” Corresponds to the JSON property `accessLevels` @return [Array<String>]

group_key[RW]

Required. Immutable. Google Group id whose members are subject to this binding' s restrictions. See “id” in the [G Suite Directory API's Groups resource] ( developers.google.com/admin-sdk/directory/v1/reference/groups#resource) . If a group's email address/alias is changed, this resource will continue to point at the changed group. This field does not accept group email addresses or aliases. Example: “01d520gv4vjcrht” Corresponds to the JSON property `groupKey` @return [String]

name[RW]

Immutable. Assigned by the server during creation. The last segment has an arbitrary length and has only URI unreserved characters (as defined by [RFC 3986 Section 2.3](tools.ietf.org/html/rfc3986#section-2.3)). Should not be specified by the client during creation. Example: “organizations/256/ gcpUserAccessBindings/b3-BhcX_Ud5N” Corresponds to the JSON property `name` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/accesscontextmanager_v1/classes.rb, line 639
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/accesscontextmanager_v1/classes.rb, line 644
def update!(**args)
  @access_levels = args[:access_levels] if args.key?(:access_levels)
  @group_key = args[:group_key] if args.key?(:group_key)
  @name = args[:name] if args.key?(:name)
end