Class: Google::Apis::FtpV1::AllowedConsumer
- Inherits:
-
Object
- Object
- Google::Apis::FtpV1::AllowedConsumer
- 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
-
#connection_limit ⇒ Fixnum
Required.
-
#project ⇒ String
The project ID or number of the consumer project.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AllowedConsumer
constructor
A new instance of AllowedConsumer.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_limit ⇒ Fixnum
Required. The connection limit for the consumer. Value must be greater than 0.
Corresponds to the JSON property connectionLimit
33 34 35 |
# File 'lib/google/apis/ftp_v1/classes.rb', line 33 def connection_limit @connection_limit end |
#project ⇒ String
The project ID or number of the consumer project. Must be in the format:
projects/project`.
Corresponds to the JSON propertyproject`
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 |