1# -*- coding: utf-8 -*- # 2# Copyright 2015 Google LLC. All Rights Reserved. 3# 4# Licensed under the Apache License, Version 2.0 (the "License"); 5# you may not use this file except in compliance with the License. 6# You may obtain a copy of the License at 7# 8# http://www.apache.org/licenses/LICENSE-2.0 9# 10# Unless required by applicable law or agreed to in writing, software 11# distributed under the License is distributed on an "AS IS" BASIS, 12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13# See the License for the specific language governing permissions and 14# limitations under the License. 15 16"""The command group for cloud dataproc operations.""" 17 18from __future__ import absolute_import 19from __future__ import division 20from __future__ import unicode_literals 21 22from googlecloudsdk.calliope import base 23 24 25@base.ReleaseTracks(base.ReleaseTrack.ALPHA, base.ReleaseTrack.BETA, 26 base.ReleaseTrack.GA) 27class Operations(base.Group): 28 """View and manage Google Cloud Dataproc operations. 29 30 View and manage Google Cloud Dataproc operations. 31 32 ## EXAMPLES 33 34 To cancel an active operation, run: 35 36 $ {command} cancel operation_id 37 38 To view the details of an operation, run: 39 40 $ {command} describe operation_id 41 42 To see the list of all operations, run: 43 44 $ {command} list 45 46 To delete the record of an inactive operation, run: 47 48 $ {command} delete operation_id 49 """ 50