Class: Google::Apis::FtpV1::AllowedConsumer

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

Overview

A consumer project or network that is permitted to connect to the server via PSC.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AllowedConsumer

Returns a new instance of AllowedConsumer.



41
42
43
# File 'lib/google/apis/ftp_v1/classes.rb', line 41

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

Instance Attribute Details

#connection_limitFixnum

Required. The connection limit for the consumer. Value must be greater than 0. Corresponds to the JSON property connectionLimit

Returns:

  • (Fixnum)


33
34
35
# File 'lib/google/apis/ftp_v1/classes.rb', line 33

def connection_limit
  @connection_limit
end

#projectString

The project ID or number of the consumer project. Must be in the format: projects/project`. Corresponds to the JSON propertyproject`

Returns:

  • (String)


39
40
41
# File 'lib/google/apis/ftp_v1/classes.rb', line 39

def project
  @project
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



46
47
48
49
# File 'lib/google/apis/ftp_v1/classes.rb', line 46

def update!(**args)
  @connection_limit = args[:connection_limit] if args.key?(:connection_limit)
  @project = args[:project] if args.key?(:project)
end