diff options
Diffstat (limited to 'aai-schema/src/main/resources/aai_swagger_yaml')
6 files changed, 818 insertions, 70 deletions
diff --git a/aai-schema/src/main/resources/aai_swagger_yaml/aai_swagger_v10.yaml b/aai-schema/src/main/resources/aai_swagger_yaml/aai_swagger_v10.yaml index 98425494..ac8969de 100644 --- a/aai-schema/src/main/resources/aai_swagger_yaml/aai_swagger_v10.yaml +++ b/aai-schema/src/main/resources/aai_swagger_yaml/aai_swagger_v10.yaml @@ -50036,7 +50036,7 @@ definitions: hpa-version: type: string description: HPA schema version - hpa-hw-arch: + architecture: type: string description: Hardware architecture resource-version: @@ -50055,11 +50055,13 @@ definitions: HPA Capability Feature attributes ###### Related Nodes - TO hpa-capability( hpa-feature-attributes org.onap.relationships.inventory.BelongsTo hpa-capability, MANY2ONE) + required: + - hpa-attribute-key properties: - hpa-attr-key: + hpa-attribute-key: type: string description: name of the specific HPA attribute - hpa-attr-value: + hpa-attribute-value: type: string description: JSON string specifying the value, unit and type of the specific HPA attribute resource-version: @@ -54942,7 +54944,7 @@ patchDefinitions: hpa-version: type: string description: HPA schema version - hpa-hw-arch: + architecture: type: string description: Hardware architecture hpa-feature-attributes: @@ -54950,11 +54952,13 @@ patchDefinitions: HPA Capability Feature attributes ###### Related Nodes - TO hpa-capability( hpa-feature-attributes org.onap.relationships.inventory.BelongsTo hpa-capability, MANY2ONE) + required: + - hpa-attribute-key properties: - hpa-attr-key: + hpa-attribute-key: type: string description: name of the specific HPA attribute - hpa-attr-value: + hpa-attribute-value: type: string description: JSON string specifying the value, unit and type of the specific HPA attribute image: @@ -59345,7 +59349,7 @@ getDefinitions: hpa-version: type: string description: HPA schema version - hpa-hw-arch: + architecture: type: string description: Hardware architecture resource-version: @@ -59364,11 +59368,13 @@ getDefinitions: HPA Capability Feature attributes ###### Related Nodes - TO hpa-capability( hpa-feature-attributes org.onap.relationships.inventory.BelongsTo hpa-capability, MANY2ONE) + required: + - hpa-attribute-key properties: - hpa-attr-key: + hpa-attribute-key: type: string description: name of the specific HPA attribute - hpa-attr-value: + hpa-attribute-value: type: string description: JSON string specifying the value, unit and type of the specific HPA attribute resource-version: diff --git a/aai-schema/src/main/resources/aai_swagger_yaml/aai_swagger_v11.yaml b/aai-schema/src/main/resources/aai_swagger_yaml/aai_swagger_v11.yaml index 7b6536a6..10d06268 100644 --- a/aai-schema/src/main/resources/aai_swagger_yaml/aai_swagger_v11.yaml +++ b/aai-schema/src/main/resources/aai_swagger_yaml/aai_swagger_v11.yaml @@ -54066,7 +54066,7 @@ definitions: hpa-version: type: string description: HPA schema version - hpa-hw-arch: + architecture: type: string description: Hardware architecture resource-version: @@ -54085,11 +54085,13 @@ definitions: HPA Capability Feature attributes ###### Related Nodes - TO hpa-capability( hpa-feature-attributes org.onap.relationships.inventory.BelongsTo hpa-capability, MANY2ONE) + required: + - hpa-attribute-key properties: - hpa-attr-key: + hpa-attribute-key: type: string description: name of the specific HPA attribute - hpa-attr-value: + hpa-attribute-value: type: string description: JSON string specifying the value, unit and type of the specific HPA attribute resource-version: @@ -59200,7 +59202,7 @@ patchDefinitions: hpa-version: type: string description: HPA schema version - hpa-hw-arch: + architecture: type: string description: Hardware architecture hpa-feature-attributes: @@ -59208,11 +59210,13 @@ patchDefinitions: HPA Capability Feature attributes ###### Related Nodes - TO hpa-capability( hpa-feature-attributes org.onap.relationships.inventory.BelongsTo hpa-capability, MANY2ONE) + required: + - hpa-attribute-key properties: - hpa-attr-key: + hpa-attribute-key: type: string description: name of the specific HPA attribute - hpa-attr-value: + hpa-attribute-value: type: string description: JSON string specifying the value, unit and type of the specific HPA attribute image: @@ -63815,7 +63819,7 @@ getDefinitions: hpa-version: type: string description: HPA schema version - hpa-hw-arch: + architecture: type: string description: Hardware architecture resource-version: @@ -63834,11 +63838,13 @@ getDefinitions: HPA Capability Feature attributes ###### Related Nodes - TO hpa-capability( hpa-feature-attributes org.onap.relationships.inventory.BelongsTo hpa-capability, MANY2ONE) + required: + - hpa-attribute-key properties: - hpa-attr-key: + hpa-attribute-key: type: string description: name of the specific HPA attribute - hpa-attr-value: + hpa-attribute-value: type: string description: JSON string specifying the value, unit and type of the specific HPA attribute resource-version: diff --git a/aai-schema/src/main/resources/aai_swagger_yaml/aai_swagger_v12.yaml b/aai-schema/src/main/resources/aai_swagger_yaml/aai_swagger_v12.yaml index db6978d7..130578d4 100644 --- a/aai-schema/src/main/resources/aai_swagger_yaml/aai_swagger_v12.yaml +++ b/aai-schema/src/main/resources/aai_swagger_yaml/aai_swagger_v12.yaml @@ -5362,7 +5362,7 @@ paths: required: true type: string example: __HPA-CAPABILITY-ID__ - /cloud-infrastructure/cloud-regions/cloud-region/{cloud-owner}/{cloud-region-id}/flavors/flavor/{flavor-id}/hpa-capabilities/hpa-capability/{hpa-capability-id}/hpa-feature-attributes/relationship-list/relationship: + /cloud-infrastructure/cloud-regions/cloud-region/{cloud-owner}/{cloud-region-id}/flavors/flavor/{flavor-id}/hpa-capabilities/hpa-capability/{hpa-capability-id}/hpa-feature-attributes/{hpa-attribute-key}/relationship-list/relationship: put: tags: - CloudInfrastructure @@ -5402,6 +5402,12 @@ paths: required: true type: string example: __HPA-CAPABILITY-ID__ + - name: hpa-attribute-key + in: path + description: name of the specific HPA attribute + required: true + type: string + example: __HPA-ATTRIBUTE-KEY__ - name: body in: body description: relationship object that needs to be created or updated. [Valid relationship examples shown here](apidocs/relations/v12/CloudInfrastructureCloudRegionsCloudRegionFlavorsFlavorHpaCapabilitiesHpaCapabilityHpaFeatureAttributes.json) @@ -5448,7 +5454,13 @@ paths: required: true type: string example: __HPA-CAPABILITY-ID__ - /cloud-infrastructure/cloud-regions/cloud-region/{cloud-owner}/{cloud-region-id}/flavors/flavor/{flavor-id}/hpa-capabilities/hpa-capability/{hpa-capability-id}/hpa-feature-attributes: + - name: hpa-attribute-key + in: path + description: name of the specific HPA attribute + required: true + type: string + example: __HPA-ATTRIBUTE-KEY__ + /cloud-infrastructure/cloud-regions/cloud-region/{cloud-owner}/{cloud-region-id}/flavors/flavor/{flavor-id}/hpa-capabilities/hpa-capability/{hpa-capability-id}/hpa-feature-attributes/{hpa-attribute-key}: get: tags: - CloudInfrastructure @@ -5490,6 +5502,12 @@ paths: required: true type: string example: __HPA-CAPABILITY-ID__ + - name: hpa-attribute-key + in: path + description: name of the specific HPA attribute + required: true + type: string + example: __HPA-ATTRIBUTE-KEY__ - name: cloud-type in: query description: Type of the cloud (e.g., openstack) @@ -5510,11 +5528,180 @@ paths: description: Name of the HPACapability required: false type: string - - name: hpa-hw-arch + - name: architecture in: query description: Hardware architecture required: false type: string + put: + tags: + - CloudInfrastructure + summary: create or update an existing hpa-feature-attributes + description: | + Create or update an existing hpa-feature-attributes. + # + Note! This PUT method has a corresponding PATCH method that can be used to update just a few of the fields of an existing object, rather than a full object replacement. An example can be found in the [PATCH section] below + operationId: createOrUpdateCloudInfrastructureCloudRegionsCloudRegionFlavorsFlavorHpaCapabilitiesHpaCapabilityHpaFeatureAttributes + consumes: + - application/json + - application/xml + produces: + - application/json + - application/xml + responses: + "default": + description: Response codes found in [response codes](https://wiki.onap.org/). + parameters: + - name: cloud-owner + in: path + description: Identifies the vendor and cloud name. First part of composite key should be formatted as vendor-cloudname + required: true + type: string + example: __CLOUD-OWNER__ + - name: cloud-region-id + in: path + description: Identifier used by the vendor for the region. Second part of composite key + required: true + type: string + example: __CLOUD-REGION-ID__ + - name: flavor-id + in: path + description: Flavor id, expected to be unique across cloud-region. + required: true + type: string + example: __FLAVOR-ID__ + - name: hpa-capability-id + in: path + description: UUID to uniquely identify a HPA capability + required: true + type: string + example: __HPA-CAPABILITY-ID__ + - name: hpa-attribute-key + in: path + description: name of the specific HPA attribute + required: true + type: string + example: __HPA-ATTRIBUTE-KEY__ + - name: body + in: body + description: hpa-feature-attributes object that needs to be created or updated. [Valid relationship examples shown here](apidocs/relations/v12/CloudInfrastructureCloudRegionsCloudRegionFlavorsFlavorHpaCapabilitiesHpaCapabilityHpaFeatureAttributes.json) + required: true + schema: + $ref: "#/definitions/hpa-feature-attributes" + patch: + tags: + - CloudInfrastructure + summary: update an existing hpa-feature-attributes + description: | + Update an existing hpa-feature-attributes + # + Note: Endpoints that are not devoted to object relationships support both PUT and PATCH operations. + The PUT operation will entirely replace an existing object. + The PATCH operation sends a "description of changes" for an existing object. The entire set of changes must be applied. An error result means no change occurs. + # + Other differences between PUT and PATCH are: + # + - For PATCH, you can send any of the values shown in sample REQUEST body. There are no required values. + - For PATCH, resource-id which is a required REQUEST body element for PUT, must not be sent. + - PATCH cannot be used to update relationship elements; there are dedicated PUT operations for this. + operationId: UpdateCloudInfrastructureCloudRegionsCloudRegionFlavorsFlavorHpaCapabilitiesHpaCapabilityHpaFeatureAttributes + consumes: + - application/json + - application/xml + produces: + - application/json + - application/xml + responses: + "default": + description: Response codes found in [response codes](https://wiki.onap.org/). + parameters: + - name: cloud-owner + in: path + description: Identifies the vendor and cloud name. First part of composite key should be formatted as vendor-cloudname + required: true + type: string + example: __CLOUD-OWNER__ + - name: cloud-region-id + in: path + description: Identifier used by the vendor for the region. Second part of composite key + required: true + type: string + example: __CLOUD-REGION-ID__ + - name: flavor-id + in: path + description: Flavor id, expected to be unique across cloud-region. + required: true + type: string + example: __FLAVOR-ID__ + - name: hpa-capability-id + in: path + description: UUID to uniquely identify a HPA capability + required: true + type: string + example: __HPA-CAPABILITY-ID__ + - name: hpa-attribute-key + in: path + description: name of the specific HPA attribute + required: true + type: string + example: __HPA-ATTRIBUTE-KEY__ + - name: body + in: body + description: hpa-feature-attributes object that needs to be created or updated. + required: true + schema: + $ref: "#/patchDefinitions/hpa-feature-attributes" + delete: + tags: + - CloudInfrastructure + summary: delete an existing hpa-feature-attributes + description: delete an existing hpa-feature-attributes + operationId: deleteCloudInfrastructureCloudRegionsCloudRegionFlavorsFlavorHpaCapabilitiesHpaCapabilityHpaFeatureAttributes + consumes: + - application/json + - application/xml + produces: + - application/json + - application/xml + responses: + "default": + description: Response codes found in [response codes](https://wiki.onap.org/). + parameters: + - name: cloud-owner + in: path + description: Identifies the vendor and cloud name. First part of composite key should be formatted as vendor-cloudname + required: true + type: string + example: __CLOUD-OWNER__ + - name: cloud-region-id + in: path + description: Identifier used by the vendor for the region. Second part of composite key + required: true + type: string + example: __CLOUD-REGION-ID__ + - name: flavor-id + in: path + description: Flavor id, expected to be unique across cloud-region. + required: true + type: string + example: __FLAVOR-ID__ + - name: hpa-capability-id + in: path + description: UUID to uniquely identify a HPA capability + required: true + type: string + example: __HPA-CAPABILITY-ID__ + - name: hpa-attribute-key + in: path + description: name of the specific HPA attribute + required: true + type: string + example: __HPA-ATTRIBUTE-KEY__ + - name: resource-version + in: query + description: resource-version for concurrency + required: true + type: string /cloud-infrastructure/cloud-regions/cloud-region/{cloud-owner}/{cloud-region-id}/flavors/flavor/{flavor-id}/hpa-capabilities/hpa-capability/{hpa-capability-id}: get: tags: @@ -5577,7 +5764,7 @@ paths: description: Name of the HPACapability required: false type: string - - name: hpa-hw-arch + - name: architecture in: query description: Hardware architecture required: false @@ -8870,7 +9057,7 @@ paths: required: true type: string example: __HPA-CAPABILITY-ID__ - /cloud-infrastructure/cloud-regions/cloud-region/{cloud-owner}/{cloud-region-id}/hpa-capabilities/hpa-capability/{hpa-capability-id}/hpa-feature-attributes/relationship-list/relationship: + /cloud-infrastructure/cloud-regions/cloud-region/{cloud-owner}/{cloud-region-id}/hpa-capabilities/hpa-capability/{hpa-capability-id}/hpa-feature-attributes/{hpa-attribute-key}/relationship-list/relationship: put: tags: - CloudInfrastructure @@ -8904,6 +9091,12 @@ paths: required: true type: string example: __HPA-CAPABILITY-ID__ + - name: hpa-attribute-key + in: path + description: name of the specific HPA attribute + required: true + type: string + example: __HPA-ATTRIBUTE-KEY__ - name: body in: body description: relationship object that needs to be created or updated. [Valid relationship examples shown here](apidocs/relations/v12/CloudInfrastructureCloudRegionsCloudRegionHpaCapabilitiesHpaCapabilityHpaFeatureAttributes.json) @@ -8944,7 +9137,13 @@ paths: required: true type: string example: __HPA-CAPABILITY-ID__ - /cloud-infrastructure/cloud-regions/cloud-region/{cloud-owner}/{cloud-region-id}/hpa-capabilities/hpa-capability/{hpa-capability-id}/hpa-feature-attributes: + - name: hpa-attribute-key + in: path + description: name of the specific HPA attribute + required: true + type: string + example: __HPA-ATTRIBUTE-KEY__ + /cloud-infrastructure/cloud-regions/cloud-region/{cloud-owner}/{cloud-region-id}/hpa-capabilities/hpa-capability/{hpa-capability-id}/hpa-feature-attributes/{hpa-attribute-key}: get: tags: - CloudInfrastructure @@ -8980,6 +9179,12 @@ paths: required: true type: string example: __HPA-CAPABILITY-ID__ + - name: hpa-attribute-key + in: path + description: name of the specific HPA attribute + required: true + type: string + example: __HPA-ATTRIBUTE-KEY__ - name: cloud-type in: query description: Type of the cloud (e.g., openstack) @@ -8995,11 +9200,162 @@ paths: description: Name of the HPACapability required: false type: string - - name: hpa-hw-arch + - name: architecture in: query description: Hardware architecture required: false type: string + put: + tags: + - CloudInfrastructure + summary: create or update an existing hpa-feature-attributes + description: | + Create or update an existing hpa-feature-attributes. + # + Note! This PUT method has a corresponding PATCH method that can be used to update just a few of the fields of an existing object, rather than a full object replacement. An example can be found in the [PATCH section] below + operationId: createOrUpdateCloudInfrastructureCloudRegionsCloudRegionHpaCapabilitiesHpaCapabilityHpaFeatureAttributes + consumes: + - application/json + - application/xml + produces: + - application/json + - application/xml + responses: + "default": + description: Response codes found in [response codes](https://wiki.onap.org/). + parameters: + - name: cloud-owner + in: path + description: Identifies the vendor and cloud name. First part of composite key should be formatted as vendor-cloudname + required: true + type: string + example: __CLOUD-OWNER__ + - name: cloud-region-id + in: path + description: Identifier used by the vendor for the region. Second part of composite key + required: true + type: string + example: __CLOUD-REGION-ID__ + - name: hpa-capability-id + in: path + description: UUID to uniquely identify a HPA capability + required: true + type: string + example: __HPA-CAPABILITY-ID__ + - name: hpa-attribute-key + in: path + description: name of the specific HPA attribute + required: true + type: string + example: __HPA-ATTRIBUTE-KEY__ + - name: body + in: body + description: hpa-feature-attributes object that needs to be created or updated. [Valid relationship examples shown here](apidocs/relations/v12/CloudInfrastructureCloudRegionsCloudRegionHpaCapabilitiesHpaCapabilityHpaFeatureAttributes.json) + required: true + schema: + $ref: "#/definitions/hpa-feature-attributes" + patch: + tags: + - CloudInfrastructure + summary: update an existing hpa-feature-attributes + description: | + Update an existing hpa-feature-attributes + # + Note: Endpoints that are not devoted to object relationships support both PUT and PATCH operations. + The PUT operation will entirely replace an existing object. + The PATCH operation sends a "description of changes" for an existing object. The entire set of changes must be applied. An error result means no change occurs. + # + Other differences between PUT and PATCH are: + # + - For PATCH, you can send any of the values shown in sample REQUEST body. There are no required values. + - For PATCH, resource-id which is a required REQUEST body element for PUT, must not be sent. + - PATCH cannot be used to update relationship elements; there are dedicated PUT operations for this. + operationId: UpdateCloudInfrastructureCloudRegionsCloudRegionHpaCapabilitiesHpaCapabilityHpaFeatureAttributes + consumes: + - application/json + - application/xml + produces: + - application/json + - application/xml + responses: + "default": + description: Response codes found in [response codes](https://wiki.onap.org/). + parameters: + - name: cloud-owner + in: path + description: Identifies the vendor and cloud name. First part of composite key should be formatted as vendor-cloudname + required: true + type: string + example: __CLOUD-OWNER__ + - name: cloud-region-id + in: path + description: Identifier used by the vendor for the region. Second part of composite key + required: true + type: string + example: __CLOUD-REGION-ID__ + - name: hpa-capability-id + in: path + description: UUID to uniquely identify a HPA capability + required: true + type: string + example: __HPA-CAPABILITY-ID__ + - name: hpa-attribute-key + in: path + description: name of the specific HPA attribute + required: true + type: string + example: __HPA-ATTRIBUTE-KEY__ + - name: body + in: body + description: hpa-feature-attributes object that needs to be created or updated. + required: true + schema: + $ref: "#/patchDefinitions/hpa-feature-attributes" + delete: + tags: + - CloudInfrastructure + summary: delete an existing hpa-feature-attributes + description: delete an existing hpa-feature-attributes + operationId: deleteCloudInfrastructureCloudRegionsCloudRegionHpaCapabilitiesHpaCapabilityHpaFeatureAttributes + consumes: + - application/json + - application/xml + produces: + - application/json + - application/xml + responses: + "default": + description: Response codes found in [response codes](https://wiki.onap.org/). + parameters: + - name: cloud-owner + in: path + description: Identifies the vendor and cloud name. First part of composite key should be formatted as vendor-cloudname + required: true + type: string + example: __CLOUD-OWNER__ + - name: cloud-region-id + in: path + description: Identifier used by the vendor for the region. Second part of composite key + required: true + type: string + example: __CLOUD-REGION-ID__ + - name: hpa-capability-id + in: path + description: UUID to uniquely identify a HPA capability + required: true + type: string + example: __HPA-CAPABILITY-ID__ + - name: hpa-attribute-key + in: path + description: name of the specific HPA attribute + required: true + type: string + example: __HPA-ATTRIBUTE-KEY__ + - name: resource-version + in: query + description: resource-version for concurrency + required: true + type: string /cloud-infrastructure/cloud-regions/cloud-region/{cloud-owner}/{cloud-region-id}/hpa-capabilities/hpa-capability/{hpa-capability-id}: get: tags: @@ -9051,7 +9407,7 @@ paths: description: Name of the HPACapability required: false type: string - - name: hpa-hw-arch + - name: architecture in: query description: Hardware architecture required: false @@ -55924,7 +56280,7 @@ definitions: hpa-version: type: string description: HPA schema version - hpa-hw-arch: + architecture: type: string description: Hardware architecture resource-version: @@ -55943,11 +56299,13 @@ definitions: HPA Capability Feature attributes ###### Related Nodes - TO hpa-capability( hpa-feature-attributes org.onap.relationships.inventory.BelongsTo hpa-capability, MANY2ONE) + required: + - hpa-attribute-key properties: - hpa-attr-key: + hpa-attribute-key: type: string description: name of the specific HPA attribute - hpa-attr-value: + hpa-attribute-value: type: string description: JSON string specifying the value, unit and type of the specific HPA attribute resource-version: @@ -61117,7 +61475,7 @@ patchDefinitions: hpa-version: type: string description: HPA schema version - hpa-hw-arch: + architecture: type: string description: Hardware architecture hpa-feature-attributes: @@ -61125,11 +61483,13 @@ patchDefinitions: HPA Capability Feature attributes ###### Related Nodes - TO hpa-capability( hpa-feature-attributes org.onap.relationships.inventory.BelongsTo hpa-capability, MANY2ONE) + required: + - hpa-attribute-key properties: - hpa-attr-key: + hpa-attribute-key: type: string description: name of the specific HPA attribute - hpa-attr-value: + hpa-attribute-value: type: string description: JSON string specifying the value, unit and type of the specific HPA attribute image: @@ -65799,7 +66159,7 @@ getDefinitions: hpa-version: type: string description: HPA schema version - hpa-hw-arch: + architecture: type: string description: Hardware architecture resource-version: @@ -65818,11 +66178,13 @@ getDefinitions: HPA Capability Feature attributes ###### Related Nodes - TO hpa-capability( hpa-feature-attributes org.onap.relationships.inventory.BelongsTo hpa-capability, MANY2ONE) + required: + - hpa-attribute-key properties: - hpa-attr-key: + hpa-attribute-key: type: string description: name of the specific HPA attribute - hpa-attr-value: + hpa-attribute-value: type: string description: JSON string specifying the value, unit and type of the specific HPA attribute resource-version: diff --git a/aai-schema/src/main/resources/aai_swagger_yaml/aai_swagger_v13.yaml b/aai-schema/src/main/resources/aai_swagger_yaml/aai_swagger_v13.yaml index 08e7daf6..976f1aa9 100644 --- a/aai-schema/src/main/resources/aai_swagger_yaml/aai_swagger_v13.yaml +++ b/aai-schema/src/main/resources/aai_swagger_yaml/aai_swagger_v13.yaml @@ -5362,7 +5362,7 @@ paths: required: true type: string example: __HPA-CAPABILITY-ID__ - /cloud-infrastructure/cloud-regions/cloud-region/{cloud-owner}/{cloud-region-id}/flavors/flavor/{flavor-id}/hpa-capabilities/hpa-capability/{hpa-capability-id}/hpa-feature-attributes/relationship-list/relationship: + /cloud-infrastructure/cloud-regions/cloud-region/{cloud-owner}/{cloud-region-id}/flavors/flavor/{flavor-id}/hpa-capabilities/hpa-capability/{hpa-capability-id}/hpa-feature-attributes/{hpa-attribute-key}/relationship-list/relationship: put: tags: - CloudInfrastructure @@ -5402,6 +5402,12 @@ paths: required: true type: string example: __HPA-CAPABILITY-ID__ + - name: hpa-attribute-key + in: path + description: name of the specific HPA attribute + required: true + type: string + example: __HPA-ATTRIBUTE-KEY__ - name: body in: body description: relationship object that needs to be created or updated. [Valid relationship examples shown here](apidocs/relations/v13/CloudInfrastructureCloudRegionsCloudRegionFlavorsFlavorHpaCapabilitiesHpaCapabilityHpaFeatureAttributes.json) @@ -5448,7 +5454,13 @@ paths: required: true type: string example: __HPA-CAPABILITY-ID__ - /cloud-infrastructure/cloud-regions/cloud-region/{cloud-owner}/{cloud-region-id}/flavors/flavor/{flavor-id}/hpa-capabilities/hpa-capability/{hpa-capability-id}/hpa-feature-attributes: + - name: hpa-attribute-key + in: path + description: name of the specific HPA attribute + required: true + type: string + example: __HPA-ATTRIBUTE-KEY__ + /cloud-infrastructure/cloud-regions/cloud-region/{cloud-owner}/{cloud-region-id}/flavors/flavor/{flavor-id}/hpa-capabilities/hpa-capability/{hpa-capability-id}/hpa-feature-attributes/{hpa-attribute-key}: get: tags: - CloudInfrastructure @@ -5490,6 +5502,12 @@ paths: required: true type: string example: __HPA-CAPABILITY-ID__ + - name: hpa-attribute-key + in: path + description: name of the specific HPA attribute + required: true + type: string + example: __HPA-ATTRIBUTE-KEY__ - name: cloud-type in: query description: Type of the cloud (e.g., openstack) @@ -5510,11 +5528,180 @@ paths: description: Name of the HPACapability required: false type: string - - name: hpa-hw-arch + - name: architecture in: query description: Hardware architecture required: false type: string + put: + tags: + - CloudInfrastructure + summary: create or update an existing hpa-feature-attributes + description: | + Create or update an existing hpa-feature-attributes. + # + Note! This PUT method has a corresponding PATCH method that can be used to update just a few of the fields of an existing object, rather than a full object replacement. An example can be found in the [PATCH section] below + operationId: createOrUpdateCloudInfrastructureCloudRegionsCloudRegionFlavorsFlavorHpaCapabilitiesHpaCapabilityHpaFeatureAttributes + consumes: + - application/json + - application/xml + produces: + - application/json + - application/xml + responses: + "default": + description: Response codes found in [response codes](https://wiki.onap.org/). + parameters: + - name: cloud-owner + in: path + description: Identifies the vendor and cloud name. First part of composite key should be formatted as vendor-cloudname + required: true + type: string + example: __CLOUD-OWNER__ + - name: cloud-region-id + in: path + description: Identifier used by the vendor for the region. Second part of composite key + required: true + type: string + example: __CLOUD-REGION-ID__ + - name: flavor-id + in: path + description: Flavor id, expected to be unique across cloud-region. + required: true + type: string + example: __FLAVOR-ID__ + - name: hpa-capability-id + in: path + description: UUID to uniquely identify a HPA capability + required: true + type: string + example: __HPA-CAPABILITY-ID__ + - name: hpa-attribute-key + in: path + description: name of the specific HPA attribute + required: true + type: string + example: __HPA-ATTRIBUTE-KEY__ + - name: body + in: body + description: hpa-feature-attributes object that needs to be created or updated. [Valid relationship examples shown here](apidocs/relations/v13/CloudInfrastructureCloudRegionsCloudRegionFlavorsFlavorHpaCapabilitiesHpaCapabilityHpaFeatureAttributes.json) + required: true + schema: + $ref: "#/definitions/hpa-feature-attributes" + patch: + tags: + - CloudInfrastructure + summary: update an existing hpa-feature-attributes + description: | + Update an existing hpa-feature-attributes + # + Note: Endpoints that are not devoted to object relationships support both PUT and PATCH operations. + The PUT operation will entirely replace an existing object. + The PATCH operation sends a "description of changes" for an existing object. The entire set of changes must be applied. An error result means no change occurs. + # + Other differences between PUT and PATCH are: + # + - For PATCH, you can send any of the values shown in sample REQUEST body. There are no required values. + - For PATCH, resource-id which is a required REQUEST body element for PUT, must not be sent. + - PATCH cannot be used to update relationship elements; there are dedicated PUT operations for this. + operationId: UpdateCloudInfrastructureCloudRegionsCloudRegionFlavorsFlavorHpaCapabilitiesHpaCapabilityHpaFeatureAttributes + consumes: + - application/json + - application/xml + produces: + - application/json + - application/xml + responses: + "default": + description: Response codes found in [response codes](https://wiki.onap.org/). + parameters: + - name: cloud-owner + in: path + description: Identifies the vendor and cloud name. First part of composite key should be formatted as vendor-cloudname + required: true + type: string + example: __CLOUD-OWNER__ + - name: cloud-region-id + in: path + description: Identifier used by the vendor for the region. Second part of composite key + required: true + type: string + example: __CLOUD-REGION-ID__ + - name: flavor-id + in: path + description: Flavor id, expected to be unique across cloud-region. + required: true + type: string + example: __FLAVOR-ID__ + - name: hpa-capability-id + in: path + description: UUID to uniquely identify a HPA capability + required: true + type: string + example: __HPA-CAPABILITY-ID__ + - name: hpa-attribute-key + in: path + description: name of the specific HPA attribute + required: true + type: string + example: __HPA-ATTRIBUTE-KEY__ + - name: body + in: body + description: hpa-feature-attributes object that needs to be created or updated. + required: true + schema: + $ref: "#/patchDefinitions/hpa-feature-attributes" + delete: + tags: + - CloudInfrastructure + summary: delete an existing hpa-feature-attributes + description: delete an existing hpa-feature-attributes + operationId: deleteCloudInfrastructureCloudRegionsCloudRegionFlavorsFlavorHpaCapabilitiesHpaCapabilityHpaFeatureAttributes + consumes: + - application/json + - application/xml + produces: + - application/json + - application/xml + responses: + "default": + description: Response codes found in [response codes](https://wiki.onap.org/). + parameters: + - name: cloud-owner + in: path + description: Identifies the vendor and cloud name. First part of composite key should be formatted as vendor-cloudname + required: true + type: string + example: __CLOUD-OWNER__ + - name: cloud-region-id + in: path + description: Identifier used by the vendor for the region. Second part of composite key + required: true + type: string + example: __CLOUD-REGION-ID__ + - name: flavor-id + in: path + description: Flavor id, expected to be unique across cloud-region. + required: true + type: string + example: __FLAVOR-ID__ + - name: hpa-capability-id + in: path + description: UUID to uniquely identify a HPA capability + required: true + type: string + example: __HPA-CAPABILITY-ID__ + - name: hpa-attribute-key + in: path + description: name of the specific HPA attribute + required: true + type: string + example: __HPA-ATTRIBUTE-KEY__ + - name: resource-version + in: query + description: resource-version for concurrency + required: true + type: string /cloud-infrastructure/cloud-regions/cloud-region/{cloud-owner}/{cloud-region-id}/flavors/flavor/{flavor-id}/hpa-capabilities/hpa-capability/{hpa-capability-id}: get: tags: @@ -5577,7 +5764,7 @@ paths: description: Name of the HPACapability required: false type: string - - name: hpa-hw-arch + - name: architecture in: query description: Hardware architecture required: false @@ -8870,7 +9057,7 @@ paths: required: true type: string example: __HPA-CAPABILITY-ID__ - /cloud-infrastructure/cloud-regions/cloud-region/{cloud-owner}/{cloud-region-id}/hpa-capabilities/hpa-capability/{hpa-capability-id}/hpa-feature-attributes/relationship-list/relationship: + /cloud-infrastructure/cloud-regions/cloud-region/{cloud-owner}/{cloud-region-id}/hpa-capabilities/hpa-capability/{hpa-capability-id}/hpa-feature-attributes/{hpa-attribute-key}/relationship-list/relationship: put: tags: - CloudInfrastructure @@ -8904,6 +9091,12 @@ paths: required: true type: string example: __HPA-CAPABILITY-ID__ + - name: hpa-attribute-key + in: path + description: name of the specific HPA attribute + required: true + type: string + example: __HPA-ATTRIBUTE-KEY__ - name: body in: body description: relationship object that needs to be created or updated. [Valid relationship examples shown here](apidocs/relations/v13/CloudInfrastructureCloudRegionsCloudRegionHpaCapabilitiesHpaCapabilityHpaFeatureAttributes.json) @@ -8944,7 +9137,13 @@ paths: required: true type: string example: __HPA-CAPABILITY-ID__ - /cloud-infrastructure/cloud-regions/cloud-region/{cloud-owner}/{cloud-region-id}/hpa-capabilities/hpa-capability/{hpa-capability-id}/hpa-feature-attributes: + - name: hpa-attribute-key + in: path + description: name of the specific HPA attribute + required: true + type: string + example: __HPA-ATTRIBUTE-KEY__ + /cloud-infrastructure/cloud-regions/cloud-region/{cloud-owner}/{cloud-region-id}/hpa-capabilities/hpa-capability/{hpa-capability-id}/hpa-feature-attributes/{hpa-attribute-key}: get: tags: - CloudInfrastructure @@ -8980,6 +9179,12 @@ paths: required: true type: string example: __HPA-CAPABILITY-ID__ + - name: hpa-attribute-key + in: path + description: name of the specific HPA attribute + required: true + type: string + example: __HPA-ATTRIBUTE-KEY__ - name: cloud-type in: query description: Type of the cloud (e.g., openstack) @@ -8995,11 +9200,162 @@ paths: description: Name of the HPACapability required: false type: string - - name: hpa-hw-arch + - name: architecture in: query description: Hardware architecture required: false type: string + put: + tags: + - CloudInfrastructure + summary: create or update an existing hpa-feature-attributes + description: | + Create or update an existing hpa-feature-attributes. + # + Note! This PUT method has a corresponding PATCH method that can be used to update just a few of the fields of an existing object, rather than a full object replacement. An example can be found in the [PATCH section] below + operationId: createOrUpdateCloudInfrastructureCloudRegionsCloudRegionHpaCapabilitiesHpaCapabilityHpaFeatureAttributes + consumes: + - application/json + - application/xml + produces: + - application/json + - application/xml + responses: + "default": + description: Response codes found in [response codes](https://wiki.onap.org/). + parameters: + - name: cloud-owner + in: path + description: Identifies the vendor and cloud name. First part of composite key should be formatted as vendor-cloudname + required: true + type: string + example: __CLOUD-OWNER__ + - name: cloud-region-id + in: path + description: Identifier used by the vendor for the region. Second part of composite key + required: true + type: string + example: __CLOUD-REGION-ID__ + - name: hpa-capability-id + in: path + description: UUID to uniquely identify a HPA capability + required: true + type: string + example: __HPA-CAPABILITY-ID__ + - name: hpa-attribute-key + in: path + description: name of the specific HPA attribute + required: true + type: string + example: __HPA-ATTRIBUTE-KEY__ + - name: body + in: body + description: hpa-feature-attributes object that needs to be created or updated. [Valid relationship examples shown here](apidocs/relations/v13/CloudInfrastructureCloudRegionsCloudRegionHpaCapabilitiesHpaCapabilityHpaFeatureAttributes.json) + required: true + schema: + $ref: "#/definitions/hpa-feature-attributes" + patch: + tags: + - CloudInfrastructure + summary: update an existing hpa-feature-attributes + description: | + Update an existing hpa-feature-attributes + # + Note: Endpoints that are not devoted to object relationships support both PUT and PATCH operations. + The PUT operation will entirely replace an existing object. + The PATCH operation sends a "description of changes" for an existing object. The entire set of changes must be applied. An error result means no change occurs. + # + Other differences between PUT and PATCH are: + # + - For PATCH, you can send any of the values shown in sample REQUEST body. There are no required values. + - For PATCH, resource-id which is a required REQUEST body element for PUT, must not be sent. + - PATCH cannot be used to update relationship elements; there are dedicated PUT operations for this. + operationId: UpdateCloudInfrastructureCloudRegionsCloudRegionHpaCapabilitiesHpaCapabilityHpaFeatureAttributes + consumes: + - application/json + - application/xml + produces: + - application/json + - application/xml + responses: + "default": + description: Response codes found in [response codes](https://wiki.onap.org/). + parameters: + - name: cloud-owner + in: path + description: Identifies the vendor and cloud name. First part of composite key should be formatted as vendor-cloudname + required: true + type: string + example: __CLOUD-OWNER__ + - name: cloud-region-id + in: path + description: Identifier used by the vendor for the region. Second part of composite key + required: true + type: string + example: __CLOUD-REGION-ID__ + - name: hpa-capability-id + in: path + description: UUID to uniquely identify a HPA capability + required: true + type: string + example: __HPA-CAPABILITY-ID__ + - name: hpa-attribute-key + in: path + description: name of the specific HPA attribute + required: true + type: string + example: __HPA-ATTRIBUTE-KEY__ + - name: body + in: body + description: hpa-feature-attributes object that needs to be created or updated. + required: true + schema: + $ref: "#/patchDefinitions/hpa-feature-attributes" + delete: + tags: + - CloudInfrastructure + summary: delete an existing hpa-feature-attributes + description: delete an existing hpa-feature-attributes + operationId: deleteCloudInfrastructureCloudRegionsCloudRegionHpaCapabilitiesHpaCapabilityHpaFeatureAttributes + consumes: + - application/json + - application/xml + produces: + - application/json + - application/xml + responses: + "default": + description: Response codes found in [response codes](https://wiki.onap.org/). + parameters: + - name: cloud-owner + in: path + description: Identifies the vendor and cloud name. First part of composite key should be formatted as vendor-cloudname + required: true + type: string + example: __CLOUD-OWNER__ + - name: cloud-region-id + in: path + description: Identifier used by the vendor for the region. Second part of composite key + required: true + type: string + example: __CLOUD-REGION-ID__ + - name: hpa-capability-id + in: path + description: UUID to uniquely identify a HPA capability + required: true + type: string + example: __HPA-CAPABILITY-ID__ + - name: hpa-attribute-key + in: path + description: name of the specific HPA attribute + required: true + type: string + example: __HPA-ATTRIBUTE-KEY__ + - name: resource-version + in: query + description: resource-version for concurrency + required: true + type: string /cloud-infrastructure/cloud-regions/cloud-region/{cloud-owner}/{cloud-region-id}/hpa-capabilities/hpa-capability/{hpa-capability-id}: get: tags: @@ -9051,7 +9407,7 @@ paths: description: Name of the HPACapability required: false type: string - - name: hpa-hw-arch + - name: architecture in: query description: Hardware architecture required: false @@ -55924,7 +56280,7 @@ definitions: hpa-version: type: string description: HPA schema version - hpa-hw-arch: + architecture: type: string description: Hardware architecture resource-version: @@ -55943,11 +56299,13 @@ definitions: HPA Capability Feature attributes ###### Related Nodes - TO hpa-capability( hpa-feature-attributes org.onap.relationships.inventory.BelongsTo hpa-capability, MANY2ONE) + required: + - hpa-attribute-key properties: - hpa-attr-key: + hpa-attribute-key: type: string description: name of the specific HPA attribute - hpa-attr-value: + hpa-attribute-value: type: string description: JSON string specifying the value, unit and type of the specific HPA attribute resource-version: @@ -61117,7 +61475,7 @@ patchDefinitions: hpa-version: type: string description: HPA schema version - hpa-hw-arch: + architecture: type: string description: Hardware architecture hpa-feature-attributes: @@ -61125,11 +61483,13 @@ patchDefinitions: HPA Capability Feature attributes ###### Related Nodes - TO hpa-capability( hpa-feature-attributes org.onap.relationships.inventory.BelongsTo hpa-capability, MANY2ONE) + required: + - hpa-attribute-key properties: - hpa-attr-key: + hpa-attribute-key: type: string description: name of the specific HPA attribute - hpa-attr-value: + hpa-attribute-value: type: string description: JSON string specifying the value, unit and type of the specific HPA attribute image: @@ -65799,7 +66159,7 @@ getDefinitions: hpa-version: type: string description: HPA schema version - hpa-hw-arch: + architecture: type: string description: Hardware architecture resource-version: @@ -65818,11 +66178,13 @@ getDefinitions: HPA Capability Feature attributes ###### Related Nodes - TO hpa-capability( hpa-feature-attributes org.onap.relationships.inventory.BelongsTo hpa-capability, MANY2ONE) + required: + - hpa-attribute-key properties: - hpa-attr-key: + hpa-attribute-key: type: string description: name of the specific HPA attribute - hpa-attr-value: + hpa-attribute-value: type: string description: JSON string specifying the value, unit and type of the specific HPA attribute resource-version: diff --git a/aai-schema/src/main/resources/aai_swagger_yaml/aai_swagger_v8.yaml b/aai-schema/src/main/resources/aai_swagger_yaml/aai_swagger_v8.yaml index eaf4d791..991c39b8 100644 --- a/aai-schema/src/main/resources/aai_swagger_yaml/aai_swagger_v8.yaml +++ b/aai-schema/src/main/resources/aai_swagger_yaml/aai_swagger_v8.yaml @@ -45146,7 +45146,7 @@ definitions: hpa-version: type: string description: HPA schema version - hpa-hw-arch: + architecture: type: string description: Hardware architecture resource-version: @@ -45165,11 +45165,13 @@ definitions: HPA Capability Feature attributes ###### Related Nodes - TO hpa-capability( hpa-feature-attributes org.onap.relationships.inventory.BelongsTo hpa-capability, MANY2ONE) + required: + - hpa-attribute-key properties: - hpa-attr-key: + hpa-attribute-key: type: string description: name of the specific HPA attribute - hpa-attr-value: + hpa-attribute-value: type: string description: JSON string specifying the value, unit and type of the specific HPA attribute resource-version: @@ -49866,7 +49868,7 @@ patchDefinitions: hpa-version: type: string description: HPA schema version - hpa-hw-arch: + architecture: type: string description: Hardware architecture hpa-feature-attributes: @@ -49874,11 +49876,13 @@ patchDefinitions: HPA Capability Feature attributes ###### Related Nodes - TO hpa-capability( hpa-feature-attributes org.onap.relationships.inventory.BelongsTo hpa-capability, MANY2ONE) + required: + - hpa-attribute-key properties: - hpa-attr-key: + hpa-attribute-key: type: string description: name of the specific HPA attribute - hpa-attr-value: + hpa-attribute-value: type: string description: JSON string specifying the value, unit and type of the specific HPA attribute image: @@ -54115,7 +54119,7 @@ getDefinitions: hpa-version: type: string description: HPA schema version - hpa-hw-arch: + architecture: type: string description: Hardware architecture resource-version: @@ -54134,11 +54138,13 @@ getDefinitions: HPA Capability Feature attributes ###### Related Nodes - TO hpa-capability( hpa-feature-attributes org.onap.relationships.inventory.BelongsTo hpa-capability, MANY2ONE) + required: + - hpa-attribute-key properties: - hpa-attr-key: + hpa-attribute-key: type: string description: name of the specific HPA attribute - hpa-attr-value: + hpa-attribute-value: type: string description: JSON string specifying the value, unit and type of the specific HPA attribute resource-version: diff --git a/aai-schema/src/main/resources/aai_swagger_yaml/aai_swagger_v9.yaml b/aai-schema/src/main/resources/aai_swagger_yaml/aai_swagger_v9.yaml index 61d8af69..1fc4e0da 100644 --- a/aai-schema/src/main/resources/aai_swagger_yaml/aai_swagger_v9.yaml +++ b/aai-schema/src/main/resources/aai_swagger_yaml/aai_swagger_v9.yaml @@ -49103,7 +49103,7 @@ definitions: hpa-version: type: string description: HPA schema version - hpa-hw-arch: + architecture: type: string description: Hardware architecture resource-version: @@ -49122,11 +49122,13 @@ definitions: HPA Capability Feature attributes ###### Related Nodes - TO hpa-capability( hpa-feature-attributes org.onap.relationships.inventory.BelongsTo hpa-capability, MANY2ONE) + required: + - hpa-attribute-key properties: - hpa-attr-key: + hpa-attribute-key: type: string description: name of the specific HPA attribute - hpa-attr-value: + hpa-attribute-value: type: string description: JSON string specifying the value, unit and type of the specific HPA attribute resource-version: @@ -53973,7 +53975,7 @@ patchDefinitions: hpa-version: type: string description: HPA schema version - hpa-hw-arch: + architecture: type: string description: Hardware architecture hpa-feature-attributes: @@ -53981,11 +53983,13 @@ patchDefinitions: HPA Capability Feature attributes ###### Related Nodes - TO hpa-capability( hpa-feature-attributes org.onap.relationships.inventory.BelongsTo hpa-capability, MANY2ONE) + required: + - hpa-attribute-key properties: - hpa-attr-key: + hpa-attribute-key: type: string description: name of the specific HPA attribute - hpa-attr-value: + hpa-attribute-value: type: string description: JSON string specifying the value, unit and type of the specific HPA attribute image: @@ -58323,7 +58327,7 @@ getDefinitions: hpa-version: type: string description: HPA schema version - hpa-hw-arch: + architecture: type: string description: Hardware architecture resource-version: @@ -58342,11 +58346,13 @@ getDefinitions: HPA Capability Feature attributes ###### Related Nodes - TO hpa-capability( hpa-feature-attributes org.onap.relationships.inventory.BelongsTo hpa-capability, MANY2ONE) + required: + - hpa-attribute-key properties: - hpa-attr-key: + hpa-attribute-key: type: string description: name of the specific HPA attribute - hpa-attr-value: + hpa-attribute-value: type: string description: JSON string specifying the value, unit and type of the specific HPA attribute resource-version: |