Class: OCI::FleetAppsManagement::Models::Provision
- Inherits:
-
Object
- Object
- OCI::FleetAppsManagement::Models::Provision
- Defined in:
- lib/oci/fleet_apps_management/models/provision.rb
Overview
A FamProvision is a description of a FamProvision.
To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see Getting Started with Policies.
Constant Summary collapse
- LIFECYCLE_STATE_ENUM =
[ LIFECYCLE_STATE_CREATING = 'CREATING'.freeze, LIFECYCLE_STATE_UPDATING = 'UPDATING'.freeze, LIFECYCLE_STATE_ACTIVE = 'ACTIVE'.freeze, LIFECYCLE_STATE_DELETING = 'DELETING'.freeze, LIFECYCLE_STATE_DELETED = 'DELETED'.freeze, LIFECYCLE_STATE_FAILED = 'FAILED'.freeze, LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
Instance Attribute Summary collapse
-
#compartment_id ⇒ String
[Required] The OCID of the compartment.
-
#config_catalog_item_display_name ⇒ String
[Required] A display Name of the Catalog Item in the Catalog.
-
#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.
-
#config_catalog_item_listing_id ⇒ String
[Required] A listing ID of the Catalog Item in the Catalog.
-
#config_catalog_item_listing_version ⇒ String
[Required] A listing version of the Catalog Item in the Catalog.
-
#defined_tags ⇒ Hash<String, Hash<String, Object>>
[Required] Defined tags for this resource.
-
#deployed_resources ⇒ Array<OCI::FleetAppsManagement::Models::DeployedResourceDetails>
The deployed resources and their summary.
-
#display_name ⇒ String
[Required] A user-friendly name.
-
#fleet_id ⇒ String
[Required] The OCID of the Fleet.
-
#freeform_tags ⇒ Hash<String, String>
[Required] Simple key-value pair that is applied without any predefined name, type or scope.
-
#id ⇒ String
[Required] The OCID of the FamProvision.
-
#lifecycle_details ⇒ String
A message that describes the current state of the FamProvision in more detail.
-
#lifecycle_state ⇒ String
[Required] The current state of the FamProvision.
-
#package_catalog_item_display_name ⇒ String
[Required] A display Name of the Catalog Item in the Catalog.
-
#package_catalog_item_id ⇒ String
[Required] The OCID of the Catalog Item.
-
#package_catalog_item_listing_id ⇒ String
[Required] A listing ID of the Catalog Item in the Catalog.
-
#package_catalog_item_listing_version ⇒ String
[Required] A listing version of the Catalog Item in the Catalog.
-
#provision_description ⇒ String
A description of the provision.
-
#rms_apply_job_id ⇒ String
The OCID of the RMS APPLY Job.
-
#stack_id ⇒ String
The OCID of the RMS Stack.
-
#system_tags ⇒ Hash<String, Hash<String, Object>>
System tags for this resource.
-
#tf_outputs ⇒ Array<OCI::FleetAppsManagement::Models::JobExecutionDetails>
Outputs from the Terraform Apply job.
-
#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.
-
#time_created ⇒ DateTime
[Required] The date and time the FamProvision was created, in the format defined by RFC 3339.
-
#time_updated ⇒ DateTime
The date and time the FamProvision was updated, in the format defined by RFC 3339.
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 = {}) ⇒ Provision
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 = {}) ⇒ Provision
Initializes the object
259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 |
# File 'lib/oci/fleet_apps_management/models/provision.rb', line 259 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.id = attributes[:'id'] if attributes[:'id'] 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.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.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.time_created = attributes[:'timeCreated'] if attributes[:'timeCreated'] raise 'You cannot provide both :timeCreated and :time_created' if attributes.key?(:'timeCreated') && attributes.key?(:'time_created') self.time_created = attributes[:'time_created'] if attributes[:'time_created'] self.time_updated = attributes[:'timeUpdated'] if attributes[:'timeUpdated'] raise 'You cannot provide both :timeUpdated and :time_updated' if attributes.key?(:'timeUpdated') && attributes.key?(:'time_updated') self.time_updated = attributes[:'time_updated'] if attributes[:'time_updated'] self.lifecycle_state = attributes[:'lifecycleState'] if attributes[:'lifecycleState'] raise 'You cannot provide both :lifecycleState and :lifecycle_state' if attributes.key?(:'lifecycleState') && attributes.key?(:'lifecycle_state') self.lifecycle_state = attributes[:'lifecycle_state'] if attributes[:'lifecycle_state'] self.lifecycle_details = attributes[:'lifecycleDetails'] if attributes[:'lifecycleDetails'] raise 'You cannot provide both :lifecycleDetails and :lifecycle_details' if attributes.key?(:'lifecycleDetails') && attributes.key?(:'lifecycle_details') self.lifecycle_details = attributes[:'lifecycle_details'] if attributes[:'lifecycle_details'] 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.package_catalog_item_display_name = attributes[:'packageCatalogItemDisplayName'] if attributes[:'packageCatalogItemDisplayName'] raise 'You cannot provide both :packageCatalogItemDisplayName and :package_catalog_item_display_name' if attributes.key?(:'packageCatalogItemDisplayName') && attributes.key?(:'package_catalog_item_display_name') self.package_catalog_item_display_name = attributes[:'package_catalog_item_display_name'] if attributes[:'package_catalog_item_display_name'] self.package_catalog_item_listing_id = attributes[:'packageCatalogItemListingId'] if attributes[:'packageCatalogItemListingId'] raise 'You cannot provide both :packageCatalogItemListingId and :package_catalog_item_listing_id' if attributes.key?(:'packageCatalogItemListingId') && attributes.key?(:'package_catalog_item_listing_id') self.package_catalog_item_listing_id = attributes[:'package_catalog_item_listing_id'] if attributes[:'package_catalog_item_listing_id'] self.package_catalog_item_listing_version = attributes[:'packageCatalogItemListingVersion'] if attributes[:'packageCatalogItemListingVersion'] raise 'You cannot provide both :packageCatalogItemListingVersion and :package_catalog_item_listing_version' if attributes.key?(:'packageCatalogItemListingVersion') && attributes.key?(:'package_catalog_item_listing_version') self.package_catalog_item_listing_version = attributes[:'package_catalog_item_listing_version'] if attributes[:'package_catalog_item_listing_version'] self.config_catalog_item_display_name = attributes[:'configCatalogItemDisplayName'] if attributes[:'configCatalogItemDisplayName'] raise 'You cannot provide both :configCatalogItemDisplayName and :config_catalog_item_display_name' if attributes.key?(:'configCatalogItemDisplayName') && attributes.key?(:'config_catalog_item_display_name') self.config_catalog_item_display_name = attributes[:'config_catalog_item_display_name'] if attributes[:'config_catalog_item_display_name'] self.config_catalog_item_listing_id = attributes[:'configCatalogItemListingId'] if attributes[:'configCatalogItemListingId'] raise 'You cannot provide both :configCatalogItemListingId and :config_catalog_item_listing_id' if attributes.key?(:'configCatalogItemListingId') && attributes.key?(:'config_catalog_item_listing_id') self.config_catalog_item_listing_id = attributes[:'config_catalog_item_listing_id'] if attributes[:'config_catalog_item_listing_id'] self.config_catalog_item_listing_version = attributes[:'configCatalogItemListingVersion'] if attributes[:'configCatalogItemListingVersion'] raise 'You cannot provide both :configCatalogItemListingVersion and :config_catalog_item_listing_version' if attributes.key?(:'configCatalogItemListingVersion') && attributes.key?(:'config_catalog_item_listing_version') self.config_catalog_item_listing_version = attributes[:'config_catalog_item_listing_version'] if attributes[:'config_catalog_item_listing_version'] self.stack_id = attributes[:'stackId'] if attributes[:'stackId'] raise 'You cannot provide both :stackId and :stack_id' if attributes.key?(:'stackId') && attributes.key?(:'stack_id') self.stack_id = attributes[:'stack_id'] if attributes[:'stack_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.rms_apply_job_id = attributes[:'rmsApplyJobId'] if attributes[:'rmsApplyJobId'] raise 'You cannot provide both :rmsApplyJobId and :rms_apply_job_id' if attributes.key?(:'rmsApplyJobId') && attributes.key?(:'rms_apply_job_id') self.rms_apply_job_id = attributes[:'rms_apply_job_id'] if attributes[:'rms_apply_job_id'] self.tf_outputs = attributes[:'tfOutputs'] if attributes[:'tfOutputs'] raise 'You cannot provide both :tfOutputs and :tf_outputs' if attributes.key?(:'tfOutputs') && attributes.key?(:'tf_outputs') self.tf_outputs = attributes[:'tf_outputs'] if attributes[:'tf_outputs'] self.deployed_resources = attributes[:'deployedResources'] if attributes[:'deployedResources'] raise 'You cannot provide both :deployedResources and :deployed_resources' if attributes.key?(:'deployedResources') && attributes.key?(:'deployed_resources') self.deployed_resources = attributes[:'deployed_resources'] if attributes[:'deployed_resources'] 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'] self. = attributes[:'systemTags'] if attributes[:'systemTags'] raise 'You cannot provide both :systemTags and :system_tags' if attributes.key?(:'systemTags') && attributes.key?(:'system_tags') self. = attributes[:'system_tags'] if attributes[:'system_tags'] end |
Instance Attribute Details
#compartment_id ⇒ String
[Required] The OCID of the compartment.
57 58 59 |
# File 'lib/oci/fleet_apps_management/models/provision.rb', line 57 def compartment_id @compartment_id end |
#config_catalog_item_display_name ⇒ String
[Required] A display Name of the Catalog Item in the Catalog.
105 106 107 |
# File 'lib/oci/fleet_apps_management/models/provision.rb', line 105 def config_catalog_item_display_name @config_catalog_item_display_name 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.
89 90 91 |
# File 'lib/oci/fleet_apps_management/models/provision.rb', line 89 def config_catalog_item_id @config_catalog_item_id end |
#config_catalog_item_listing_id ⇒ String
[Required] A listing ID of the Catalog Item in the Catalog.
109 110 111 |
# File 'lib/oci/fleet_apps_management/models/provision.rb', line 109 def config_catalog_item_listing_id @config_catalog_item_listing_id end |
#config_catalog_item_listing_version ⇒ String
[Required] A listing version of the Catalog Item in the Catalog.
113 114 115 |
# File 'lib/oci/fleet_apps_management/models/provision.rb', line 113 def config_catalog_item_listing_version @config_catalog_item_listing_version end |
#defined_tags ⇒ Hash<String, Hash<String, Object>>
[Required] Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {\"foo-namespace\": {\"bar-key\": \"value\"}}
145 146 147 |
# File 'lib/oci/fleet_apps_management/models/provision.rb', line 145 def @defined_tags end |
#deployed_resources ⇒ Array<OCI::FleetAppsManagement::Models::DeployedResourceDetails>
The deployed resources and their summary
133 134 135 |
# File 'lib/oci/fleet_apps_management/models/provision.rb', line 133 def deployed_resources @deployed_resources end |
#display_name ⇒ String
[Required] A user-friendly name. Does not have to be unique, and it's changeable.
33 34 35 |
# File 'lib/oci/fleet_apps_management/models/provision.rb', line 33 def display_name @display_name end |
#fleet_id ⇒ String
[Required] The OCID of the Fleet.
121 122 123 |
# File 'lib/oci/fleet_apps_management/models/provision.rb', line 121 def fleet_id @fleet_id end |
#freeform_tags ⇒ Hash<String, String>
[Required] Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {\"bar-key\": \"value\"}
139 140 141 |
# File 'lib/oci/fleet_apps_management/models/provision.rb', line 139 def @freeform_tags end |
#id ⇒ String
[Required] The OCID of the FamProvision.
29 30 31 |
# File 'lib/oci/fleet_apps_management/models/provision.rb', line 29 def id @id end |
#lifecycle_details ⇒ String
A message that describes the current state of the FamProvision in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
81 82 83 |
# File 'lib/oci/fleet_apps_management/models/provision.rb', line 81 def lifecycle_details @lifecycle_details end |
#lifecycle_state ⇒ String
[Required] The current state of the FamProvision.
75 76 77 |
# File 'lib/oci/fleet_apps_management/models/provision.rb', line 75 def lifecycle_state @lifecycle_state end |
#package_catalog_item_display_name ⇒ String
[Required] A display Name of the Catalog Item in the Catalog.
93 94 95 |
# File 'lib/oci/fleet_apps_management/models/provision.rb', line 93 def package_catalog_item_display_name @package_catalog_item_display_name end |
#package_catalog_item_id ⇒ String
[Required] The OCID of the Catalog Item.
85 86 87 |
# File 'lib/oci/fleet_apps_management/models/provision.rb', line 85 def package_catalog_item_id @package_catalog_item_id end |
#package_catalog_item_listing_id ⇒ String
[Required] A listing ID of the Catalog Item in the Catalog.
97 98 99 |
# File 'lib/oci/fleet_apps_management/models/provision.rb', line 97 def package_catalog_item_listing_id @package_catalog_item_listing_id end |
#package_catalog_item_listing_version ⇒ String
[Required] A listing version of the Catalog Item in the Catalog.
101 102 103 |
# File 'lib/oci/fleet_apps_management/models/provision.rb', line 101 def package_catalog_item_listing_version @package_catalog_item_listing_version end |
#provision_description ⇒ String
A description of the provision.
37 38 39 |
# File 'lib/oci/fleet_apps_management/models/provision.rb', line 37 def provision_description @provision_description end |
#rms_apply_job_id ⇒ String
The OCID of the RMS APPLY Job.
125 126 127 |
# File 'lib/oci/fleet_apps_management/models/provision.rb', line 125 def rms_apply_job_id @rms_apply_job_id end |
#stack_id ⇒ String
The OCID of the RMS Stack.
117 118 119 |
# File 'lib/oci/fleet_apps_management/models/provision.rb', line 117 def stack_id @stack_id end |
#system_tags ⇒ Hash<String, Hash<String, Object>>
System tags for this resource. Each key is predefined and scoped to a namespace. Example: {\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}
151 152 153 |
# File 'lib/oci/fleet_apps_management/models/provision.rb', line 151 def @system_tags end |
#tf_outputs ⇒ Array<OCI::FleetAppsManagement::Models::JobExecutionDetails>
Outputs from the Terraform Apply job
129 130 131 |
# File 'lib/oci/fleet_apps_management/models/provision.rb', line 129 def tf_outputs @tf_outputs 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.
53 54 55 |
# File 'lib/oci/fleet_apps_management/models/provision.rb', line 53 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.
49 50 51 |
# File 'lib/oci/fleet_apps_management/models/provision.rb', line 49 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.
45 46 47 |
# File 'lib/oci/fleet_apps_management/models/provision.rb', line 45 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.
41 42 43 |
# File 'lib/oci/fleet_apps_management/models/provision.rb', line 41 def tf_variable_tenancy_id @tf_variable_tenancy_id end |
#time_created ⇒ DateTime
[Required] The date and time the FamProvision was created, in the format defined by RFC 3339.
Example: 2016-08-25T21:10:29.600Z
64 65 66 |
# File 'lib/oci/fleet_apps_management/models/provision.rb', line 64 def time_created @time_created end |
#time_updated ⇒ DateTime
The date and time the FamProvision was updated, in the format defined by RFC 3339.
Example: 2016-08-25T21:10:29.600Z
71 72 73 |
# File 'lib/oci/fleet_apps_management/models/provision.rb', line 71 def time_updated @time_updated end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
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 |
# File 'lib/oci/fleet_apps_management/models/provision.rb', line 154 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'id': :'id', 'display_name': :'displayName', 'provision_description': :'provisionDescription', 'tf_variable_tenancy_id': :'tfVariableTenancyId', 'tf_variable_region_id': :'tfVariableRegionId', 'tf_variable_current_user_id': :'tfVariableCurrentUserId', 'tf_variable_compartment_id': :'tfVariableCompartmentId', 'compartment_id': :'compartmentId', 'time_created': :'timeCreated', 'time_updated': :'timeUpdated', 'lifecycle_state': :'lifecycleState', 'lifecycle_details': :'lifecycleDetails', 'package_catalog_item_id': :'packageCatalogItemId', 'config_catalog_item_id': :'configCatalogItemId', 'package_catalog_item_display_name': :'packageCatalogItemDisplayName', 'package_catalog_item_listing_id': :'packageCatalogItemListingId', 'package_catalog_item_listing_version': :'packageCatalogItemListingVersion', 'config_catalog_item_display_name': :'configCatalogItemDisplayName', 'config_catalog_item_listing_id': :'configCatalogItemListingId', 'config_catalog_item_listing_version': :'configCatalogItemListingVersion', 'stack_id': :'stackId', 'fleet_id': :'fleetId', 'rms_apply_job_id': :'rmsApplyJobId', 'tf_outputs': :'tfOutputs', 'deployed_resources': :'deployedResources', 'freeform_tags': :'freeformTags', 'defined_tags': :'definedTags', 'system_tags': :'systemTags' # rubocop:enable Style/SymbolLiteral } end |
.swagger_types ⇒ Object
Attribute type mapping.
190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 |
# File 'lib/oci/fleet_apps_management/models/provision.rb', line 190 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'id': :'String', 'display_name': :'String', 'provision_description': :'String', 'tf_variable_tenancy_id': :'String', 'tf_variable_region_id': :'String', 'tf_variable_current_user_id': :'String', 'tf_variable_compartment_id': :'String', 'compartment_id': :'String', 'time_created': :'DateTime', 'time_updated': :'DateTime', 'lifecycle_state': :'String', 'lifecycle_details': :'String', 'package_catalog_item_id': :'String', 'config_catalog_item_id': :'String', 'package_catalog_item_display_name': :'String', 'package_catalog_item_listing_id': :'String', 'package_catalog_item_listing_version': :'String', 'config_catalog_item_display_name': :'String', 'config_catalog_item_listing_id': :'String', 'config_catalog_item_listing_version': :'String', 'stack_id': :'String', 'fleet_id': :'String', 'rms_apply_job_id': :'String', 'tf_outputs': :'Array<OCI::FleetAppsManagement::Models::JobExecutionDetails>', 'deployed_resources': :'Array<OCI::FleetAppsManagement::Models::DeployedResourceDetails>', 'freeform_tags': :'Hash<String, String>', 'defined_tags': :'Hash<String, Hash<String, Object>>', 'system_tags': :'Hash<String, Hash<String, Object>>' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 |
# File 'lib/oci/fleet_apps_management/models/provision.rb', line 450 def ==(other) return true if equal?(other) self.class == other.class && id == other.id && display_name == other.display_name && provision_description == other.provision_description && 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 && compartment_id == other.compartment_id && time_created == other.time_created && time_updated == other.time_updated && lifecycle_state == other.lifecycle_state && lifecycle_details == other.lifecycle_details && package_catalog_item_id == other.package_catalog_item_id && config_catalog_item_id == other.config_catalog_item_id && package_catalog_item_display_name == other.package_catalog_item_display_name && package_catalog_item_listing_id == other.package_catalog_item_listing_id && package_catalog_item_listing_version == other.package_catalog_item_listing_version && config_catalog_item_display_name == other.config_catalog_item_display_name && config_catalog_item_listing_id == other.config_catalog_item_listing_id && config_catalog_item_listing_version == other.config_catalog_item_listing_version && stack_id == other.stack_id && fleet_id == other.fleet_id && rms_apply_job_id == other.rms_apply_job_id && tf_outputs == other.tf_outputs && deployed_resources == other.deployed_resources && == other. && == other. && == other. end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 |
# File 'lib/oci/fleet_apps_management/models/provision.rb', line 507 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
487 488 489 |
# File 'lib/oci/fleet_apps_management/models/provision.rb', line 487 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
496 497 498 |
# File 'lib/oci/fleet_apps_management/models/provision.rb', line 496 def hash [id, display_name, provision_description, tf_variable_tenancy_id, tf_variable_region_id, tf_variable_current_user_id, tf_variable_compartment_id, compartment_id, time_created, time_updated, lifecycle_state, lifecycle_details, package_catalog_item_id, config_catalog_item_id, package_catalog_item_display_name, package_catalog_item_listing_id, package_catalog_item_listing_version, config_catalog_item_display_name, config_catalog_item_listing_id, config_catalog_item_listing_version, stack_id, fleet_id, rms_apply_job_id, tf_outputs, deployed_resources, , , ].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
540 541 542 543 544 545 546 547 548 549 |
# File 'lib/oci/fleet_apps_management/models/provision.rb', line 540 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
534 535 536 |
# File 'lib/oci/fleet_apps_management/models/provision.rb', line 534 def to_s to_hash.to_s end |