Skip to content

Commit

Permalink
feat: generate new surface for v1 (#504)
Browse files Browse the repository at this point in the history
  • Loading branch information
sofisl authored Jun 21, 2021
1 parent 91d216a commit 5251708
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 2 deletions.
2 changes: 2 additions & 0 deletions packages/google-cloud-asset/src/v1/asset_service_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ export class AssetServiceClient {
}
if (!opts.fallback) {
clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`);
} else if (opts.fallback === 'rest') {
clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`);
}
if (opts.libName && opts.libVersion) {
clientHeader.push(`${opts.libName}/${opts.libVersion}`);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
[
"../../protos/google/cloud/asset/v1/asset_service.proto",
"../../protos/google/cloud/asset/v1/assets.proto"
"../../protos/google/cloud/asset/v1/assets.proto",
"../../protos/google/cloud/orgpolicy/v1/orgpolicy.proto",
"../../protos/google/cloud/osconfig/v1/inventory.proto",
"../../protos/google/identity/accesscontextmanager/type/device_resources.proto",
"../../protos/google/identity/accesscontextmanager/v1/access_level.proto",
"../../protos/google/identity/accesscontextmanager/v1/access_policy.proto",
"../../protos/google/identity/accesscontextmanager/v1/service_perimeter.proto"
]
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@ export class AssetServiceClient {
}
if (!opts.fallback) {
clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`);
} else if (opts.fallback === 'rest') {
clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`);
}
if (opts.libName && opts.libVersion) {
clientHeader.push(`${opts.libName}/${opts.libVersion}`);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ export class AssetServiceClient {
}
if (!opts.fallback) {
clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`);
} else if (opts.fallback === 'rest') {
clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`);
}
if (opts.libName && opts.libVersion) {
clientHeader.push(`${opts.libName}/${opts.libVersion}`);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ export class AssetServiceClient {
}
if (!opts.fallback) {
clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`);
} else if (opts.fallback === 'rest') {
clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`);
}
if (opts.libName && opts.libVersion) {
clientHeader.push(`${opts.libName}/${opts.libVersion}`);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@ export class AssetServiceClient {
}
if (!opts.fallback) {
clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`);
} else if (opts.fallback === 'rest') {
clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`);
}
if (opts.libName && opts.libVersion) {
clientHeader.push(`${opts.libName}/${opts.libVersion}`);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
[
"../../protos/google/cloud/asset/v1p5beta1/asset_service.proto",
"../../protos/google/cloud/asset/v1p5beta1/assets.proto"
"../../protos/google/cloud/asset/v1p5beta1/assets.proto",
"../../protos/google/cloud/orgpolicy/v1/orgpolicy.proto",
"../../protos/google/identity/accesscontextmanager/type/device_resources.proto",
"../../protos/google/identity/accesscontextmanager/v1/access_level.proto",
"../../protos/google/identity/accesscontextmanager/v1/access_policy.proto",
"../../protos/google/identity/accesscontextmanager/v1/service_perimeter.proto"
]

0 comments on commit 5251708

Please sign in to comment.