Skip to content

Commit d7c6072

Browse files
authored
fix: fix gapic-version generator option for selective gapic generation (#2460)
1 parent a4a0179 commit d7c6072

File tree

5 files changed

+5
-3
lines changed

5 files changed

+5
-3
lines changed

gapic/schema/api.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -559,6 +559,7 @@ def disambiguate_keyword_sanitize_fname(
559559
naming=naming,
560560
all_protos=new_all_protos,
561561
service_yaml_config=service_yaml_config,
562+
gapic_version=gapic_version,
562563
)
563564

564565
return api

tests/integration/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ py_gapic_library(
178178
grpc_service_config = "redis_grpc_service_config.json",
179179
opt_args = [
180180
"autogen-snippets",
181+
"gapic-version=1.2.99",
181182
],
182183
service_yaml = "redis_selective_v1.yaml",
183184
transport = "grpc+rest",

tests/integration/goldens/redis_selective/google/cloud/redis/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "0.0.0" # {x-release-please-version}
16+
__version__ = "1.2.99" # {x-release-please-version}

tests/integration/goldens/redis_selective/google/cloud/redis_v1/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "0.0.0" # {x-release-please-version}
16+
__version__ = "1.2.99" # {x-release-please-version}

tests/integration/goldens/redis_selective/samples/generated_samples/snippet_metadata_google.cloud.redis.v1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
],
99
"language": "PYTHON",
1010
"name": "google-cloud-redis",
11-
"version": "0.0.0"
11+
"version": "1.2.99"
1212
},
1313
"snippets": [
1414
{

0 commit comments

Comments
 (0)