Class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1RelatedAccountGroupMembership

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

Overview

A membership in a group of related accounts.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRecaptchaenterpriseV1RelatedAccountGroupMembership

Returns a new instance of GoogleCloudRecaptchaenterpriseV1RelatedAccountGroupMembership.



1328
1329
1330
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1328

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

Instance Attribute Details

#account_idString

The unique stable account identifier of the member. The identifier corresponds to an account_id provided in a previous CreateAssessment or AnnotateAssessment call. Corresponds to the JSON property accountId

Returns:

  • (String)


1311
1312
1313
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1311

def 
  @account_id
end

#hashed_account_idString

Deprecated: use account_id instead. The unique stable hashed account identifier of the member. The identifier corresponds to a hashed_account_id provided in a previous CreateAssessment or AnnotateAssessment call. Corresponds to the JSON property hashedAccountId NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


1319
1320
1321
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1319

def 
  @hashed_account_id
end

#nameString

Required. Identifier. The resource name for this membership in the format projects/project/relatedaccountgroups/relatedaccountgroup/memberships/ membership`. Corresponds to the JSON propertyname`

Returns:

  • (String)


1326
1327
1328
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1326

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1333
1334
1335
1336
1337
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1333

def update!(**args)
  @account_id = args[:account_id] if args.key?(:account_id)
  @hashed_account_id = args[:hashed_account_id] if args.key?(:hashed_account_id)
  @name = args[:name] if args.key?(:name)
end