Skip to content

Commit

Permalink
Regenerated Clients & Updated smithy-go dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
skmcgrail committed Dec 22, 2020
1 parent fedc584 commit cd49e0c
Show file tree
Hide file tree
Showing 10,763 changed files with 82,634 additions and 61,309 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ matrix:
- JAVA_TOOL_OPTIONS="-Xmx1g"
before_script:
- rm -rf /tmp/smithy-go
- git clone https://github.com/awslabs/smithy-go /tmp/smithy-go
- git clone https://github.com/aws/smithy-go /tmp/smithy-go
- pushd /tmp/smithy-go/codegen
- ./gradlew clean publishToMavenLocal -Plog-tests
- popd
Expand All @@ -53,7 +53,7 @@ matrix:
- JAVA_TOOL_OPTIONS="-Xmx1g"
before_script:
- rm -rf /tmp/smithy-go
- git clone https://github.com/awslabs/smithy-go /tmp/smithy-go
- git clone https://github.com/aws/smithy-go /tmp/smithy-go
- pushd /tmp/smithy-go/codegen
- ./gradlew clean publishToMavenLocal -Plog-tests
- popd
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@ gen-repo-mod-replace:

gen-mod-replace-smithy:
cd ./internal/repotools/cmd/eachmodule \
&& go run . "go mod edit -replace github.com/awslabs/smithy-go=${SMITHY_GO_SRC}"
&& go run . "go mod edit -replace github.com/aws/smithy-go=${SMITHY_GO_SRC}"

gen-mod-dropreplace-smithy:
cd ./internal/repotools/cmd/eachmodule \
&& go run . "go mod edit -dropreplace github.com/awslabs/smithy-go"
&& go run . "go mod edit -dropreplace github.com/aws/smithy-go"

gen-aws-ptrs:
cd aws && go generate
Expand Down
4 changes: 2 additions & 2 deletions aws/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package aws
import (
"net/http"

"github.com/awslabs/smithy-go/logging"
"github.com/awslabs/smithy-go/middleware"
"github.com/aws/smithy-go/logging"
"github.com/aws/smithy-go/middleware"
)

// HTTPClient provides the interface to provide custom HTTPClients. Generally
Expand Down
2 changes: 1 addition & 1 deletion aws/from_ptr.go

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

4 changes: 2 additions & 2 deletions aws/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"os"
"text/template"

"github.com/awslabs/smithy-go/ptr"
"github.com/aws/smithy-go/ptr"
)

func main() {
Expand Down Expand Up @@ -44,7 +44,7 @@ var ptrTmpl = template.Must(template.New("ptrTmpl").Parse(`
package aws
import (
"github.com/awslabs/smithy-go/ptr"
"github.com/aws/smithy-go/ptr"
{{- range $_, $import := $.Imports }}
"{{ $import.Path }}"
{{- end }}
Expand Down
2 changes: 1 addition & 1 deletion aws/middleware/metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package middleware
import (
"context"

"github.com/awslabs/smithy-go/middleware"
"github.com/aws/smithy-go/middleware"
)

// RegisterServiceMetadata registers metadata about the service and operation into the middleware context
Expand Down
2 changes: 1 addition & 1 deletion aws/middleware/metadata_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"reflect"
"testing"

"github.com/awslabs/smithy-go/middleware"
"github.com/aws/smithy-go/middleware"
)

func TestServiceMetadataProvider(t *testing.T) {
Expand Down
6 changes: 3 additions & 3 deletions aws/middleware/middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (

"github.com/aws/aws-sdk-go-v2/internal/rand"
"github.com/aws/aws-sdk-go-v2/internal/sdk"
"github.com/awslabs/smithy-go/middleware"
smithyrand "github.com/awslabs/smithy-go/rand"
smithyhttp "github.com/awslabs/smithy-go/transport/http"
"github.com/aws/smithy-go/middleware"
smithyrand "github.com/aws/smithy-go/rand"
smithyhttp "github.com/aws/smithy-go/transport/http"
)

// ClientRequestID is a Smithy BuildMiddleware that will generate a unique ID for logical API operation
Expand Down
4 changes: 2 additions & 2 deletions aws/middleware/middleware_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (
"github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/internal/rand"
"github.com/aws/aws-sdk-go-v2/internal/sdk"
smithymiddleware "github.com/awslabs/smithy-go/middleware"
smithyhttp "github.com/awslabs/smithy-go/transport/http"
smithymiddleware "github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)

func TestClientRequestID(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion aws/middleware/request_id.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package middleware

import (
"github.com/awslabs/smithy-go/middleware"
"github.com/aws/smithy-go/middleware"
)

// requestIDKey is used to retrieve request id from response metadata
Expand Down
4 changes: 2 additions & 2 deletions aws/middleware/request_id_retriever.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package middleware
import (
"context"

"github.com/awslabs/smithy-go/middleware"
smithyhttp "github.com/awslabs/smithy-go/transport/http"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)

// AddRequestIDRetrieverMiddleware adds request id retriever middleware
Expand Down
4 changes: 2 additions & 2 deletions aws/middleware/user_agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"runtime"

"github.com/aws/aws-sdk-go-v2/aws"
"github.com/awslabs/smithy-go/middleware"
smithyhttp "github.com/awslabs/smithy-go/transport/http"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)

const execEnvVar = `AWS_EXECUTION_ENV`
Expand Down
4 changes: 2 additions & 2 deletions aws/middleware/user_agent_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"testing"

"github.com/aws/aws-sdk-go-v2/aws"
"github.com/awslabs/smithy-go/middleware"
smithyhttp "github.com/awslabs/smithy-go/transport/http"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
"github.com/google/go-cmp/cmp"
"github.com/google/go-cmp/cmp/cmpopts"
)
Expand Down
2 changes: 1 addition & 1 deletion aws/protocol/query/encoder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package query
import (
"bytes"
"fmt"
smithytesting "github.com/awslabs/smithy-go/testing"
smithytesting "github.com/aws/smithy-go/testing"
"testing"
)

Expand Down
4 changes: 2 additions & 2 deletions aws/protocol/query/middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"fmt"
"io/ioutil"

"github.com/awslabs/smithy-go/middleware"
smithyhttp "github.com/awslabs/smithy-go/transport/http"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)

// AddAsGetRequestMiddleware adds a middleware to the Serialize stack after the
Expand Down
4 changes: 2 additions & 2 deletions aws/protocol/query/middleware_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"context"
"testing"

"github.com/awslabs/smithy-go/middleware"
smithyhttp "github.com/awslabs/smithy-go/transport/http"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)

func TestAsGetRequestMiddleware(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion aws/protocol/query/value.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"math/big"
"net/url"

"github.com/awslabs/smithy-go/encoding/httpbinding"
"github.com/aws/smithy-go/encoding/httpbinding"
)

// Value represents a Query Value type.
Expand Down
2 changes: 1 addition & 1 deletion aws/protocol/restjson/decoder_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"io"
"strings"

"github.com/awslabs/smithy-go"
"github.com/aws/smithy-go"
)

// GetErrorInfo util looks for code, __type, and message members in the
Expand Down
6 changes: 3 additions & 3 deletions aws/retry/middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import (
"github.com/aws/aws-sdk-go-v2/aws"
awsmiddle "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/internal/sdk"
"github.com/awslabs/smithy-go/logging"
smithymiddle "github.com/awslabs/smithy-go/middleware"
"github.com/awslabs/smithy-go/transport/http"
"github.com/aws/smithy-go/logging"
smithymiddle "github.com/aws/smithy-go/middleware"
"github.com/aws/smithy-go/transport/http"
)

// RequestCloner is a function that can take an input request type and clone the request
Expand Down
4 changes: 2 additions & 2 deletions aws/retry/middleware_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"time"

"github.com/aws/aws-sdk-go-v2/internal/sdk"
"github.com/awslabs/smithy-go/middleware"
smithyhttp "github.com/awslabs/smithy-go/transport/http"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
"github.com/google/go-cmp/cmp"
)

Expand Down
4 changes: 2 additions & 2 deletions aws/signer/v4/middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
v4Internal "github.com/aws/aws-sdk-go-v2/aws/signer/internal/v4"
"github.com/aws/aws-sdk-go-v2/internal/sdk"
"github.com/awslabs/smithy-go/middleware"
smithyHTTP "github.com/awslabs/smithy-go/transport/http"
"github.com/aws/smithy-go/middleware"
smithyHTTP "github.com/aws/smithy-go/transport/http"
)

const computePayloadHashMiddlewareID = "ComputePayloadHash"
Expand Down
6 changes: 3 additions & 3 deletions aws/signer/v4/middleware_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ import (
"github.com/aws/aws-sdk-go-v2/aws"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/internal/awstesting/unit"
"github.com/awslabs/smithy-go/logging"
"github.com/awslabs/smithy-go/middleware"
smithyhttp "github.com/awslabs/smithy-go/transport/http"
"github.com/aws/smithy-go/logging"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)

func TestComputePayloadHashMiddleware(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions aws/signer/v4/presign_middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"github.com/aws/aws-sdk-go-v2/aws"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/internal/sdk"
"github.com/awslabs/smithy-go/middleware"
smithyHTTP "github.com/awslabs/smithy-go/transport/http"
"github.com/aws/smithy-go/middleware"
smithyHTTP "github.com/aws/smithy-go/transport/http"
)

// HTTPPresigner is an interface to a SigV4 signer that can sign create a
Expand Down
6 changes: 3 additions & 3 deletions aws/signer/v4/presign_middleware_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import (
"github.com/aws/aws-sdk-go-v2/aws"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/internal/awstesting/unit"
"github.com/awslabs/smithy-go/logging"
"github.com/awslabs/smithy-go/middleware"
smithyhttp "github.com/awslabs/smithy-go/transport/http"
"github.com/aws/smithy-go/logging"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
"github.com/google/go-cmp/cmp"
)

Expand Down
4 changes: 2 additions & 2 deletions aws/signer/v4/v4.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ import (

"github.com/aws/aws-sdk-go-v2/aws"
v4Internal "github.com/aws/aws-sdk-go-v2/aws/signer/internal/v4"
"github.com/awslabs/smithy-go/encoding/httpbinding"
"github.com/awslabs/smithy-go/logging"
"github.com/aws/smithy-go/encoding/httpbinding"
"github.com/aws/smithy-go/logging"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion aws/to_ptr.go

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

4 changes: 2 additions & 2 deletions aws/transport/http/content_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package http
import (
"context"
"fmt"
"github.com/awslabs/smithy-go/middleware"
smithyhttp "github.com/awslabs/smithy-go/transport/http"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)

// removeContentTypeHeader is a build middleware that removes
Expand Down
2 changes: 1 addition & 1 deletion aws/transport/http/response_error.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"errors"
"fmt"

smithyhttp "github.com/awslabs/smithy-go/transport/http"
smithyhttp "github.com/aws/smithy-go/transport/http"
)

// ResponseError provides the HTTP centric error type wrapping the underlying error
Expand Down
4 changes: 2 additions & 2 deletions aws/transport/http/response_error_middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"context"

awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/awslabs/smithy-go/middleware"
smithyhttp "github.com/awslabs/smithy-go/transport/http"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)

// AddResponseErrorMiddleware adds response error wrapper middleware
Expand Down
6 changes: 3 additions & 3 deletions aws/transport/http/timeout_read_closer.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"io"
"time"

"github.com/awslabs/smithy-go"
"github.com/awslabs/smithy-go/middleware"
smithyhttp "github.com/awslabs/smithy-go/transport/http"
"github.com/aws/smithy-go"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)

type readResult struct {
Expand Down
5 changes: 3 additions & 2 deletions aws/transport/http/timeout_read_closer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ package http
import (
"context"
"errors"
"github.com/awslabs/smithy-go/middleware"
smithyhttp "github.com/awslabs/smithy-go/transport/http"
"io"
"net/http"
"testing"
"time"

"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)

type testReader struct {
Expand Down
2 changes: 1 addition & 1 deletion config/env_config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/internal/awstesting"
"github.com/awslabs/smithy-go/ptr"
"github.com/aws/smithy-go/ptr"
)

var _ sharedConfigProfileProvider = (*EnvConfig)(nil)
Expand Down
9 changes: 4 additions & 5 deletions config/example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,17 @@ package config_test
import (
"context"
"fmt"
"github.com/awslabs/smithy-go/middleware"
"log"
"net/http"
"path/filepath"

smithyhttp "github.com/awslabs/smithy-go/transport/http"

"github.com/aws/aws-sdk-go-v2/aws"
awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http"
"github.com/aws/aws-sdk-go-v2/config"
"github.com/aws/aws-sdk-go-v2/credentials"
"github.com/aws/aws-sdk-go-v2/credentials/stscreds"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)

func ExampleWithSharedConfigProfile() {
Expand Down Expand Up @@ -64,8 +63,8 @@ func ExampleWithCredentialsProvider() {
}

func ExampleWithAPIOptions() {
// import "github.com/awslabs/smithy-go/middleware"
// import smithyhttp "github.com/awslabs/smithy-go/transport/http"
// import "github.com/aws/smithy-go/middleware"
// import smithyhttp "github.com/aws/smithy-go/transport/http"

cfg, err := config.LoadDefaultConfig(context.TODO(),
config.WithAPIOptions([]func(*middleware.Stack) error{
Expand Down
Loading

0 comments on commit cd49e0c

Please sign in to comment.