node: my_block_storage relationship: MyAttachesTo # use default property settings in the Relationship Type definition my_web_app_tier_2: type: Compute requirements: - local_storage: node: my_block_storage relationship: type: MyAttachesTo # Override default property setting for just the property ‘location’ properties: location: /some_other_data_location relationship_types: MyAttachesTo: derived_from: AttachesTo properties: location: /default_location In this example, the MyAttachesTo relationship type augments the location property in the AttachesTo type from which it derives by assigning a fixed value of /default_location. This example shows a major inconsistency with the Endpoint capability example: In the Endpoint.Admin capability type definition, the secure property augmentation includes a type In the MyAttachesTo relationship type definition, the location property augmentation does not include a type Clearly, this inconsistency needs to be corrected. Suggestions for how to do this will be discussed later. Augmenting Interface Definitions node and relationship type definitions can augment interfaces defined in one of their base classes by doing the following: Specifying an operation implementation for an operation defined in the interface Adding additional input parameters to the interface definition Adding additional input parameters to an operation definition within the interface definition. Specifying Operation Implementation Section 2.7.1 shows the following example of augmenting the Configure interface type with an implementation for the pre_configure_source operation: tosca_definitions_version: tosca_simple_yaml_1_0 description: Definition of custom WordpressDbConnection relationship type
node: my_block_storage relationship: MyAttachesTo # use default property settings in the Relationship Type definition my_web_app_tier_2: type: Compute requirements: - local_storage: node: my_block_storage relationship: type: MyAttachesTo # Override default property setting for just the ‘location’ property properties: location: /some_other_data_location relationship_types: MyAttachesTo: derived_from: AttachesTo properties: location: /default_location In this example, the MyAttachesTo relationship type augments the location property in the AttachesTo type from which it derives by assigning a fixed value of /default_location. This example shows a major inconsistency with the Endpoint capability example: In the Endpoint.Admin capability type definition, the secure property augmentation includes a type In the MyAttachesTo relationship type definition, the location property augmentation does not include a type Clearly, this inconsistency needs to be corrected. Suggestions for how to do this will be discussed later. Augmenting Interface Definitions node and relationship type definitions can augment interfaces defined in one of their base classes by doing the following: Specifying an operation implementation for an operation defined in the interface Adding additional input parameters to the interface definition Adding additional input parameters to an operation definition within the interface definition. Specifying Operation Implementation Section 2.7.1 shows the following example of augmenting the Configure interface type with an implementation for the pre_configure_source operation: tosca_definitions_version: tosca_simple_yaml_1_0 description: Definition of custom WordpressDbConnection relationship type