Class: Google::Apis::PlusDomainsV1::Audience

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

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) ⇒ Audience

Returns a new instance of Audience.



1090
1091
1092
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 1090

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

Instance Attribute Details

#etagString

ETag of this response for caching purposes. Corresponds to the JSON property etag

Returns:

  • (String)


1063
1064
1065
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 1063

def etag
  @etag
end

#itemGoogle::Apis::PlusDomainsV1::PlusDomainsAclentryResource

The access control list entry. Corresponds to the JSON property item



1068
1069
1070
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 1068

def item
  @item
end

#kindString

Identifies this resource as an audience. Value: "plus#audience". Corresponds to the JSON property kind

Returns:

  • (String)


1073
1074
1075
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 1073

def kind
  @kind
end

#member_countFixnum

The number of people in this circle. This only applies if entity_type is CIRCLE. Corresponds to the JSON property memberCount

Returns:

  • (Fixnum)


1079
1080
1081
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 1079

def member_count
  @member_count
end

#visibilityString

The circle members' visibility as chosen by the owner of the circle. This only applies for items with "item.type" equals "circle". Possible values are:

  • "public" - Members are visible to the public.
  • "limited" - Members are visible to a limited audience.
  • "private" - Members are visible to the owner only. Corresponds to the JSON property visibility

Returns:

  • (String)


1088
1089
1090
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 1088

def visibility
  @visibility
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1095
1096
1097
1098
1099
1100
1101
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 1095

def update!(**args)
  @etag = args[:etag] if args.key?(:etag)
  @item = args[:item] if args.key?(:item)
  @kind = args[:kind] if args.key?(:kind)
  @member_count = args[:member_count] if args.key?(:member_count)
  @visibility = args[:visibility] if args.key?(:visibility)
end