|
| 1 | +# coding: utf-8 |
| 2 | + |
| 3 | +""" |
| 4 | + vke |
| 5 | +
|
| 6 | + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 |
| 7 | +
|
| 8 | + OpenAPI spec version: common-version |
| 9 | + |
| 10 | + Generated by: https://github.com/swagger-api/swagger-codegen.git |
| 11 | +""" |
| 12 | + |
| 13 | + |
| 14 | +import pprint |
| 15 | +import re # noqa: F401 |
| 16 | + |
| 17 | +import six |
| 18 | + |
| 19 | +from volcenginesdkcore.configuration import Configuration |
| 20 | + |
| 21 | + |
| 22 | +class AuthConfigForExecContainerImageCommitmentInput(object): |
| 23 | + """NOTE: This class is auto generated by the swagger code generator program. |
| 24 | +
|
| 25 | + Do not edit the class manually. |
| 26 | + """ |
| 27 | + |
| 28 | + """ |
| 29 | + Attributes: |
| 30 | + swagger_types (dict): The key is attribute name |
| 31 | + and the value is attribute type. |
| 32 | + attribute_map (dict): The key is attribute name |
| 33 | + and the value is json key in definition. |
| 34 | + """ |
| 35 | + swagger_types = { |
| 36 | + 'password': 'str', |
| 37 | + 'plain_http': 'bool', |
| 38 | + 'skip_tls_verify': 'bool', |
| 39 | + 'username': 'str' |
| 40 | + } |
| 41 | + |
| 42 | + attribute_map = { |
| 43 | + 'password': 'Password', |
| 44 | + 'plain_http': 'PlainHTTP', |
| 45 | + 'skip_tls_verify': 'SkipTLSVerify', |
| 46 | + 'username': 'Username' |
| 47 | + } |
| 48 | + |
| 49 | + def __init__(self, password=None, plain_http=None, skip_tls_verify=None, username=None, _configuration=None): # noqa: E501 |
| 50 | + """AuthConfigForExecContainerImageCommitmentInput - a model defined in Swagger""" # noqa: E501 |
| 51 | + if _configuration is None: |
| 52 | + _configuration = Configuration() |
| 53 | + self._configuration = _configuration |
| 54 | + |
| 55 | + self._password = None |
| 56 | + self._plain_http = None |
| 57 | + self._skip_tls_verify = None |
| 58 | + self._username = None |
| 59 | + self.discriminator = None |
| 60 | + |
| 61 | + if password is not None: |
| 62 | + self.password = password |
| 63 | + if plain_http is not None: |
| 64 | + self.plain_http = plain_http |
| 65 | + if skip_tls_verify is not None: |
| 66 | + self.skip_tls_verify = skip_tls_verify |
| 67 | + if username is not None: |
| 68 | + self.username = username |
| 69 | + |
| 70 | + @property |
| 71 | + def password(self): |
| 72 | + """Gets the password of this AuthConfigForExecContainerImageCommitmentInput. # noqa: E501 |
| 73 | +
|
| 74 | +
|
| 75 | + :return: The password of this AuthConfigForExecContainerImageCommitmentInput. # noqa: E501 |
| 76 | + :rtype: str |
| 77 | + """ |
| 78 | + return self._password |
| 79 | + |
| 80 | + @password.setter |
| 81 | + def password(self, password): |
| 82 | + """Sets the password of this AuthConfigForExecContainerImageCommitmentInput. |
| 83 | +
|
| 84 | +
|
| 85 | + :param password: The password of this AuthConfigForExecContainerImageCommitmentInput. # noqa: E501 |
| 86 | + :type: str |
| 87 | + """ |
| 88 | + |
| 89 | + self._password = password |
| 90 | + |
| 91 | + @property |
| 92 | + def plain_http(self): |
| 93 | + """Gets the plain_http of this AuthConfigForExecContainerImageCommitmentInput. # noqa: E501 |
| 94 | +
|
| 95 | +
|
| 96 | + :return: The plain_http of this AuthConfigForExecContainerImageCommitmentInput. # noqa: E501 |
| 97 | + :rtype: bool |
| 98 | + """ |
| 99 | + return self._plain_http |
| 100 | + |
| 101 | + @plain_http.setter |
| 102 | + def plain_http(self, plain_http): |
| 103 | + """Sets the plain_http of this AuthConfigForExecContainerImageCommitmentInput. |
| 104 | +
|
| 105 | +
|
| 106 | + :param plain_http: The plain_http of this AuthConfigForExecContainerImageCommitmentInput. # noqa: E501 |
| 107 | + :type: bool |
| 108 | + """ |
| 109 | + |
| 110 | + self._plain_http = plain_http |
| 111 | + |
| 112 | + @property |
| 113 | + def skip_tls_verify(self): |
| 114 | + """Gets the skip_tls_verify of this AuthConfigForExecContainerImageCommitmentInput. # noqa: E501 |
| 115 | +
|
| 116 | +
|
| 117 | + :return: The skip_tls_verify of this AuthConfigForExecContainerImageCommitmentInput. # noqa: E501 |
| 118 | + :rtype: bool |
| 119 | + """ |
| 120 | + return self._skip_tls_verify |
| 121 | + |
| 122 | + @skip_tls_verify.setter |
| 123 | + def skip_tls_verify(self, skip_tls_verify): |
| 124 | + """Sets the skip_tls_verify of this AuthConfigForExecContainerImageCommitmentInput. |
| 125 | +
|
| 126 | +
|
| 127 | + :param skip_tls_verify: The skip_tls_verify of this AuthConfigForExecContainerImageCommitmentInput. # noqa: E501 |
| 128 | + :type: bool |
| 129 | + """ |
| 130 | + |
| 131 | + self._skip_tls_verify = skip_tls_verify |
| 132 | + |
| 133 | + @property |
| 134 | + def username(self): |
| 135 | + """Gets the username of this AuthConfigForExecContainerImageCommitmentInput. # noqa: E501 |
| 136 | +
|
| 137 | +
|
| 138 | + :return: The username of this AuthConfigForExecContainerImageCommitmentInput. # noqa: E501 |
| 139 | + :rtype: str |
| 140 | + """ |
| 141 | + return self._username |
| 142 | + |
| 143 | + @username.setter |
| 144 | + def username(self, username): |
| 145 | + """Sets the username of this AuthConfigForExecContainerImageCommitmentInput. |
| 146 | +
|
| 147 | +
|
| 148 | + :param username: The username of this AuthConfigForExecContainerImageCommitmentInput. # noqa: E501 |
| 149 | + :type: str |
| 150 | + """ |
| 151 | + |
| 152 | + self._username = username |
| 153 | + |
| 154 | + def to_dict(self): |
| 155 | + """Returns the model properties as a dict""" |
| 156 | + result = {} |
| 157 | + |
| 158 | + for attr, _ in six.iteritems(self.swagger_types): |
| 159 | + value = getattr(self, attr) |
| 160 | + if isinstance(value, list): |
| 161 | + result[attr] = list(map( |
| 162 | + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, |
| 163 | + value |
| 164 | + )) |
| 165 | + elif hasattr(value, "to_dict"): |
| 166 | + result[attr] = value.to_dict() |
| 167 | + elif isinstance(value, dict): |
| 168 | + result[attr] = dict(map( |
| 169 | + lambda item: (item[0], item[1].to_dict()) |
| 170 | + if hasattr(item[1], "to_dict") else item, |
| 171 | + value.items() |
| 172 | + )) |
| 173 | + else: |
| 174 | + result[attr] = value |
| 175 | + if issubclass(AuthConfigForExecContainerImageCommitmentInput, dict): |
| 176 | + for key, value in self.items(): |
| 177 | + result[key] = value |
| 178 | + |
| 179 | + return result |
| 180 | + |
| 181 | + def to_str(self): |
| 182 | + """Returns the string representation of the model""" |
| 183 | + return pprint.pformat(self.to_dict()) |
| 184 | + |
| 185 | + def __repr__(self): |
| 186 | + """For `print` and `pprint`""" |
| 187 | + return self.to_str() |
| 188 | + |
| 189 | + def __eq__(self, other): |
| 190 | + """Returns true if both objects are equal""" |
| 191 | + if not isinstance(other, AuthConfigForExecContainerImageCommitmentInput): |
| 192 | + return False |
| 193 | + |
| 194 | + return self.to_dict() == other.to_dict() |
| 195 | + |
| 196 | + def __ne__(self, other): |
| 197 | + """Returns true if both objects are not equal""" |
| 198 | + if not isinstance(other, AuthConfigForExecContainerImageCommitmentInput): |
| 199 | + return True |
| 200 | + |
| 201 | + return self.to_dict() != other.to_dict() |
0 commit comments