Class: Google::Apis::FileV1beta1::ClientList

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

Overview

The sets of network addresses and DNS names for hosts to which a given export or share should be allowed or denied.

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

Returns a new instance of ClientList



54
55
56
# File 'generated/google/apis/file_v1beta1/classes.rb', line 54

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

Instance Attribute Details

#host_namesArray<String>

DNS names of hosts, with optional wildcards. Corresponds to the JSON property hostNames

Returns:

  • (Array<String>)


46
47
48
# File 'generated/google/apis/file_v1beta1/classes.rb', line 46

def host_names
  @host_names
end

#ip_addressesArray<String>

IPv4 addresses in the format octet 1.octet 2.octet 3.octet 4. Corresponds to the JSON property ipAddresses

Returns:

  • (Array<String>)


52
53
54
# File 'generated/google/apis/file_v1beta1/classes.rb', line 52

def ip_addresses
  @ip_addresses
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



59
60
61
62
# File 'generated/google/apis/file_v1beta1/classes.rb', line 59

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