8.2.34 | Linux | www-data (uid:33)
👁 View: describe.py
📁 /snap/google-cloud-cli/503/lib/surface/bms/instances/describe.py
# -*- coding: utf-8 -*- # # Copyright 2021 Google LLC. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. """'Bare Metal Solution instances describe command.""" from googlecloudsdk.api_lib.bms.bms_client import BmsClient from googlecloudsdk.calliope import base from googlecloudsdk.command_lib.bms import flags DETAILED_HELP = { 'DESCRIPTION': """ Describe a Bare Metal Solution instance. """, 'EXAMPLES': """ To get a description of an instance called ``my-instance'' in project ``my-project'' and region ``us-central1'', run: $ {command} my-instance --project=my-project --region=us-central1 """, } @base.ReleaseTracks(base.ReleaseTrack.ALPHA, base.ReleaseTrack.GA) class Describe(base.DescribeCommand): """Describe a Bare Metal solution instance.""" @staticmethod def Args(parser): """Register flags for this command.""" flags.AddInstanceArgToParser(parser, positional=True) def Run(self, args): instance = args.CONCEPTS.instance.Parse() client = BmsClient() return client.GetInstance(instance) Describe.detailed_help = DETAILED_HELP
← Back
💻 Terminal
📤 Upload
📂
Click or Drag & Drop
📁 /snap/google-cloud-cli/503/lib/surface/bms/instances
NameSizePermModifiedActions
📁 __pycache__/-07752026-09-29 12:17🗑 Delete
__init__.py898B06441980-01-01 08:00👁 View ✏️ Edit 📝 Rename 📦 Move 🗑 Del
auth_info.py1.7K06441980-01-01 08:00👁 View ✏️ Edit 📝 Rename 📦 Move 🗑 Del
describe.py1.6K06441980-01-01 08:00👁 View ✏️ Edit 📝 Rename 📦 Move 🗑 Del
disable_hyperthreading.yaml925B06441980-01-01 08:00👁 View ✏️ Edit 📝 Rename 📦 Move 🗑 Del
disable_serial_console.yaml999B06441980-01-01 08:00👁 View ✏️ Edit 📝 Rename 📦 Move 🗑 Del
enable_hyperthreading.yaml919B06441980-01-01 08:00👁 View ✏️ Edit 📝 Rename 📦 Move 🗑 Del
enable_serial_console.yaml993B06441980-01-01 08:00👁 View ✏️ Edit 📝 Rename 📦 Move 🗑 Del
list.py4.3K06441980-01-01 08:00👁 View ✏️ Edit 📝 Rename 📦 Move 🗑 Del
reimage.py3.4K06441980-01-01 08:00👁 View ✏️ Edit 📝 Rename 📦 Move 🗑 Del
rename.py1.9K06441980-01-01 08:00👁 View ✏️ Edit 📝 Rename 📦 Move 🗑 Del
reset.yaml902B06441980-01-01 08:00👁 View ✏️ Edit 📝 Rename 📦 Move 🗑 Del
start.yaml815B06441980-01-01 08:00👁 View ✏️ Edit 📝 Rename 📦 Move 🗑 Del
stop.yaml806B06441980-01-01 08:00👁 View ✏️ Edit 📝 Rename 📦 Move 🗑 Del
update.py4.5K06441980-01-01 08:00👁 View ✏️ Edit 📝 Rename 📦 Move 🗑 Del