Class: Google::Apis::IamV1::BindingDelta

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/iam_v1/classes.rb,
generated/google/apis/iam_v1/representations.rb,
generated/google/apis/iam_v1/representations.rb

Overview

One delta entry for Binding. Each individual change (only one member in each entry) to a binding will be a separate entry.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ BindingDelta

Returns a new instance of BindingDelta.


270
271
272
# File 'generated/google/apis/iam_v1/classes.rb', line 270

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#actionString

The action that was performed on a Binding. Required Corresponds to the JSON property action

Returns:

  • (String)

237
238
239
# File 'generated/google/apis/iam_v1/classes.rb', line 237

def action
  @action
end

#conditionGoogle::Apis::IamV1::Expr

Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: "Summary size limit" description: "Determines if a summary is less than 100 chars" expression: "document.summary.size() < 100" Example (Equality): title: " Requestor is owner" description: "Determines if requestor is the document owner" expression: "document.owner == request.auth.claims.email" Example ( Logic): title: "Public documents" description: "Determine whether the document should be publicly visible" expression: "document.type != 'private' && document.type != 'internal'" Example (Data Manipulation): title: "Notification string" description: "Create a notification string with a timestamp." expression: "'New message received at ' + string(document.create_time)" The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information. Corresponds to the JSON property condition


256
257
258
# File 'generated/google/apis/iam_v1/classes.rb', line 256

def condition
  @condition
end

#memberString

A single identity requesting access for a Cloud Platform resource. Follows the same format of Binding.members. Required Corresponds to the JSON property member

Returns:

  • (String)

262
263
264
# File 'generated/google/apis/iam_v1/classes.rb', line 262

def member
  @member
end

#roleString

Role that is assigned to members. For example, roles/viewer, roles/editor , or roles/owner. Required Corresponds to the JSON property role

Returns:

  • (String)

268
269
270
# File 'generated/google/apis/iam_v1/classes.rb', line 268

def role
  @role
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


275
276
277
278
279
280
# File 'generated/google/apis/iam_v1/classes.rb', line 275

def update!(**args)
  @action = args[:action] if args.key?(:action)
  @condition = args[:condition] if args.key?(:condition)
  @member = args[:member] if args.key?(:member)
  @role = args[:role] if args.key?(:role)
end