Class: Google::Apis::SqladminV1beta4::AclEntry

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

Overview

An entry for an Access Control list.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AclEntry

Returns a new instance of AclEntry.



50
51
52
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 50

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)


33
34
35
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 33

def expiration_time
  @expiration_time
end

#kindString

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

Returns:

  • (String)


38
39
40
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 38

def kind
  @kind
end

#nameString

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

Returns:

  • (String)


43
44
45
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 43

def name
  @name
end

#valueString

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

Returns:

  • (String)


48
49
50
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 48

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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