Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@awilliams-fastly
Copy link
Collaborator

The API documentation is inconsistent in the use of resource_id. This change departs from the API docs and consistently uses:

  • resource_id: ID of the linked to object, e.g. the Object Store ID
  • id: ID of the "resource", e.g. the Resource (link) ID

The API docs will be updated accordingly.

Additionaly, json tags have been added to the Resource type. This allows a Resource to be properly encoded as JSON.

The API documentation is inconsistent in the use of `resource_id`.
This change departs from the API docs and consistently uses:
* `resource_id`: ID of the linked to object, e.g. the Object Store ID
* `id`: ID of the "resource", e.g. the Resource (link) ID

The API docs will be updated accordingly.

Additionaly, `json` tags have been added to the `Resource` type. This
allows a `Resource` to be properly encoded as JSON.
@Integralist Integralist merged commit b3974be into main Feb 8, 2023
@Integralist Integralist deleted the awilliams/resource-api branch February 8, 2023 17:05
@Integralist Integralist added the enhancement New feature or request label Feb 8, 2023
awilliams-fastly added a commit to fastly/cli that referenced this pull request Feb 22, 2023
https://developer.fastly.com/reference/api/services/resource/

This adds a `resource-link` sub-command which has associated create, delete, list, and update commands.

```
USAGE
  fastly resource-link <command> [<args> ...]

Manipulate Fastly service resource links

COMMANDS
  resource-link
  create    Create a Fastly service resource link
  delete    Delete a resource link for a Fastly service version
  describe  Show detailed information about a Fastly service resource link
  list      List all resource links for a Fastly service version
  update    Update a resource link for a Fastly service version

SEE ALSO
  https://developer.fastly.com/reference/cli/resource-link/
```

Related `go-fastly` change: fastly/go-fastly#394
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants