Skip to content

Commit

Permalink
go-sdk for 7.1.2_u2
Browse files Browse the repository at this point in the history
  • Loading branch information
satwik-miyyapuram-cohesity committed Oct 8, 2024
1 parent 0ac73a0 commit 1be3eaf
Show file tree
Hide file tree
Showing 305 changed files with 7,944 additions and 19,399 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ go get github.com/cohesity/go-sdk

|Cluster Version| SDK Version|
|---|--|
|7.1.2|7.1.2|
|7.1.2_u2|7.1.2201|
## <a name="howto"></a> How to Use: :mag_right:
This SDK exposes all the functionality provided by *Cohesity REST API*.

Expand Down Expand Up @@ -55,7 +55,7 @@ import(
apiClient "github.com/cohesity/go-sdk/v2/client"
"github.com/cohesity/go-sdk/v2/client/access_token"
"github.com/cohesity/go-sdk/v2/models"
"github.com/cohesity/go-sdk/v2/client/source"
"github.com/cohesity/go-sdk/v2/client/protection_group"
"github.com/go-openapi/strfmt"

)
Expand All @@ -70,7 +70,7 @@ body := &models.CreateAccessTokenRequestParams{
}
resp, err := client.AccessToken.CreateAccessToken(access_token.NewCreateAccessTokenParams().WithBody(body), nil)
bearerTokenAuth := httptransport.BearerToken(*resp.Payload.AccessToken) # the bearertoken is the authentication we use to access the APIs
sourceResp, err := client2.Source.GetProtectionSources(source.NewGetProtectionSourcesParams(), bearerTokenAuth) #example api
protectionGroupResp, err := client.ProtectionGroup.GetProtectionGroups(protection_group.NewGetProtectionGroupsParams(), bearerTokenAuth) #example api
```

## <a name ="suggest"></a> Questions or Feedback :raised_hand:
Expand Down
140 changes: 140 additions & 0 deletions v1/client/backup_jobs/get_backup_job_runs_parameters.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

71 changes: 71 additions & 0 deletions v1/client/backup_jobs/get_backup_jobs_summary_parameters.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 1be3eaf

Please sign in to comment.