1# coding: utf-8 2# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. 3# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. 4 5 6from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 7from oci.decorators import init_model_state_from_kwargs 8 9 10@init_model_state_from_kwargs 11class OggDeployment(object): 12 """ 13 Deployment Data for an OggDeployment 14 """ 15 16 def __init__(self, **kwargs): 17 """ 18 Initializes a new OggDeployment object with values from keyword arguments. 19 The following keyword arguments are supported (corresponding to the getters/setters of this class): 20 21 :param deployment_name: 22 The value to assign to the deployment_name property of this OggDeployment. 23 :type deployment_name: str 24 25 :param admin_username: 26 The value to assign to the admin_username property of this OggDeployment. 27 :type admin_username: str 28 29 :param ogg_version: 30 The value to assign to the ogg_version property of this OggDeployment. 31 :type ogg_version: str 32 33 :param certificate: 34 The value to assign to the certificate property of this OggDeployment. 35 :type certificate: str 36 37 """ 38 self.swagger_types = { 39 'deployment_name': 'str', 40 'admin_username': 'str', 41 'ogg_version': 'str', 42 'certificate': 'str' 43 } 44 45 self.attribute_map = { 46 'deployment_name': 'deploymentName', 47 'admin_username': 'adminUsername', 48 'ogg_version': 'oggVersion', 49 'certificate': 'certificate' 50 } 51 52 self._deployment_name = None 53 self._admin_username = None 54 self._ogg_version = None 55 self._certificate = None 56 57 @property 58 def deployment_name(self): 59 """ 60 **[Required]** Gets the deployment_name of this OggDeployment. 61 The name given to the GoldenGate service deployment. The name must be 1 to 32 characters long, must contain only alphanumeric characters and must start with a letter. 62 63 64 :return: The deployment_name of this OggDeployment. 65 :rtype: str 66 """ 67 return self._deployment_name 68 69 @deployment_name.setter 70 def deployment_name(self, deployment_name): 71 """ 72 Sets the deployment_name of this OggDeployment. 73 The name given to the GoldenGate service deployment. The name must be 1 to 32 characters long, must contain only alphanumeric characters and must start with a letter. 74 75 76 :param deployment_name: The deployment_name of this OggDeployment. 77 :type: str 78 """ 79 self._deployment_name = deployment_name 80 81 @property 82 def admin_username(self): 83 """ 84 **[Required]** Gets the admin_username of this OggDeployment. 85 The GoldenGate deployment console username. 86 87 88 :return: The admin_username of this OggDeployment. 89 :rtype: str 90 """ 91 return self._admin_username 92 93 @admin_username.setter 94 def admin_username(self, admin_username): 95 """ 96 Sets the admin_username of this OggDeployment. 97 The GoldenGate deployment console username. 98 99 100 :param admin_username: The admin_username of this OggDeployment. 101 :type: str 102 """ 103 self._admin_username = admin_username 104 105 @property 106 def ogg_version(self): 107 """ 108 Gets the ogg_version of this OggDeployment. 109 Version of OGG 110 111 112 :return: The ogg_version of this OggDeployment. 113 :rtype: str 114 """ 115 return self._ogg_version 116 117 @ogg_version.setter 118 def ogg_version(self, ogg_version): 119 """ 120 Sets the ogg_version of this OggDeployment. 121 Version of OGG 122 123 124 :param ogg_version: The ogg_version of this OggDeployment. 125 :type: str 126 """ 127 self._ogg_version = ogg_version 128 129 @property 130 def certificate(self): 131 """ 132 Gets the certificate of this OggDeployment. 133 A PEM-encoded SSL certificate. 134 135 136 :return: The certificate of this OggDeployment. 137 :rtype: str 138 """ 139 return self._certificate 140 141 @certificate.setter 142 def certificate(self, certificate): 143 """ 144 Sets the certificate of this OggDeployment. 145 A PEM-encoded SSL certificate. 146 147 148 :param certificate: The certificate of this OggDeployment. 149 :type: str 150 """ 151 self._certificate = certificate 152 153 def __repr__(self): 154 return formatted_flat_dict(self) 155 156 def __eq__(self, other): 157 if other is None: 158 return False 159 160 return self.__dict__ == other.__dict__ 161 162 def __ne__(self, other): 163 return not self == other 164