Skip to content

Commit

Permalink
Merge branch 'dev' of github.com:mulesoft-consulting/cloudhub-client-…
Browse files Browse the repository at this point in the history
…go into dev
  • Loading branch information
soufi committed Dec 4, 2021
2 parents 5ed9d75 + 06c0574 commit 706b804
Show file tree
Hide file tree
Showing 95 changed files with 8,146 additions and 41 deletions.
1 change: 0 additions & 1 deletion amq/.openapi-generator/FILES
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
.gitignore
.openapi-generator-ignore
.travis.yml
README.md
api/openapi.yaml
Expand Down
2 changes: 1 addition & 1 deletion amq/git_push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ if [ "$git_user_id" = "" ]; then
fi

if [ "$git_repo_id" = "" ]; then
git_repo_id="cloudhub-client-go"
git_repo_id="anypoint-client-go"
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
fi

Expand Down
2 changes: 1 addition & 1 deletion amq/go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/mulesoft-consulting/cloudhub-client-go/amq
module github.com/mulesoft-consulting/anypoint-client-go/amq

go 1.13

Expand Down
1 change: 0 additions & 1 deletion apim_alerts/.openapi-generator/FILES
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
.gitignore
.openapi-generator-ignore
.travis.yml
README.md
api/openapi.yaml
Expand Down
2 changes: 1 addition & 1 deletion apim_alerts/git_push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ if [ "$git_user_id" = "" ]; then
fi

if [ "$git_repo_id" = "" ]; then
git_repo_id="cloudhub-client-go"
git_repo_id="anypoint-client-go"
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
fi

Expand Down
2 changes: 1 addition & 1 deletion apim_alerts/go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/mulesoft-consulting/cloudhub-client-go/apim_alerts
module github.com/mulesoft-consulting/anypoint-client-go/apim_alerts

go 1.13

Expand Down
2 changes: 1 addition & 1 deletion authorization/git_push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ if [ "$git_user_id" = "" ]; then
fi

if [ "$git_repo_id" = "" ]; then
git_repo_id="cloudhub-client-go"
git_repo_id="anypoint-client-go"
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
fi

Expand Down
2 changes: 1 addition & 1 deletion authorization/go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/mulesoft-consulting/cloudhub-client-go/authorization
module github.com/mulesoft-consulting/anypoint-client-go/authorization

go 1.13

Expand Down
1 change: 0 additions & 1 deletion dlb/.openapi-generator/FILES
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
.gitignore
.openapi-generator-ignore
.travis.yml
README.md
api/openapi.yaml
Expand Down
2 changes: 1 addition & 1 deletion dlb/git_push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ if [ "$git_user_id" = "" ]; then
fi

if [ "$git_repo_id" = "" ]; then
git_repo_id="cloudhub-client-go"
git_repo_id="anypoint-client-go"
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
fi

Expand Down
2 changes: 1 addition & 1 deletion dlb/go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/mulesoft-consulting/cloudhub-client-go/dlb
module github.com/mulesoft-consulting/anypoint-client-go/dlb

go 1.13

Expand Down
2 changes: 1 addition & 1 deletion env/git_push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ if [ "$git_user_id" = "" ]; then
fi

if [ "$git_repo_id" = "" ]; then
git_repo_id="cloudhub-client-go"
git_repo_id="anypoint-client-go"
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
fi

Expand Down
2 changes: 1 addition & 1 deletion env/go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/mulesoft-consulting/cloudhub-client-go/env
module github.com/mulesoft-consulting/anypoint-client-go/env

go 1.13

Expand Down
1 change: 0 additions & 1 deletion exchange_assets/.openapi-generator/FILES
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
.gitignore
.openapi-generator-ignore
.travis.yml
README.md
api/openapi.yaml
Expand Down
2 changes: 1 addition & 1 deletion exchange_assets/git_push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ if [ "$git_user_id" = "" ]; then
fi

if [ "$git_repo_id" = "" ]; then
git_repo_id="cloudhub-client-go"
git_repo_id="anypoint-client-go"
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
fi

Expand Down
2 changes: 1 addition & 1 deletion exchange_assets/go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/mulesoft-consulting/cloudhub-client-go/exchange_assets
module github.com/mulesoft-consulting/anypoint-client-go/exchange_assets

go 1.13

Expand Down
24 changes: 24 additions & 0 deletions idp/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Compiled Object files, Static and Dynamic libs (Shared Objects)
*.o
*.a
*.so

# Folders
_obj
_test

# Architecture specific extensions/prefixes
*.[568vq]
[568vq].out

*.cgo1.go
*.cgo2.c
_cgo_defun.c
_cgo_gotypes.go
_cgo_export.*

_testmain.go

*.exe
*.test
*.prof
23 changes: 23 additions & 0 deletions idp/.openapi-generator-ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# OpenAPI Generator Ignore
# Generated by openapi-generator https://github.com/openapitools/openapi-generator

# Use this file to prevent files from being overwritten by the generator.
# The patterns follow closely to .gitignore or .dockerignore.

# As an example, the C# client generator defines ApiClient.cs.
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
#ApiClient.cs

# You can match any string of characters against a directory, file or extension with a single asterisk (*):
#foo/*/qux
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux

# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
#foo/**/qux
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux

# You can also negate patterns with an exclamation (!).
# For example, you can ignore all files in a docs folder with the file extension .md:
#docs/*.md
# Then explicitly reverse the ignore rule for a single file:
#!docs/README.md
52 changes: 52 additions & 0 deletions idp/.openapi-generator/FILES
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
.gitignore
.openapi-generator-ignore
.travis.yml
README.md
api/openapi.yaml
api_default.go
client.go
configuration.go
docs/ClaimsMapping.md
docs/ClaimsMapping1.md
docs/Client.md
docs/DefaultApi.md
docs/Idp.md
docs/IdpCommonProps.md
docs/IdpOIDC.md
docs/IdpPostBody.md
docs/IdpPostBodyType.md
docs/IdpSAML.md
docs/IdpSummary.md
docs/InlineResponse200.md
docs/ModelType.md
docs/OidcProvider.md
docs/Saml.md
docs/ServiceProvider.md
docs/Urls.md
docs/Urls1.md
docs/Urls2.md
docs/Urls3.md
git_push.sh
go.mod
go.sum
model_claims_mapping.go
model_claims_mapping_1.go
model_client.go
model_idp.go
model_idp_common_props.go
model_idp_oidc.go
model_idp_post_body.go
model_idp_post_body_type.go
model_idp_saml.go
model_idp_summary.go
model_inline_response_200.go
model_oidc_provider.go
model_saml.go
model_service_provider.go
model_type.go
model_urls.go
model_urls_1.go
model_urls_2.go
model_urls_3.go
response.go
utils.go
1 change: 1 addition & 0 deletions idp/.openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
5.1.0
8 changes: 8 additions & 0 deletions idp/.travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
language: go

install:
- go get -d -v .

script:
- go build -v ./

143 changes: 143 additions & 0 deletions idp/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
# Go API client for idp

Description of Identity Provider API

## Overview
This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client.

- API version: 1.0.0
- Package version: 1.0.0
- Build package: org.openapitools.codegen.languages.GoClientCodegen

## Installation

Install the following dependencies:

```shell
go get github.com/stretchr/testify/assert
go get golang.org/x/oauth2
go get golang.org/x/net/context
```

Put the package under your project folder and add the following in import:

```golang
import sw "./idp"
```

To use a proxy, set the environment variable `HTTP_PROXY`:

```golang
os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port")
```

## Configuration of Server URL

Default configuration comes with `Servers` field that contains server objects as defined in the OpenAPI specification.

### Select Server Configuration

For using other server than the one defined on index 0 set context value `sw.ContextServerIndex` of type `int`.

```golang
ctx := context.WithValue(context.Background(), sw.ContextServerIndex, 1)
```

### Templated Server URL

Templated server URL is formatted using default variables from configuration or from context value `sw.ContextServerVariables` of type `map[string]string`.

```golang
ctx := context.WithValue(context.Background(), sw.ContextServerVariables, map[string]string{
"basePath": "v2",
})
```

Note, enum values are always validated and all unused variables are silently ignored.

### URLs Configuration per Operation

Each operation can use different server URL defined using `OperationServers` map in the `Configuration`.
An operation is uniquely identifield by `"{classname}Service.{nickname}"` string.
Similar rules for overriding default operation server index and variables applies by using `sw.ContextOperationServerIndices` and `sw.ContextOperationServerVariables` context maps.

```
ctx := context.WithValue(context.Background(), sw.ContextOperationServerIndices, map[string]int{
"{classname}Service.{nickname}": 2,
})
ctx = context.WithValue(context.Background(), sw.ContextOperationServerVariables, map[string]map[string]string{
"{classname}Service.{nickname}": {
"port": "8443",
},
})
```

## Documentation for API Endpoints

All URIs are relative to *https://anypoint.mulesoft.com/accounts/api*

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*DefaultApi* | [**OrganizationsOrgIdIdentityProvidersGet**](docs/DefaultApi.md#organizationsorgididentityprovidersget) | **Get** /organizations/{orgId}/identityProviders |
*DefaultApi* | [**OrganizationsOrgIdIdentityProvidersIdpIdGet**](docs/DefaultApi.md#organizationsorgididentityprovidersidpidget) | **Get** /organizations/{orgId}/identityProviders/idpId |


## Documentation For Models

- [ClaimsMapping](docs/ClaimsMapping.md)
- [ClaimsMapping1](docs/ClaimsMapping1.md)
- [Client](docs/Client.md)
- [Idp](docs/Idp.md)
- [IdpCommonProps](docs/IdpCommonProps.md)
- [IdpOIDC](docs/IdpOIDC.md)
- [IdpPostBody](docs/IdpPostBody.md)
- [IdpPostBodyType](docs/IdpPostBodyType.md)
- [IdpSAML](docs/IdpSAML.md)
- [IdpSummary](docs/IdpSummary.md)
- [InlineResponse200](docs/InlineResponse200.md)
- [ModelType](docs/ModelType.md)
- [OidcProvider](docs/OidcProvider.md)
- [Saml](docs/Saml.md)
- [ServiceProvider](docs/ServiceProvider.md)
- [Urls](docs/Urls.md)
- [Urls1](docs/Urls1.md)
- [Urls2](docs/Urls2.md)
- [Urls3](docs/Urls3.md)


## Documentation For Authorization



### bearerAuth

- **Type**: HTTP Bearer token authentication

Example

```golang
auth := context.WithValue(context.Background(), sw.ContextAccessToken, "BEARERTOKENSTRING")
r, err := client.Service.Operation(auth, args)
```


## Documentation for Utility Methods

Due to the fact that model structure members are all pointers, this package contains
a number of utility functions to easily obtain pointers to values of basic types.
Each of these functions takes a value of the given basic type and returns a pointer to it:

* `PtrBool`
* `PtrInt`
* `PtrInt32`
* `PtrInt64`
* `PtrFloat`
* `PtrFloat32`
* `PtrFloat64`
* `PtrString`
* `PtrTime`

## Author



Loading

0 comments on commit 706b804

Please sign in to comment.