Class: OCI::FleetAppsManagement::Models::CreateProvisionDetails
- Inherits:
-
Object
- Object
- OCI::FleetAppsManagement::Models::CreateProvisionDetails
- Defined in:
- lib/oci/fleet_apps_management/models/create_provision_details.rb
Overview
The data to create a FamProvision.
Instance Attribute Summary collapse
-
#compartment_id ⇒ String
[Required] The OCID of the compartment to create the FamProvision in.
-
#config_catalog_item_id ⇒ String
[Required] A OCID of the Catalog Item to a file with key/value pairs to set up variables for createStack API.
-
#defined_tags ⇒ Hash<String, Hash<String, Object>>
Defined tags for this resource.
-
#display_name ⇒ String
A user-friendly name.
-
#fleet_id ⇒ String
[Required] The OCID of the Fleet.
-
#freeform_tags ⇒ Hash<String, String>
Simple key-value pair that is applied without any predefined name, type or scope.
-
#package_catalog_item_id ⇒ String
[Required] The OCID of the Catalog Item.
-
#provision_description ⇒ String
A description of the provision.
-
#tf_variable_compartment_id ⇒ String
An optional variable added to a list of RMS variables for createStack API.
-
#tf_variable_current_user_id ⇒ String
An optional variable added to a list of RMS variables for createStack API.
-
#tf_variable_region_id ⇒ String
[Required] A mandatory variable added to a list of RMS variables for createStack API.
-
#tf_variable_tenancy_id ⇒ String
[Required] A mandatory variable added to a list of RMS variables for createStack API.
Class Method Summary collapse
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.swagger_types ⇒ Object
Attribute type mapping.
Instance Method Summary collapse
-
#==(other) ⇒ Object
Checks equality by comparing each attribute.
-
#build_from_hash(attributes) ⇒ Object
Builds the object from hash.
- #eql?(other) ⇒ Boolean
-
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ CreateProvisionDetails
constructor
Initializes the object.
-
#to_hash ⇒ Hash
Returns the object in the form of hash.
-
#to_s ⇒ String
Returns the string representation of the object.
Constructor Details
#initialize(attributes = {}) ⇒ CreateProvisionDetails
Initializes the object
122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 |
# File 'lib/oci/fleet_apps_management/models/create_provision_details.rb', line 122 def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } self.display_name = attributes[:'displayName'] if attributes[:'displayName'] raise 'You cannot provide both :displayName and :display_name' if attributes.key?(:'displayName') && attributes.key?(:'display_name') self.display_name = attributes[:'display_name'] if attributes[:'display_name'] self.provision_description = attributes[:'provisionDescription'] if attributes[:'provisionDescription'] raise 'You cannot provide both :provisionDescription and :provision_description' if attributes.key?(:'provisionDescription') && attributes.key?(:'provision_description') self.provision_description = attributes[:'provision_description'] if attributes[:'provision_description'] self.compartment_id = attributes[:'compartmentId'] if attributes[:'compartmentId'] raise 'You cannot provide both :compartmentId and :compartment_id' if attributes.key?(:'compartmentId') && attributes.key?(:'compartment_id') self.compartment_id = attributes[:'compartment_id'] if attributes[:'compartment_id'] self.package_catalog_item_id = attributes[:'packageCatalogItemId'] if attributes[:'packageCatalogItemId'] raise 'You cannot provide both :packageCatalogItemId and :package_catalog_item_id' if attributes.key?(:'packageCatalogItemId') && attributes.key?(:'package_catalog_item_id') self.package_catalog_item_id = attributes[:'package_catalog_item_id'] if attributes[:'package_catalog_item_id'] self.config_catalog_item_id = attributes[:'configCatalogItemId'] if attributes[:'configCatalogItemId'] raise 'You cannot provide both :configCatalogItemId and :config_catalog_item_id' if attributes.key?(:'configCatalogItemId') && attributes.key?(:'config_catalog_item_id') self.config_catalog_item_id = attributes[:'config_catalog_item_id'] if attributes[:'config_catalog_item_id'] self.fleet_id = attributes[:'fleetId'] if attributes[:'fleetId'] raise 'You cannot provide both :fleetId and :fleet_id' if attributes.key?(:'fleetId') && attributes.key?(:'fleet_id') self.fleet_id = attributes[:'fleet_id'] if attributes[:'fleet_id'] self.tf_variable_tenancy_id = attributes[:'tfVariableTenancyId'] if attributes[:'tfVariableTenancyId'] raise 'You cannot provide both :tfVariableTenancyId and :tf_variable_tenancy_id' if attributes.key?(:'tfVariableTenancyId') && attributes.key?(:'tf_variable_tenancy_id') self.tf_variable_tenancy_id = attributes[:'tf_variable_tenancy_id'] if attributes[:'tf_variable_tenancy_id'] self.tf_variable_region_id = attributes[:'tfVariableRegionId'] if attributes[:'tfVariableRegionId'] raise 'You cannot provide both :tfVariableRegionId and :tf_variable_region_id' if attributes.key?(:'tfVariableRegionId') && attributes.key?(:'tf_variable_region_id') self.tf_variable_region_id = attributes[:'tf_variable_region_id'] if attributes[:'tf_variable_region_id'] self.tf_variable_current_user_id = attributes[:'tfVariableCurrentUserId'] if attributes[:'tfVariableCurrentUserId'] raise 'You cannot provide both :tfVariableCurrentUserId and :tf_variable_current_user_id' if attributes.key?(:'tfVariableCurrentUserId') && attributes.key?(:'tf_variable_current_user_id') self.tf_variable_current_user_id = attributes[:'tf_variable_current_user_id'] if attributes[:'tf_variable_current_user_id'] self.tf_variable_compartment_id = attributes[:'tfVariableCompartmentId'] if attributes[:'tfVariableCompartmentId'] raise 'You cannot provide both :tfVariableCompartmentId and :tf_variable_compartment_id' if attributes.key?(:'tfVariableCompartmentId') && attributes.key?(:'tf_variable_compartment_id') self.tf_variable_compartment_id = attributes[:'tf_variable_compartment_id'] if attributes[:'tf_variable_compartment_id'] self. = attributes[:'freeformTags'] if attributes[:'freeformTags'] raise 'You cannot provide both :freeformTags and :freeform_tags' if attributes.key?(:'freeformTags') && attributes.key?(:'freeform_tags') self. = attributes[:'freeform_tags'] if attributes[:'freeform_tags'] self. = attributes[:'definedTags'] if attributes[:'definedTags'] raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags') self. = attributes[:'defined_tags'] if attributes[:'defined_tags'] end |
Instance Attribute Details
#compartment_id ⇒ String
[Required] The OCID of the compartment to create the FamProvision in.
22 23 24 |
# File 'lib/oci/fleet_apps_management/models/create_provision_details.rb', line 22 def compartment_id @compartment_id end |
#config_catalog_item_id ⇒ String
[Required] A OCID of the Catalog Item to a file with key/value pairs to set up variables for createStack API.
30 31 32 |
# File 'lib/oci/fleet_apps_management/models/create_provision_details.rb', line 30 def config_catalog_item_id @config_catalog_item_id end |
#defined_tags ⇒ Hash<String, Hash<String, Object>>
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {\"foo-namespace\": {\"bar-key\": \"value\"}}
62 63 64 |
# File 'lib/oci/fleet_apps_management/models/create_provision_details.rb', line 62 def @defined_tags end |
#display_name ⇒ String
A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
13 14 15 |
# File 'lib/oci/fleet_apps_management/models/create_provision_details.rb', line 13 def display_name @display_name end |
#fleet_id ⇒ String
[Required] The OCID of the Fleet.
34 35 36 |
# File 'lib/oci/fleet_apps_management/models/create_provision_details.rb', line 34 def fleet_id @fleet_id end |
#freeform_tags ⇒ Hash<String, String>
Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {\"bar-key\": \"value\"}
56 57 58 |
# File 'lib/oci/fleet_apps_management/models/create_provision_details.rb', line 56 def @freeform_tags end |
#package_catalog_item_id ⇒ String
[Required] The OCID of the Catalog Item.
26 27 28 |
# File 'lib/oci/fleet_apps_management/models/create_provision_details.rb', line 26 def package_catalog_item_id @package_catalog_item_id end |
#provision_description ⇒ String
A description of the provision.
17 18 19 |
# File 'lib/oci/fleet_apps_management/models/create_provision_details.rb', line 17 def provision_description @provision_description end |
#tf_variable_compartment_id ⇒ String
An optional variable added to a list of RMS variables for createStack API. Overrides the one supplied in configuration file.
50 51 52 |
# File 'lib/oci/fleet_apps_management/models/create_provision_details.rb', line 50 def tf_variable_compartment_id @tf_variable_compartment_id end |
#tf_variable_current_user_id ⇒ String
An optional variable added to a list of RMS variables for createStack API. Overrides the one supplied in configuration file.
46 47 48 |
# File 'lib/oci/fleet_apps_management/models/create_provision_details.rb', line 46 def tf_variable_current_user_id @tf_variable_current_user_id end |
#tf_variable_region_id ⇒ String
[Required] A mandatory variable added to a list of RMS variables for createStack API. Overrides the one supplied in configuration file.
42 43 44 |
# File 'lib/oci/fleet_apps_management/models/create_provision_details.rb', line 42 def tf_variable_region_id @tf_variable_region_id end |
#tf_variable_tenancy_id ⇒ String
[Required] A mandatory variable added to a list of RMS variables for createStack API. Overrides the one supplied in configuration file.
38 39 40 |
# File 'lib/oci/fleet_apps_management/models/create_provision_details.rb', line 38 def tf_variable_tenancy_id @tf_variable_tenancy_id end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 |
# File 'lib/oci/fleet_apps_management/models/create_provision_details.rb', line 65 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'display_name': :'displayName', 'provision_description': :'provisionDescription', 'compartment_id': :'compartmentId', 'package_catalog_item_id': :'packageCatalogItemId', 'config_catalog_item_id': :'configCatalogItemId', 'fleet_id': :'fleetId', 'tf_variable_tenancy_id': :'tfVariableTenancyId', 'tf_variable_region_id': :'tfVariableRegionId', 'tf_variable_current_user_id': :'tfVariableCurrentUserId', 'tf_variable_compartment_id': :'tfVariableCompartmentId', 'freeform_tags': :'freeformTags', 'defined_tags': :'definedTags' # rubocop:enable Style/SymbolLiteral } end |
.swagger_types ⇒ Object
Attribute type mapping.
85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 |
# File 'lib/oci/fleet_apps_management/models/create_provision_details.rb', line 85 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'display_name': :'String', 'provision_description': :'String', 'compartment_id': :'String', 'package_catalog_item_id': :'String', 'config_catalog_item_id': :'String', 'fleet_id': :'String', 'tf_variable_tenancy_id': :'String', 'tf_variable_region_id': :'String', 'tf_variable_current_user_id': :'String', 'tf_variable_compartment_id': :'String', 'freeform_tags': :'Hash<String, String>', 'defined_tags': :'Hash<String, Hash<String, Object>>' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 |
# File 'lib/oci/fleet_apps_management/models/create_provision_details.rb', line 208 def ==(other) return true if equal?(other) self.class == other.class && display_name == other.display_name && provision_description == other.provision_description && compartment_id == other.compartment_id && package_catalog_item_id == other.package_catalog_item_id && config_catalog_item_id == other.config_catalog_item_id && fleet_id == other.fleet_id && tf_variable_tenancy_id == other.tf_variable_tenancy_id && tf_variable_region_id == other.tf_variable_region_id && tf_variable_current_user_id == other.tf_variable_current_user_id && tf_variable_compartment_id == other.tf_variable_compartment_id && == other. && == other. end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 |
# File 'lib/oci/fleet_apps_management/models/create_provision_details.rb', line 249 def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /^Array<(.*)>/i # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) public_method("#{key}=").call( attributes[self.class.attribute_map[key]] .map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? public_method("#{key}=").call( OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]) ) end # or else data not found in attributes(hash), not an issue as the data can be optional end self end |
#eql?(other) ⇒ Boolean
229 230 231 |
# File 'lib/oci/fleet_apps_management/models/create_provision_details.rb', line 229 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
238 239 240 |
# File 'lib/oci/fleet_apps_management/models/create_provision_details.rb', line 238 def hash [display_name, provision_description, compartment_id, package_catalog_item_id, config_catalog_item_id, fleet_id, tf_variable_tenancy_id, tf_variable_region_id, tf_variable_current_user_id, tf_variable_compartment_id, , ].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
282 283 284 285 286 287 288 289 290 291 |
# File 'lib/oci/fleet_apps_management/models/create_provision_details.rb', line 282 def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = public_method(attr).call next if value.nil? && !instance_variable_defined?("@#{attr}") hash[param] = _to_hash(value) end hash end |
#to_s ⇒ String
Returns the string representation of the object
276 277 278 |
# File 'lib/oci/fleet_apps_management/models/create_provision_details.rb', line 276 def to_s to_hash.to_s end |