File: prompt_field_description_py3.py

package info (click to toggle)
python-azure 20181112%2Bgit-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 407,300 kB
  • sloc: python: 717,190; makefile: 201; sh: 76
file content (47 lines) | stat: -rw-r--r-- 1,992 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model


class PromptFieldDescription(Model):
    """Field description for the implementation of PSHostUserInterface.Prompt.

    :param name: The name of the prompt.
    :type name: str
    :param label: The label text of the prompt.
    :type label: str
    :param help_message: The help message of the prompt.
    :type help_message: str
    :param prompt_field_type_is_list: When set to 'true' the prompt field type
     is a list of values.
    :type prompt_field_type_is_list: bool
    :param prompt_field_type: Possible values include: 'String',
     'SecureString', 'Credential'
    :type prompt_field_type: str or
     ~azure.mgmt.servermanager.models.PromptFieldType
    """

    _attribute_map = {
        'name': {'key': 'name', 'type': 'str'},
        'label': {'key': 'label', 'type': 'str'},
        'help_message': {'key': 'helpMessage', 'type': 'str'},
        'prompt_field_type_is_list': {'key': 'promptFieldTypeIsList', 'type': 'bool'},
        'prompt_field_type': {'key': 'promptFieldType', 'type': 'PromptFieldType'},
    }

    def __init__(self, *, name: str=None, label: str=None, help_message: str=None, prompt_field_type_is_list: bool=None, prompt_field_type=None, **kwargs) -> None:
        super(PromptFieldDescription, self).__init__(**kwargs)
        self.name = name
        self.label = label
        self.help_message = help_message
        self.prompt_field_type_is_list = prompt_field_type_is_list
        self.prompt_field_type = prompt_field_type