resourcefiles
Creates, updates, deletes, gets or lists a resourcefiles
resource.
Overview
Name | resourcefiles |
Type | Resource |
Id | google.apigee.resourcefiles |
Fields
Name | Datatype | Description |
---|---|---|
contentType | string | The HTTP Content-Type header value specifying the content type of the body. |
data | string | The HTTP request/response body as raw binary. |
extensions | array | Application specific response metadata. Must be set in the first response for streaming APIs. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
organizations_environments_resourcefiles_get | SELECT | environmentsId, name, organizationsId, type | Gets the contents of a resource file. For more information about resource files, see Resource files. |
organizations_environments_resourcefiles_list | SELECT | environmentsId, organizationsId | Lists all resource files, optionally filtering by type. For more information about resource files, see Resource files. |
organizations_environments_resourcefiles_create | INSERT | environmentsId, organizationsId | Creates a resource file. Specify the Content-Type as application/octet-stream or multipart/form-data . For more information about resource files, see Resource files. |
organizations_environments_resourcefiles_delete | DELETE | environmentsId, name, organizationsId, type | Deletes a resource file. For more information about resource files, see Resource files. |
organizations_environments_resourcefiles_update | REPLACE | environmentsId, name, organizationsId, type | Updates a resource file. Specify the Content-Type as application/octet-stream or multipart/form-data . For more information about resource files, see Resource files. |
SELECT
examples
Lists all resource files, optionally filtering by type. For more information about resource files, see Resource files.
SELECT
contentType,
data,
extensions
FROM google.apigee.resourcefiles
WHERE environmentsId = '{{ environmentsId }}'
AND organizationsId = '{{ organizationsId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new resourcefiles
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.apigee.resourcefiles (
environmentsId,
organizationsId,
contentType,
data,
extensions
)
SELECT
'{{ environmentsId }}',
'{{ organizationsId }}',
'{{ contentType }}',
'{{ data }}',
'{{ extensions }}'
;
- name: your_resource_model_name
props:
- name: contentType
value: string
- name: data
value: string
- name: extensions
value:
- object
REPLACE
example
Replaces all fields in the specified resourcefiles
resource.
/*+ update */
REPLACE google.apigee.resourcefiles
SET
contentType = '{{ contentType }}',
data = '{{ data }}',
extensions = '{{ extensions }}'
WHERE
environmentsId = '{{ environmentsId }}'
AND name = '{{ name }}'
AND organizationsId = '{{ organizationsId }}'
AND type = '{{ type }}';
DELETE
example
Deletes the specified resourcefiles
resource.
/*+ delete */
DELETE FROM google.apigee.resourcefiles
WHERE environmentsId = '{{ environmentsId }}'
AND name = '{{ name }}'
AND organizationsId = '{{ organizationsId }}'
AND type = '{{ type }}';