Class: Google::Apis::BaremetalsolutionV2::AllowedClient

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

Overview

Represents an 'access point' for the share.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AllowedClient

Returns a new instance of AllowedClient.



69
70
71
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 69

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

Instance Attribute Details

#allow_devBoolean Also known as: allow_dev?

Allow dev flag. Which controls whether to allow creation of devices. Corresponds to the JSON property allowDev

Returns:

  • (Boolean)


32
33
34
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 32

def allow_dev
  @allow_dev
end

#allow_suidBoolean Also known as: allow_suid?

Allow the setuid flag. Corresponds to the JSON property allowSuid

Returns:

  • (Boolean)


38
39
40
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 38

def allow_suid
  @allow_suid
end

#allowed_clients_cidrString

The subnet of IP addresses permitted to access the share. Corresponds to the JSON property allowedClientsCidr

Returns:

  • (String)


44
45
46
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 44

def allowed_clients_cidr
  @allowed_clients_cidr
end

#mount_permissionsString

Mount permissions. Corresponds to the JSON property mountPermissions

Returns:

  • (String)


49
50
51
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 49

def mount_permissions
  @mount_permissions
end

#networkString

The network the access point sits on. Corresponds to the JSON property network

Returns:

  • (String)


54
55
56
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 54

def network
  @network
end

#no_root_squashBoolean Also known as: no_root_squash?

Disable root squashing, which is a feature of NFS. Root squash is a special mapping of the remote superuser (root) identity when using identity authentication. Corresponds to the JSON property noRootSquash

Returns:

  • (Boolean)


61
62
63
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 61

def no_root_squash
  @no_root_squash
end

#share_ipString

The IP address of the share on this network. Corresponds to the JSON property shareIp

Returns:

  • (String)


67
68
69
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 67

def share_ip
  @share_ip
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



74
75
76
77
78
79
80
81
82
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 74

def update!(**args)
  @allow_dev = args[:allow_dev] if args.key?(:allow_dev)
  @allow_suid = args[:allow_suid] if args.key?(:allow_suid)
  @allowed_clients_cidr = args[:allowed_clients_cidr] if args.key?(:allowed_clients_cidr)
  @mount_permissions = args[:mount_permissions] if args.key?(:mount_permissions)
  @network = args[:network] if args.key?(:network)
  @no_root_squash = args[:no_root_squash] if args.key?(:no_root_squash)
  @share_ip = args[:share_ip] if args.key?(:share_ip)
end