project:
  name: project
  collection: baremetalsolution.projects
  attributes:
  - &project
    parameter_name: projectsId
    attribute_name: project
    help: Project ID.
    property: core/project
  disable_auto_completers: false

region:
  name: region
  collection: baremetalsolution.projects.locations
  attributes:
  - *project
  - &region
    parameter_name: locationsId
    attribute_name: region
    help: Region of the resource.
  disable_auto_completers: false

global_only_region:
  name: global_only_region
  collection: baremetalsolution.projects.locations
  attributes:
  - *project
  - &global_only_region
    parameter_name: locationsId
    attribute_name: region
    help: Region of the resource.
    fallthroughs:
    - hook: googlecloudsdk.command_lib.bms.util:DefaultToGlobal
      hint: "global is the only supported location"
  disable_auto_completers: false

instance:
  name: instance
  collection: baremetalsolution.projects.locations.instances
  attributes:
  - *project
  - *region
  - &instance
    parameter_name: instancesId
    attribute_name: instance
    help: Bare Metal Solution instance.
  disable_auto_completers: false

volume:
  name: volume
  collection: baremetalsolution.projects.locations.volumes
  attributes:
  - *project
  - *region
  - &volume
    parameter_name: volumesId
    attribute_name: volume
    help: Bare Metal Solution volume.
  disable_auto_completers: false

snapshot_schedule_policy:
  name: snapshot_schedule_policy
  collection: baremetalsolution.projects.locations.snapshotSchedulePolicies
  attributes:
  - *project
  - *global_only_region
  - &snapshot_schedule_policy
    parameter_name: snapshotSchedulePoliciesId
    attribute_name: snapshot_schedule_policy
    help: Bare Metal Solution snapshot schedule policy.
  disable_auto_completers: false

network:
  name: network
  collection: baremetalsolution.projects.locations.networks
  attributes:
  - *project
  - *region
  - &network
    parameter_name: networksId
    attribute_name: network
    help: Bare Metal Solution network.
  disable_auto_completers: false

nfs_share:
  name: nfs_share
  collection: baremetalsolution.projects.locations.nfsShares
  attributes:
  - *project
  - *region
  - &nfs_share
    parameter_name: nfsSharesId
    attribute_name: nfs_share
    help: Bare Metal Solution NFS share.
  disable_auto_completers: false

os_image:
  name: os_image
  collection: baremetalsolution.projects.locations.osImages
  attributes:
  - *project
  - *global_only_region
  - &os_image
    parameter_name: osImagesId
    attribute_name: os_image
    help: Bare Metal Solution OS image.
  disable_auto_completers: false

serial_console_ssh_key:
  name: serial_console_ssh_key
  collection: baremetalsolution.projects.locations.sshKeys
  attributes:
  - *project
  - *global_only_region
  - &serial_console_ssh_key
    parameter_name: sshKeysId
    attribute_name: serial_console_ssh_key
    help: Bare Metal Solution interactive serial console SSH key.
  disable_auto_completers: false

ssh_key:
  name: SSH key
  collection: baremetalsolution.projects.locations.sshKeys
  attributes:
  - *project
  - *global_only_region
  - &ssh_key
    parameter_name: sshKeysId
    attribute_name: ssh_key
    help: Bare Metal Solution SSH key.
  disable_auto_completers: false

lun:
  name: lun
  collection: baremetalsolution.projects.locations.volumes.luns
  attributes:
  - *project
  - *region
  - *volume
  - &lun
    parameter_name: lunsId
    attribute_name: lun
    help: Bare Metal Solution volume LUN.
  disable_auto_completers: false

snapshot:
  name: snapshot
  collection: baremetalsolution.projects.locations.volumes.snapshots
  attributes:
  - *project
  - *region
  - *volume
  - &snapshot
    parameter_name: snapshotsId
    attribute_name: snapshot
    help: Bare Metal Solution volume snapshot.
  disable_auto_completers: false

operation_v1:
  name: operation_v1
  collection: baremetalsolution.operations
  api_version: v1
  attributes:
  - &operationv1
    parameter_name: operationsId
    attribute_name: operation
    help: Bare Metal Solution operation.

operation:
  name: operation
  collection: baremetalsolution.projects.locations.operations
  attributes:
  - *project
  - *global_only_region
  - &operation
    parameter_name: operationsId
    attribute_name: operation
    help: Bare Metal Solution operation.
  disable_auto_completers: false
