Method: OpenapiClient::ResourceAttributesApi#create_resource_attribute

Defined in:
lib/openapi_client/api/resource_attributes_api.rb

#create_resource_attribute(proj_id, env_id, resource_id, resource_attribute_create, opts = {}) ⇒ ResourceAttributeRead

Create Resource Attribute Creates a new attribute as part of the resource definition.

Parameters:

  • proj_id (String)

    Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug").

  • env_id (String)

    Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug").

  • resource_id (String)

    Either the unique id of the resource, or the URL-friendly key of the resource (i.e: the "slug").

  • resource_attribute_create (ResourceAttributeCreate)
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



30
31
32
33
# File 'lib/openapi_client/api/resource_attributes_api.rb', line 30

def create_resource_attribute(proj_id, env_id, resource_id, resource_attribute_create, opts = {})
  data, _status_code, _headers = create_resource_attribute_with_http_info(proj_id, env_id, resource_id, resource_attribute_create, opts)
  data
end