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.



77
78
79
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 77

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

#nfs_pathString

Output only. The path to access NFS, in format shareIP:/InstanceID InstanceID is the generated ID instead of customer provided name. example like "10.0.0.0:/ g123456789-nfs001" Corresponds to the JSON property nfsPath

Returns:

  • (String)


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

def nfs_path
  @nfs_path
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)


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

def no_root_squash
  @no_root_squash
end

#share_ipString

Output only. The IP address of the share on this network. Assigned automatically during provisioning based on the network's services_cidr. Corresponds to the JSON property shareIp

Returns:

  • (String)


75
76
77
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 75

def share_ip
  @share_ip
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



82
83
84
85
86
87
88
89
90
91
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 82

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)
  @nfs_path = args[:nfs_path] if args.key?(:nfs_path)
  @no_root_squash = args[:no_root_squash] if args.key?(:no_root_squash)
  @share_ip = args[:share_ip] if args.key?(:share_ip)
end