42dx / edgio-go-sdk

Go SDK implementing Edgio's REST API
http://github.42dx.dev/edgio-go-sdk/
MIT License
8 stars 1 forks source link

Added GetByAttr and GetBy<Key|Slug|Name> funcs #46

Closed rafapaulin closed 6 months ago

rafapaulin commented 7 months ago

Proposed Changes

Create a generic GetByAttr reusable function that can be used by more specific GetBy<Key|Slug|Name> specific funcs, depending on the relevant entity. The functions returns one instance of the relevant entity.

Contribution type

Related Issue(s)

Motivation, Context and Extra Info

Edgio's REST API does not support get by on its get methods, and sometimes the necessary ID may not be available to perform a GET method by entity's ID. Getting the entity by a human readable parameter may prove useful.

Checks

General

Code Standards

Documentation and reliability

Testing

How to verify the changes

1.Running the main.go file should run the developed functions returning relevant results.

Screenshots (if appropriate)

N/A

sonarcloud[bot] commented 6 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
100.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud

42dx-bot[bot] commented 6 months ago

:tada: This PR is included in version 1.0.0-beta.5 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: