Class: Google::Apis::SqlV1beta4::AclEntry

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

Overview

An entry for an Access Control list.

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

Returns a new instance of AclEntry.



51
52
53
# File 'generated/google/apis/sql_v1beta4/classes.rb', line 51

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

Instance Attribute Details

#expiration_timeString

The time when this access control entry expires in RFC 3339 format, for example 2012-11-15T16:19:00.094Z. Corresponds to the JSON property expirationTime

Returns:

  • (String)


34
35
36
# File 'generated/google/apis/sql_v1beta4/classes.rb', line 34

def expiration_time
  @expiration_time
end

#kindString

This is always sql#aclEntry. Corresponds to the JSON property kind

Returns:

  • (String)


39
40
41
# File 'generated/google/apis/sql_v1beta4/classes.rb', line 39

def kind
  @kind
end

#nameString

Optional. A label to identify this entry. Corresponds to the JSON property name

Returns:

  • (String)


44
45
46
# File 'generated/google/apis/sql_v1beta4/classes.rb', line 44

def name
  @name
end

#valueString

The whitelisted value for the access control list. Corresponds to the JSON property value

Returns:

  • (String)


49
50
51
# File 'generated/google/apis/sql_v1beta4/classes.rb', line 49

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



56
57
58
59
60
61
# File 'generated/google/apis/sql_v1beta4/classes.rb', line 56

def update!(**args)
  @expiration_time = args[:expiration_time] if args.key?(:expiration_time)
  @kind = args[:kind] if args.key?(:kind)
  @name = args[:name] if args.key?(:name)
  @value = args[:value] if args.key?(:value)
end