Class: Google::Apis::DatamigrationV1::SqlAclEntry

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

Overview

An entry for an Access Control list.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SqlAclEntry

Returns a new instance of SqlAclEntry.



4326
4327
4328
# File 'lib/google/apis/datamigration_v1/classes.rb', line 4326

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

Instance Attribute Details

#expire_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 expireTime

Returns:

  • (String)


4309
4310
4311
# File 'lib/google/apis/datamigration_v1/classes.rb', line 4309

def expire_time
  @expire_time
end

#labelString

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

Returns:

  • (String)


4314
4315
4316
# File 'lib/google/apis/datamigration_v1/classes.rb', line 4314

def label
  @label
end

#ttlString

Input only. The time-to-leave of this access control entry. Corresponds to the JSON property ttl

Returns:

  • (String)


4319
4320
4321
# File 'lib/google/apis/datamigration_v1/classes.rb', line 4319

def ttl
  @ttl
end

#valueString

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

Returns:

  • (String)


4324
4325
4326
# File 'lib/google/apis/datamigration_v1/classes.rb', line 4324

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4331
4332
4333
4334
4335
4336
# File 'lib/google/apis/datamigration_v1/classes.rb', line 4331

def update!(**args)
  @expire_time = args[:expire_time] if args.key?(:expire_time)
  @label = args[:label] if args.key?(:label)
  @ttl = args[:ttl] if args.key?(:ttl)
  @value = args[:value] if args.key?(:value)
end