Bare Metal Solution API . projects . locations . nfsshares

Instance Methods

close()

Close httplib2 connections.

rename(name, body=None, x__xgafv=None)

RenameNfsShare sets a new name for an nfsshare. Use with caution, previous names become immediately invalidated.

Method Details

close()
Close httplib2 connections.
rename(name, body=None, x__xgafv=None)
RenameNfsShare sets a new name for an nfsshare. Use with caution, previous names become immediately invalidated.

Args:
  name: string, Required. The `name` field is used to identify the nfsshare. Format: projects/{project}/locations/{location}/nfsshares/{nfsshare} (required)
  body: object, The request body.
    The object takes the form of:

{ # Message requesting rename of a server.
  "newNfsshareId": "A String", # Required. The new `id` of the nfsshare.
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # An NFS share.
  "allowedClients": [ # List of allowed access points.
    { # Represents an 'access point' for the share.
      "allowDev": True or False, # Allow dev flag. Which controls whether to allow creation of devices.
      "allowSuid": True or False, # Allow the setuid flag.
      "allowedClientsCidr": "A String", # The subnet of IP addresses permitted to access the share.
      "mountPermissions": "A String", # Mount permissions.
      "network": "A String", # The network the access point sits on.
      "nfsPath": "A String", # 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"
      "noRootSquash": True or False, # 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.
      "shareIp": "A String", # Output only. The IP address of the share on this network. Assigned automatically during provisioning based on the network's services_cidr.
    },
  ],
  "id": "A String", # Output only. An identifier for the NFS share, generated by the backend. This is the same value as nfs_share_id and will replace it in the future.
  "labels": { # Labels as key value pairs.
    "a_key": "A String",
  },
  "name": "A String", # Immutable. The name of the NFS share.
  "nfsShareId": "A String", # Output only. An identifier for the NFS share, generated by the backend. This field will be deprecated in the future, use `id` instead.
  "requestedSizeGib": "A String", # The requested size, in GiB.
  "state": "A String", # Output only. The state of the NFS share.
  "storageType": "A String", # Immutable. The storage type of the underlying volume.
  "volume": "A String", # Output only. The underlying volume of the share. Created automatically during provisioning.
}