def Args(parser): flags.AddLocationFlag(parser) flags.AddKeyRingFlag(parser) flags.AddCryptoKeyFlag(parser, 'The key to use for decryption.') flags.AddCiphertextFileFlag(parser, 'to decrypt') flags.AddPlaintextFileFlag(parser, 'to output') flags.AddAadFileFlag(parser)
def Args(parser): flags.AddLocationFlag(parser, 'keyring') flags.AddKeyRingArgument(parser, 'from which to remove an IAM policy binding') iam_util.AddArgsForRemoveIamPolicyBinding( parser, role_completer=completers.CryptoKeysKeyRingIamRolesCompleter)
def Args(cls, parser): if cls.ReleaseTrack() != base.ReleaseTrack.ALPHA: # These flags are automatically added in declarative commands and # currently all declarative commands are ALPHA. flags.AddKeyRingFlag(parser) flags.AddLocationFlag(parser) parser.display_info.AddUriFunc( cloudkms_base.MakeGetUriFunc(flags.CRYPTO_KEY_COLLECTION))
def Args(parser): flags.AddKeyRingFlag(parser, "import job") flags.AddLocationFlag(parser, "import job") flags.AddRequiredProtectionLevelFlag(parser) flags.AddRequiredImportMethodFlag(parser) flags.AddPositionalImportJobArgument(parser, "to create") parser.display_info.AddCacheUpdater(flags.KeyRingCompleter)
def Args(parser): flags.AddKeyRingFlag(parser, 'import job') flags.AddLocationFlag(parser, 'import job') parser.display_info.AddFormat(""" table( name, state, import_method, protection_level, labels.list()) """)
def Args(parser): # The format of a CryptoKeyVersion name is: # 'projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*' # The CryptoKeyVersionId is captured by segment(9). flags.AddKeyRingFlag(parser, 'key') flags.AddLocationFlag(parser, 'key') parser.display_info.AddFormat(""" table( name, purpose, labels.list(), primary.name.segment(9):label=PRIMARY_ID, primary.state:label=PRIMARY_STATE) """)
def Args(parser): flags.AddLocationFlag(parser, 'keyring') flags.AddKeyRingArgument(parser, 'whose IAM policy to update') parser.add_argument('policy_file', help=('JSON or YAML file with ' 'the IAM policy'))
def Args(parser): flags.AddLocationFlag(parser, 'keyring') flags.AddKeyRingArgument(parser, 'whose IAM policy to fetch') base.URI_FLAG.RemoveFromParser(parser)
def Args(parser): flags.AddLocationFlag(parser, 'keyring') flags.AddKeyRingArgument(parser, 'to create') parser.display_info.AddCacheUpdater(flags.KeyRingCompleter)
def Args(parser): flags.AddLocationFlag(parser, 'keyring') flags.AddKeyRingArgument(parser, 'whose IAM policy to modify') iam_util.AddArgsForAddIamPolicyBinding( parser, role_completer=completers.KeyRingIamRolesCompleter)
def Args(parser): flags.AddKeyRingFlag(parser) flags.AddLocationFlag(parser) parser.display_info.AddUriFunc( cloudkms_base.MakeGetUriFunc(flags.CRYPTO_KEY_COLLECTION))
def Args(parser): flags.AddLocationFlag(parser)
def Args(parser): flags.AddKeyRingFlag(parser) flags.AddLocationFlag(parser)
def Args(parser): flags.AddLocationFlag(parser, 'keyring') parser.display_info.AddFormat('table(name)')
def Args(parser): flags.AddLocationFlag(parser, 'keyring') flags.AddKeyRingArgument(parser, 'to describe')
def Args(parser): flags.AddLocationFlag(parser) parser.display_info.AddUriFunc( cloudkms_base.MakeGetUriFunc(flags.KEY_RING_COLLECTION))
def Args(parser): flags.AddKeyRingFlag(parser, 'import job') flags.AddLocationFlag(parser, 'import job') flags.AddPositionalImportJobArgument(parser, 'to describe') flags.AddAttestationFileFlag(parser)